Skip to content

Commit

Permalink
Read dependencies from one file for setup.py and travis CI (#81)
Browse files Browse the repository at this point in the history
* Read dependencies from one file for setup.py and use it in .travis.yml for setting up conda env

* delete obsolete visualization stuff and remove folium

* remove keras which should now be a submodule of tensorflow

* test multiple python versions in travis CI
  • Loading branch information
cchwala committed May 10, 2021
1 parent 4957a60 commit c115916
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 180 deletions.
23 changes: 6 additions & 17 deletions .travis.yml
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
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
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
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
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
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,
)

0 comments on commit c115916

Please sign in to comment.