-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
37 lines (34 loc) · 1.14 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
import re, setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
with open('./plottoterminal/__init__.py', 'r') as f:
MATCH_EXPR = "__version__[^'\"]+(['\"])([^'\"]+)"
VERSION = re.search(MATCH_EXPR, f.read()).group(2)
# package:
# (venv) pip install pep517 setuptools wheel sdist twine
# (venv) python3 -m pep517.build --source --binary .
# upload:
# (venv) twine upload --repository testpypi dist/*
setuptools.setup(
name="plottoterminal",
version=VERSION,
author="bitromortac",
author_email="[email protected]",
description="Plotting library for the terminal.",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/bitromortac/plottoterminal",
packages=setuptools.find_packages(),
install_requires=['wheel'],
setup_requires=['wheel'],
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
entry_points={
"console_scripts": [
"plottoterminal = plottoterminal.main:main",
]
},
)