Skip to content

Commit 905a119

Browse files
author
StingNing
committed
update
1 parent a478a28 commit 905a119

File tree

3 files changed

+23
-10
lines changed

3 files changed

+23
-10
lines changed

docs/source/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
project = 'OpenPrompt'
3232
copyright = '{}, {}, Licenced under the Apache License, Version 2.0'.format(datetime.datetime.now().year, author)
3333

34-
version = "v0.1.1"
35-
release = "v0.1.1"
34+
version = "v0.1.2"
35+
release = "v0.1.2"
3636

3737
html_theme = 'sphinx_rtd_theme'
3838
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]

requirements.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
torch==1.9.0
2-
transformers==4.10.0
1+
torch>=1.9.0
2+
transformers>=4.10.0
33
sentencepiece==0.1.96
4-
scikit-learn==0.24.2
5-
tqdm==4.62.2
4+
scikit-learn>=0.24.2
5+
tqdm>=4.62.2
66
tensorboardX
77
nltk
88
yacs

setup.py

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,23 @@
11
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)
216

317
with open('README.md', 'r') as f:
418
setuptools.setup(
519
name = 'openprompt',
6-
version = '0.1.1',
20+
version = '0.1.2',
721
description = "An open source framework for prompt-learning.",
822
long_description=open("README.md", "r", encoding="utf-8").read(),
923
long_description_content_type="text/markdown",
@@ -12,12 +26,11 @@
1226
license="Apache",
1327
url="https://github.com/thunlp/OpenPrompt",
1428
keywords = ['PLM', 'prompt', 'AI', 'NLP'],
15-
python_requires=">=3.6.0",
29+
python_requires=">=3.8.0",
30+
install_requires=requires,
1631
packages=setuptools.find_packages(),
1732
classifiers=[
1833
"Programming Language :: Python :: 3",
19-
"Programming Language :: Python :: 3.6",
20-
"Programming Language :: Python :: 3.7",
2134
"Programming Language :: Python :: 3.8",
2235
"Programming Language :: Python :: 3.9",
2336
"Intended Audience :: Developers",

0 commit comments

Comments
 (0)