-
Notifications
You must be signed in to change notification settings - Fork 58
/
setup.py
45 lines (38 loc) · 1.31 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
from setuptools import setup
def readme():
with open("README.md") as f:
return f.read()
extras = {
"tests": ["pytest"],
"examples": ["numpy>=1.2.0", "datasets>=1.4.1", "ipywidgets>=7.6.3", "matplotlib>=3.3.4", "pandas>=1.2.3"],
}
def combine_requirements(base_keys):
return list(set(k for v in base_keys for k in extras[v]))
extras["dev"] = combine_requirements([k for k in extras if k != "examples"])
setup(
name="nn_pruning",
version="0.1.2",
description="nn_pruning is a python package for pruning PyTorch models.",
long_description="nn_pruning is a python package for pruning PyTorch models.",
classifiers=[
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.0",
"Topic :: Text Processing",
],
keywords="",
url="",
author="",
author_email="",
license="MIT",
packages=["nn_pruning", "nn_pruning.modules"],
install_requires=["click", "transformers>=4.3.0", "torch>=1.6", "scikit-learn>=0.24"],
extras_require=extras,
test_suite="nose.collector",
tests_require=["nose", "nose-cover3"],
entry_points={
"console_scripts": ["nn_pruning_run_example=examples.command_line:main"],
},
include_package_data=True,
zip_safe=False,
)