-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
69 lines (55 loc) · 1.73 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
from setuptools import setup
import sys
import os
import shutil
import distutils.cmd
VERSION = "0.0.16"
class PypiCommand(distutils.cmd.Command):
description = "Build and upload for PyPI."
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
try:
shutil.rmtree("dist/")
except FileNotFoundError:
pass
wheel_file = "pMTnet_Omni_Document-{}-py3-none-any.whl".format(VERSION)
tar_file = "pMTnet_Omni_Document-{}.tar.gz".format(VERSION)
os.system("{} setup.py sdist bdist_wheel".format(sys.executable))
os.system("twine upload dist/{} dist/{}".format(wheel_file, tar_file))
setup(
name="pMTnet_Omni_Document",
version=VERSION,
description="Document for pMTnet Omni",
author="Yi Han, Yuqiu Yang, Tao Wang",
long_description_content_type="text/markdown",
long_description=open("README.md").read(),
packages=["pMTnet_Omni_Document"],
package_data={'pMTnet_Omni_Document': ['validation_data/*']},
python_requires=">=3.9,<3.11",
install_requires=[
'numpy==1.22.4',
'pandas==1.5.2',
'tqdm==4.64.1',
'torch==1.13.1',
'fair-esm==2.0.0'
],
test_requires=[
'pytest==7.1.2',
'coverage==6.3.2',
'pytest-cov==3.0.0',
'pytest-mock==3.10.0'
],
classifiers=[
"Programming Language :: Python :: 3 :: Only",
"Natural Language :: English",
"Intended Audience :: Science/Research",
],
cmdclass={
"pypi": PypiCommand
}
)