|
1 | 1 | import setuptools |
| 2 | +import os |
| 3 | + |
| 4 | +def get_requirements(path): |
| 5 | + ret = [] |
| 6 | + with open(os.path.join(path, "requirements.txt"), encoding="utf-8") as freq: |
| 7 | + for line in freq.readlines(): |
| 8 | + ret.append( line.strip() ) |
| 9 | + return ret |
| 10 | + |
| 11 | + |
| 12 | +path = os.path.dirname(os.path.abspath(__file__)) |
| 13 | +requires = get_requirements(path) |
| 14 | +print("aaaaa") |
| 15 | +print(requires) |
2 | 16 |
|
3 | 17 | with open('README.md', 'r') as f: |
4 | 18 | setuptools.setup( |
5 | 19 | name = 'openprompt', |
6 | | - version = '0.1.1', |
| 20 | + version = '0.1.2', |
7 | 21 | description = "An open source framework for prompt-learning.", |
8 | 22 | long_description=open("README.md", "r", encoding="utf-8").read(), |
9 | 23 | long_description_content_type="text/markdown", |
|
12 | 26 | license="Apache", |
13 | 27 | url="https://github.com/thunlp/OpenPrompt", |
14 | 28 | keywords = ['PLM', 'prompt', 'AI', 'NLP'], |
15 | | - python_requires=">=3.6.0", |
| 29 | + python_requires=">=3.8.0", |
| 30 | + install_requires=requires, |
16 | 31 | packages=setuptools.find_packages(), |
17 | 32 | classifiers=[ |
18 | 33 | "Programming Language :: Python :: 3", |
19 | | - "Programming Language :: Python :: 3.6", |
20 | | - "Programming Language :: Python :: 3.7", |
21 | 34 | "Programming Language :: Python :: 3.8", |
22 | 35 | "Programming Language :: Python :: 3.9", |
23 | 36 | "Intended Audience :: Developers", |
|
0 commit comments