2022-02-14 21:19:03 +08:00
|
|
|
|
|
|
|
import setuptools
|
|
|
|
import os
|
2022-06-07 01:52:32 +08:00
|
|
|
import os
|
2022-02-14 21:19:03 +08:00
|
|
|
|
|
|
|
def get_requirements(path):
|
|
|
|
ret = []
|
2022-07-03 10:30:59 +08:00
|
|
|
# path = "/home/ubuntu/OpenDelta_beta/OpenDelta/"
|
|
|
|
with open(os.path.join(path, "opendelta.egg-info/requires.txt"), encoding="utf-8") as freq:
|
2022-02-14 21:19:03 +08:00
|
|
|
for line in freq.readlines():
|
|
|
|
ret.append( line.strip() )
|
|
|
|
return ret
|
|
|
|
|
|
|
|
|
|
|
|
path = os.path.dirname(os.path.abspath(__file__))
|
|
|
|
requires = get_requirements(path)
|
|
|
|
|
|
|
|
with open('README.md', 'r') as f:
|
|
|
|
setuptools.setup(
|
|
|
|
name = 'opendelta',
|
2022-07-03 10:30:59 +08:00
|
|
|
version = "0.2.0",
|
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-07-03 10:30:59 +08:00
|
|
|
install_requires=get_requirements(path),
|
2022-06-07 01:52:32 +08:00
|
|
|
package_dir={'opendelta':'opendelta'},
|
|
|
|
package_data= {
|
2022-07-03 10:30:59 +08:00
|
|
|
'opendelta':["utils/interactive/templates/*.html", 'requirments.txt'],
|
2022-06-07 01:52:32 +08:00
|
|
|
},
|
|
|
|
include_package_data=True,
|
2022-02-14 21:19:03 +08:00
|
|
|
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",
|
|
|
|
]
|
|
|
|
)
|