2022-02-14 21:19:03 +08:00
|
|
|
|
|
|
|
import setuptools
|
|
|
|
import os
|
|
|
|
|
|
|
|
def get_requirements(path):
|
|
|
|
ret = []
|
|
|
|
with open(os.path.join(path, "requirements.txt"), encoding="utf-8") as freq:
|
|
|
|
for line in freq.readlines():
|
|
|
|
ret.append( line.strip() )
|
|
|
|
return ret
|
|
|
|
|
|
|
|
|
|
|
|
path = os.path.dirname(os.path.abspath(__file__))
|
|
|
|
requires = get_requirements(path)
|
|
|
|
print(requires)
|
|
|
|
|
|
|
|
with open('README.md', 'r') as f:
|
|
|
|
setuptools.setup(
|
|
|
|
name = 'opendelta',
|
2022-04-18 23:28:13 +08:00
|
|
|
version = '0.0.4',
|
2022-02-14 21:19:03 +08:00
|
|
|
description = "An open source framework for delta learning (parameter efficient learning).",
|
|
|
|
long_description=open("README.md", "r", encoding="utf-8").read(),
|
|
|
|
long_description_content_type="text/markdown",
|
|
|
|
author = '',
|
|
|
|
author_email = 'shengdinghu@gmail.com',
|
|
|
|
license="Apache",
|
|
|
|
url="https://github.com/thunlp/OpenDelta",
|
|
|
|
keywords = ['PLM', 'Parameter-efficient-Learning', 'AI', 'NLP'],
|
2022-03-20 03:09:00 +08:00
|
|
|
python_requires=">=3.6.0",
|
2022-02-14 21:19:03 +08:00
|
|
|
install_requires=requires,
|
|
|
|
packages=setuptools.find_packages(),
|
|
|
|
classifiers=[
|
|
|
|
"Programming Language :: Python :: 3",
|
|
|
|
"Programming Language :: Python :: 3.8",
|
|
|
|
"Programming Language :: Python :: 3.9",
|
|
|
|
"Intended Audience :: Developers",
|
|
|
|
"Intended Audience :: Education",
|
|
|
|
"Intended Audience :: Science/Research",
|
|
|
|
"License :: OSI Approved :: Apache Software License",
|
|
|
|
"Operating System :: OS Independent",
|
|
|
|
]
|
|
|
|
)
|