diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..d311cd3 --- /dev/null +++ b/requirements.txt @@ -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 diff --git a/setup.py b/setup.py index 3e06dcf..ce2b8c3 100644 --- a/setup.py +++ b/setup.py @@ -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" @@ -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? @@ -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,