-
Notifications
You must be signed in to change notification settings - Fork 13
/
setup.py
103 lines (93 loc) · 2.93 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
"""domonic - python 3 DOM API"""
from setuptools import find_packages, setup
from domonic import __version__ as version
def read(filename: str) -> str:
"""Returns the contents of a file.
Args:
filename (str): The name of the file to read.
Returns:
str: content of the file
"""
with open(filename, encoding="utf-8") as file:
return file.read()
def get_requirements(filename: str = "requirements.txt"):
"""returns a list of all requirements"""
requirements = read(filename)
return list(
filter(
None,
[req.strip() for req in requirements.split() if not req.startswith("#")],
)
)
setup(
name="domonic",
version=version,
author="@byteface",
author_email="[email protected]",
license="MIT",
url="https://github.com/byteface/domonic",
download_url="https://github.com/byteface/domonic/archive/" + version + ".tar.gz",
description="Generate html with python 3. DOM API, Javascript API and more...",
long_description=read("README.md"),
long_description_content_type="text/markdown",
keywords=[
"html",
"generate",
"templating",
"dom",
"vdom",
"terminal",
"json",
"web",
"template",
"javascript",
"DOM",
"GUI",
"render",
"website",
"apps",
"html5",
"framework",
"SVG",
"x3d",
"events",
"geom",
],
python_requires=">=3.6",
classifiers=[
"Programming Language :: Python :: 3",
"Programming Language :: JavaScript",
"Programming Language :: Python",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Development Status :: 4 - Beta",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"Intended Audience :: Other Audience",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Topic :: Internet",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Multimedia :: Graphics :: Presentation",
"Topic :: Software Development",
"Topic :: Software Development :: Code Generators",
"Topic :: Terminals",
"Topic :: Utilities",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Text Processing :: Markup :: HTML",
],
install_requires=get_requirements(),
packages=find_packages(),
include_package_data=True,
entry_points={
"console_scripts": [
"domonic = domonic.__main__:run",
],
},
)