-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
72 lines (61 loc) · 2.13 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
71
72
import codecs
import os
from platform import python_version
from setuptools import find_packages, setup
PACKAGE_NAME = "textx-gen-coloring"
VERSION = "0.1.2"
AUTHOR = "Daniel Elero"
AUTHOR_EMAIL = "[email protected]"
DESCRIPTION = "a syntax highlight generator for textX languages"
KEYWORDS = "textX DSL python domain specific languages syntax highlighting"
LICENSE = "MIT"
URL = "https://github.com/danixeee/textx-gen-coloring"
packages = find_packages()
print("packages:", packages)
README = codecs.open(
os.path.join(os.path.dirname(__file__), "README.md"), "r", encoding="utf-8"
).read()
ci_require = [
"bandit==1.6.2",
"pytest==5.3.2",
"pytest-cov==2.8.1",
"pytest-azurepipelines==0.8.0",
]
dev_require = ["bandit==1.6.2"]
tests_require = ["coverage==5.0.1", "pytest==5.3.2", "pytest-cov==2.8.1"]
if python_version().startswith("3.6"): # For python 3.6
ci_require.append("black")
dev_require.append("black")
setup(
name=PACKAGE_NAME,
version=VERSION,
description=DESCRIPTION,
long_description=README,
long_description_content_type="text/markdown",
url=URL,
author=AUTHOR,
author_email=AUTHOR_EMAIL,
keywords=KEYWORDS,
license=LICENSE,
packages=packages,
include_package_data=True,
install_requires=["click", "jinja2", "textx"],
entry_points={
"textx_generators": ["textmate_gen = textx_gen_coloring:textmate_gen"],
"textx_languages": ["coloring_lang = textx_gen_coloring:coloring_lang"],
},
extras_require={"ci": ci_require, "dev": dev_require, "test": tests_require},
classifiers=[
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"Topic :: Software Development :: Libraries :: Python Modules",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
],
)