-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
70 lines (60 loc) · 1.59 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
70
import os
import re
import setuptools
NAME = "bpmn-tools"
AUTHOR = "Christophe VG"
AUTHOR_EMAIL = "[email protected]"
DESCRIPTION = "a collection of tools to work with BPMN"
LICENSE = "MIT"
KEYWORDS = "bpmn tools"
URL = "https://github.com/christophevg/" + NAME
README = ".github/README.md"
CLASSIFIERS = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
]
INSTALL_REQUIRES = [
"fire",
"xmltodict",
"colorama",
"graphviz",
]
ENTRY_POINTS = {
"console_scripts" : [
"bpmn-tool=bpmn_tools.__main__:cli",
]
}
SCRIPTS = [
]
HERE = os.path.dirname(__file__)
def read(file):
with open(os.path.join(HERE, file), "r") as fh:
return fh.read()
VERSION = re.search(
r'__version__ = [\'"]([^\'"]*)[\'"]',
read(NAME.replace("-", "_") + "/__init__.py")
).group(1)
LONG_DESCRIPTION = read(README)
if __name__ == "__main__":
setuptools.setup(
name=NAME,
version=VERSION,
packages=setuptools.find_packages(),
author=AUTHOR,
description=DESCRIPTION,
long_description=LONG_DESCRIPTION,
long_description_content_type="text/markdown",
license=LICENSE,
keywords=KEYWORDS,
url=URL,
classifiers=CLASSIFIERS,
install_requires=INSTALL_REQUIRES,
entry_points=ENTRY_POINTS,
scripts=SCRIPTS,
include_package_data=True
)