-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update setup.py to explicitely name dependencies, including two publi…
…c repositories. should aid in pip installation
- Loading branch information
Showing
3 changed files
with
18 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
[metadata] | ||
description-file = README.md | ||
description_file = README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", | ||
|
@@ -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 | ||
) |