-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
59 lines (52 loc) · 1.67 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
# pylint: disable=all
# Stdlib:
import pathlib
import sys
from typing import List
# Thirdparty:
from setuptools import find_packages, setup
__version__ = "1.1.0-dev1"
PARENT = pathlib.Path(__file__).parent
def read_requirements(path: str) -> List[str]:
file_path = PARENT / path
requires = []
with open(file_path) as f:
requires = f.read().split("\n")
# requires += [f"wdb=={__version__}"]
if sys.platform == "linux":
requires += ["pyinotify"]
return requires
options = dict(
name="wdb.server.aiohttp",
version=__version__,
description="An improbable web debugger through WebSockets (server)",
long_description=open("README.md").read(),
long_description_content_type="text/markdown",
author="Shepilov Vladislav",
author_email="[email protected]",
url="https://github.com/shepilov-vladislav/wdb_server_aiohttp",
license="GPLv3",
platforms="Any",
scripts=["wdb.server.py"],
packages=find_packages(),
install_requires=read_requirements("requirements/production.txt"),
package_data={
"wdb_server": [
"static/*",
"templates/*.html",
"requirements/*",
]
},
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Software Development :: Debuggers",
],
include_package_data=True,
zip_safe=False,
)
setup(**options)