Skip to content

Commit

Permalink
FIX packaging so we can make proper pip recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
jklymak authored Jun 21, 2022
1 parent aaf126e commit 39bb563
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
name: Install Python dependencies
command: |
python -m pip install --user \
-r docs/requirements.txt
-r docs-requirements.txt
- run:
name: install module
command: python -m pip install --user -ve .
Expand Down
File renamed without changes.
27 changes: 14 additions & 13 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,7 @@
from setuptools import setup, find_packages

# Get the version from versioneer
__version__ = "0.0.2"

with open("./docs/requirements.txt", "r") as handle:
requirements_doc = [ld.strip() for ld in handle.read().splitlines() if ld.strip()]

with open("./tests/requirements.txt", "r") as handle:
requirements_dev = [ld.strip() for ld in handle.read().splitlines() if ld.strip()]

with open("./requirements.txt", "r") as handle:
requirements = [ld.strip() for ld in handle.read().splitlines() if ld.strip()]
__version__ = "0.0.4"

setup(name="pyglider",
version=__version__,
Expand All @@ -20,11 +11,21 @@
url="https://pyglider.readthedocs.io",
packages=find_packages(exclude=['tests']),
python_requires='>=3.6',
install_requires=requirements,
install_requires=[
"xarray",
"dask",
"netcdf4",
"gsw",
"scipy",
"bitstring",
"pooch"
],
license='Apache',
extras_require={
"code_style": ["flake8<3.8.0,>=3.7.0", "black", "pre-commit==1.17.0"],
"testing": requirements_dev,
"docs": requirements_doc,
"testing": ["pytest"],
"docs": ["pydata-sphinx-theme", "numpydoc", "autoapi", "myst-parser",
"sphinx"]
},
zip_safe=True
)
File renamed without changes.

0 comments on commit 39bb563

Please sign in to comment.