Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Read dependencies from one file for setup.py and travis CI #81

Merged
merged 9 commits into from
May 10, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 6 additions & 17 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,8 @@ sudo: false
matrix:
include:
- python: "3.7"
env: DEPS="numpy
scipy
pandas>=0.22
matplotlib
numba
folium
h5py==2.10.0
xarray
shapely
pyproj
tqdm
pykrige
tensorflow==1.14"
- python: "3.8"
- python: "3.9"

# setup adapted from https://github.com/bsmurphy/PyKrige/blob/master/.travis.yml
before_install:
Expand All @@ -28,15 +17,15 @@ before_install:
- conda info -a

install:
- conda create -q -n pycomlink-env python=${TRAVIS_PYTHON_VERSION} --yes
- conda create -q -n pycomlink-env python=${TRAVIS_PYTHON_VERSION} --file requirements.txt --channel conda-forge --yes
- source activate pycomlink-env
- conda install --yes $DEPS pip
- conda install -c conda-forge --yes codecov
- conda install -c conda-forge --yes pip codecov
#- pip install coveralls
- pip install pytest pytest-cov
- python -V
#- python setup.py build_ext --inplace
- python setup.py install
#- python setup.py install
- python setup.py develop --no-deps
- pwd
- du -h

Expand Down
7 changes: 2 additions & 5 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,15 @@ dependencies:
- pandas>=0.22
- matplotlib
- numba
- folium
- h5py==2.10.0
- h5py
- xarray
- netcdf4
- shapely
- pyproj
- tqdm
- pykrige
- tensorflow==1.14
- keras
- tensorflow
- future
- pytest
- pip
- pip:
- git+https://github.com/pycomlink/pycomlink.git#egg=pycomlink
7 changes: 3 additions & 4 deletions environment_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,14 @@ dependencies:
- pandas>=0.22
- matplotlib
- numba
- folium
- h5py==2.10.0
- h5py
- xarray
- netcdf4
- shapely
- pyproj
- tqdm
- pykrige
- tensorflow==1.14
- keras
- tensorflow
- future
- jupyterlab
- notebook
1 change: 0 additions & 1 deletion pycomlink/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

from . import processing
from . import io
from . import vis
from . import spatial
from . import validation
from . import util
14 changes: 0 additions & 14 deletions pycomlink/vis/__init__.py

This file was deleted.

51 changes: 0 additions & 51 deletions pycomlink/vis/interactive_maps.py

This file was deleted.

71 changes: 0 additions & 71 deletions pycomlink/vis/maps.py

This file was deleted.

1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ scipy
pandas>=0.22
matplotlib
numba
folium
h5py
xarray
netcdf4
Expand Down
23 changes: 7 additions & 16 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
import os
from setuptools import setup, find_packages

with open("requirements.txt", "r") as f:
INSTALL_REQUIRES = [rq for rq in f.read().split("\n") if rq != ""]

# Utility function to read the README file.
# Used for the long_description. It's nice, because now 1) we have a top level
# README file and 2) it's easier to type in the README file than to put a raw
Expand All @@ -33,23 +36,11 @@ def read(fname):
"Development Status :: 3 - Alpha",
"Topic :: Scientific/Engineering :: Atmospheric Science",
"License :: OSI Approved :: BSD License",
'Programming Language :: Python :: 3.6'
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
],
# A list of all available classifiers can be found at
# https://pypi.python.org/pypi?%3Aaction=list_classifiers
install_requires=[
'numpy',
'scipy',
'pandas>=0.22',
'matplotlib',
'numba',
'folium',
'h5py',
'xarray',
'netcdf4',
'shapely',
'pyproj',
'tqdm',
'pykrige',
'future'],
install_requires=INSTALL_REQUIRES,
)