Skip to content

Commit 4f69052

Browse files
authored
Use requirements.txt inside setup.py (#711)
Enhancement proposal. It would be great if `pip install git+https://github.com/bigscience-workshop/promptsource` would install the package dependencies. I faced this inconvenience when installing T0 repository in a clean environment. T0 only specifies `promptsource` as a dependency and because the `requirements.txt` in promptsource are not propagated into its `setup.py`, the package is installed without `sentencepiese` and `jinja2`.
1 parent b3901de commit 4f69052

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

setup.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,17 @@
33
with open('README.md') as readme_file:
44
readme = readme_file.read()
55

6+
with open('requirements.txt') as requirements_file:
7+
requirements = requirements_file.read().split('\n')
8+
69
setup(
710
name='promptsource',
811
version='0.1.0',
912
url='https://github.com/bigscience-workshop/promptsource.git',
1013
author='Multiple Authors',
1114
author_email='xxx',
1215
python_requires='>=3.7, <3.8',
16+
install_requires=requirements,
1317
classifiers=[
1418
'Development Status :: 2 - Pre-Alpha',
1519
'Intended Audience :: Developers',

0 commit comments

Comments
 (0)