-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
45 lines (37 loc) · 1.12 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
#!/usr/bin/env python3
VERSION = "0.0.6"
DESCRIPTION = "Python module for simple pattern matching"
CLASSIFIERS = [
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Topic :: Software Development :: Libraries :: Python Modules",
]
def main():
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
with open("README.md") as fin:
desc = fin.read().strip()
options = {
"name": "py-ttern",
"version": VERSION,
"license": "MIT",
"description": DESCRIPTION,
"long_description": desc,
"long_description_content_type": "text/markdown",
"url": "https://github.com/Z-Shang/pyttern",
"author": "zshang",
"author_email": "[email protected]",
"classifiers": CLASSIFIERS,
"packages": [
"pyttern",
],
"install_requires": ["bytecode", "fppy"],
}
setup(**options)
if __name__ == "__main__":
main()