Skip to content

Commit

Permalink
update setup.py to explicitely name dependencies, including two publi…
Browse files Browse the repository at this point in the history
…c repositories. should aid in pip installation
  • Loading branch information
bch0w committed Jan 5, 2022
1 parent e436629 commit 33d70b2
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 15 deletions.
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ pyasdf==0.7.2
pandas==1.1.0
pypdf2==1.26.0
pyyaml==5.4
https://github.com/bch0w/pyflex/archive/refs/tags/0.2.0.tar.gz
# http://github.com/bch0w/pyflex/tarball/return_reject_windows
basemap==1.3.0
https://github.com/bch0w/pyflex/tarball/master
http://github.com/krischer/pyadjoint/tarball/master
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[metadata]
description-file = README.md
description_file = README.md
27 changes: 15 additions & 12 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,7 @@
import os
from setuptools import setup, find_packages


# Get the list of required dependencies from requirements.txt
path_pyatoa = os.path.dirname(os.path.realpath(__file__))
req_file = os.path.join(path_pyatoa, "requirements.txt")
if os.path.exists(req_file):
with open(req_file, "r") as f:
install_requires = list(f.read().splitlines())
else:
install_requires = []

# Remove the public repos (not hosted) from install requires, put in dependency
setup(name='pyatoa',
version='0.1.0',
description="Python's Adjoint Tomography Operations Assistant",
Expand All @@ -19,6 +10,18 @@
author='Bryant Chow',
author_email='[email protected]',
license='GPL-3.0',
python_requires=">=3.7",
packages=find_packages(),
install_requires=[],
zip_safe=False)
install_requires=[
"obspy==1.2.2",
"matplotlib==3.0.3",
"pyasdf==0.7.2",
"pandas==1.1.0",
"pypdf2==1.26.0",
"pyyaml==5.4",
"basemap==1.3.0",
"pyflex @ git+https://github.com/bch0w/[email protected]",
"pyadjoint @ git+https://github.com/krischer/pyadjoint"
],
zip_safe=False
)

0 comments on commit 33d70b2

Please sign in to comment.