Skip to content

Commit

Permalink
pip dependencies packaged as conda
Browse files Browse the repository at this point in the history
  • Loading branch information
phelps-sg committed Aug 20, 2023
1 parent 73c2298 commit 58d019c
Show file tree
Hide file tree
Showing 6 changed files with 538 additions and 15 deletions.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

conda-build:
conda mambabuild --output-folder . --python=3.10 conda/zipline-tardis-bundle
#conda mambabuild --output-folder . --python=3.10 conda/zipline-tardis-bundle
conda mambabuild -c conda-forge -c sphelps --output-folder . conda/zipline-tardis-bundle
40 changes: 40 additions & 0 deletions conda/tardis-client/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{% set name = "tardis-client" %}
{% set version = "1.3.4" %}

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

source:
url: https://files.pythonhosted.org/packages/91/8d/bd61452ceb0d4686c8526c0f2ba23116375834fde3f5eec5a46fc2e93035/{{ name }}-{{ version }}.tar.gz
md5: 93463a899e51e69230d7ac23c762f834

build:
number: 0
skip: true # [py<37 or not x86_64]
include_recipe: False
script: {{ PYTHON }} -m pip install . -vv

requirements:
build:
- python
- cython
- numpy
- poetry
run:
- python>=3.7
- aiohttp=3.8.1
- aiofiles=0.8.0
- sortedcontainers=2.1

test:
imports:
- tardis_client

about:
home: https://github.com/tardis-dev/tardis-python
license: Mozilla Public License 2.0

extra:
maintainers:
- https://github.com/phelps-sg
41 changes: 41 additions & 0 deletions conda/tardis-dev/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{% set name = "tardis-dev" %}
{% set version = "2.0.0a13" %}

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

source:
url: https://files.pythonhosted.org/packages/20/be/0d37bb16e2e995c9b3e8df2a1d72c180a4ba2b7c52052b4b0e64ffeb84a4/{{ name }}-{{ version }}.tar.gz
md5: 7e75ae655362dd39687de61eaef0b089

build:
number: 0
skip: true # [py<37 or not x86_64]
include_recipe: False
script: {{ PYTHON }} -m pip install . -vv

requirements:
build:
- python
- cython
- numpy
- poetry>=0.12
run:
- python>=3.7
- aiohttp=3.8.1
- aiofiles=0.8.0
- sortedcontainers=2.1
- python-dateutil=2.8.2

test:
imports:
- tardis_dev

#about:
# home: https://github.com/tardis-dev/tardis-python
# license: Mozilla Public License 2.0

extra:
maintainers:
- https://github.com/phelps-sg
26 changes: 12 additions & 14 deletions conda/zipline-tardis-bundle/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,24 +21,24 @@ requirements:
- pip
run:
- python>=3.10
# - numpy
# - pandas
# - pandas-stubs
- numpy
- pandas
# - pre-commit
# - blackd
# - pylint
# - pytest
# - pytest-mock
# - pydrive
# - mypy
# - zipline-reloaded
# - pyfolio-reloaded
- zipline-reloaded
- pyfolio-reloaded
- tardis-client>=1.3.4
- tardis-dev
# - pip
# - ray-default
# - grpcio=1.43
# - fn
# - pykalman
- pip
- ray-default
- grpcio=1.43
- fn
- pykalman
# - mPyPl
# - tardis-client
# - tardis_dev
Expand All @@ -47,11 +47,9 @@ requirements:

test:
commands:
- pip check
- python -c "import zipline_tardis_bundle"
- conda update --all -y
requires:
- pip
# requires:
# - pip

about:
home: https://github.com/phelps-sg/zipline-tardis-bundle
Expand Down
Loading

0 comments on commit 58d019c

Please sign in to comment.