-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
37 lines (34 loc) · 1.1 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
from setuptools import setup
import os
import pathlib
import re
import sys
init_text = pathlib.Path(__file__).parent / "csmlog" / "__init__.py"
version = None
for line in init_text.read_text().splitlines():
if line.startswith("__version__"):
version = eval(line.split("=")[1])
assert version, "Could not find __version__!"
setup(
name="csmlog",
author="csm10495",
author_email="[email protected]",
url="http://github.com/csm10495/csmlog",
version=version,
packages=["csmlog"],
license="MIT License",
python_requires=">=3.6",
long_description=open("README.md").read(),
long_description_content_type="text/markdown",
classifiers=[
"Intended Audience :: Developers",
"Natural Language :: English",
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
],
include_package_data=True,
# gspread<6 to keep py 3.7 support.
install_requires=["six", "gspread<6.0.0"],
entry_points={"console_scripts": ["csmlogudp = csmlog.udp_handler_receiver:main"]},
)