Skip to content

Commit

Permalink
Add 4.3 datacite requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
tmorrell committed Sep 23, 2020
1 parent 4c6af7c commit 29cbcfd
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
8 changes: 8 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
requests
idutils
progressbar2
caltechdata_api>=0.1.3
py_dataset>=0.1.4
pandas
ArchivesSnake
datacite @ git+https://github.com/caltechlibrary/datacite.git@rest-api#egg=datacite
12 changes: 10 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ def read(fname):
return src


def read_requirements():
"""Parse requirements from requirements.txt."""
reqs_path = os.path.join(".", "requirements.txt")
with open(reqs_path, "r") as f:
requirements = [line.rstrip() for line in f]
return requirements


codemeta_json = "codemeta.json"


Expand Down Expand Up @@ -82,7 +90,7 @@ def package_files(package, directory):
"caltechdata_api>=0.1.3",
"py_dataset>=0.1.4",
"pandas",
"ArchivesSnake"
"ArchivesSnake",
]

# What packages are optional?
Expand Down Expand Up @@ -164,7 +172,7 @@ def run(self):
# entry_points={
# 'console_scripts': ['mycli=mymodule:cli'],
# },
install_requires=REQUIRED,
install_requires=read_requirements(),
extras_require=EXTRAS,
package_data={name: files},
license=lic,
Expand Down

0 comments on commit 29cbcfd

Please sign in to comment.