-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathsetup.py
69 lines (57 loc) · 1.79 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
69
from pathlib import Path
try:
from setuptools import setup
from setuptools import find_packages
except ImportError:
raise ImportError(
'Could not import "setuptools".' "Please install the setuptools package."
)
readme = Path("README.md")
license = Path("LICENSE")
# Read the version without importing the package
# (and thus attempting to import packages it depends on that may not be
# installed yet)
version = "0.1"
NAME = "succ_utils"
VERSION = version
DESCRIPTION = "统一社会信用代码校验,生成"
KEYWORDS = "social unified credit code, 统一社会信用代码校验,生成"
AUTHOR = "somenzz"
AUTHOR_EMAIL = "[email protected]"
URL = "https://github.com/somenzz/social_unified_creditcode"
LICENSE = license.read_text()
PACKAGES = find_packages(exclude=["tests", "test.*"])
print(PACKAGES)
INSTALL_REQUIRES = []
TEST_SUITE = "tests"
TESTS_REQUIRE = []
CLASSIFIERS = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Topic :: Software Development",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Utilities",
]
LONG_DESCRIPTION = readme
params = {
"name": NAME,
"version": VERSION,
"description": DESCRIPTION,
"keywords": KEYWORDS,
"author": AUTHOR,
"author_email": AUTHOR_EMAIL,
"url": URL,
"packages": PACKAGES,
"license": "MIT",
"install_requires": INSTALL_REQUIRES,
"tests_require": TESTS_REQUIRE,
"test_suite": TEST_SUITE,
"classifiers": CLASSIFIERS,
"long_description": readme.read_text(),
}
if __name__ == "__main__":
setup(**params, long_description_content_type="text/markdown")