Skip to content

Commit

Permalink
Added conda package build recipe, removed constraints in requirements…
Browse files Browse the repository at this point in the history
… to avoid conda issues (this will be checked later on). Updated Readme.
  • Loading branch information
ggallohernandez committed Oct 16, 2020
1 parent 69ff460 commit ef56af2
Show file tree
Hide file tree
Showing 4 changed files with 69 additions and 15 deletions.
7 changes: 6 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,13 @@ Installing

.. code-block::
pip3 install pymatriz
pip install pymatriz
Also available in `Anaconda <https://anaconda.org/ggallohernandez/pymatriz>`_ repository. Install and update using `conda <https://docs.conda.io/projects/conda/en/latest/user-guide/getting-started.html>`_\ :

.. code-block::
conda install pymatriz
API Credentials
---------------
Expand Down
49 changes: 49 additions & 0 deletions conda_build/pymatriz/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{% set name = "pymatriz" %}
{% set version = "0.1.4" %}

package:
name: "{{ name|lower }}"
version: "{{ version }}"

source:
url: "https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz"
sha256: 02bee48007c70a31abb958c7a745b17bfd92bd919114ed952e3150eb63f98ff9

build:
number: 0
script: "{{ PYTHON }} -m pip install . -vv"

requirements:
host:
- lxml
- pandas
- pip
- python
- requests
- simplejson
- websocket-client
run:
- lxml
- pandas
- python
- requests
- simplejson
- websocket-client

test:
imports:
- pymatriz

about:
home: "https://github.com/ggallohernandez/pymatriz"
license: MIT
license_family: MIT
license_file:
summary: "Python connector for Primary DMA (Matriz) Rest and Websocket APIs."
dev_url: https://github.com/ggallohernandez/pymatriz
doc_url: https://pypi.python.org/pypi/pymatriz
doc_source_url: https://github.com/ggallohernandez/pymatriz/blob/master/README.rst

extra:
recipe-maintainers:
- ggallohernandez
11 changes: 5 additions & 6 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
requests>=2.20.0
simplejson>=3.10.0
enum34>=1.1.6
websocket-client>=0.54.0
pandas~=1.1.3
lxml~=4.5.2
requests
simplejson
websocket-client
pandas
lxml
17 changes: 9 additions & 8 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,21 @@

setup(
name='pymatriz',
version='0.1.1',
version='0.1.4',
packages=['pymatriz'],
url='',
url='https://github.com/ggallohernandez/pymatriz',
license='MIT License',
author='Guillermo Gallo',
author_email='[email protected]',
description='Python connector for Primary DMA (Matriz) Rest and Websocket APIs.',
long_description=long_description,
long_description_content_type="text/x-rst",
install_requires=[
'requests>=2.20.0',
'simplejson>=3.10.0',
'enum34>=1.1.6',
'websocket-client>=0.54.0',
'pandas~=1.1.3',
'lxml~=4.5.2',
'requests',
'simplejson',
'websocket-client',
'pandas',
'lxml',
],
classifiers=[
"Programming Language :: Python :: 3",
Expand Down

0 comments on commit ef56af2

Please sign in to comment.