-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
71 lines (63 loc) · 2.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
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
#!/usr/bin/env python
import os
import shutil
import sys
from codecs import open
from setuptools import setup
CURRENT_PYTHON = sys.version_info[:2]
REQUIRED_PYTHON = (3, 8)
if CURRENT_PYTHON < REQUIRED_PYTHON:
sys.stderr.write(
f"Unsupported Python version - requires at least "
f"{REQUIRED_PYTHON[0]}.{REQUIRED_PYTHON[1]}"
)
sys.exit(1)
# 'setup.py publish' shortcut.
if sys.argv[-1] == "publish":
if os.path.exists("build"):
shutil.rmtree("build")
if os.path.exists("dist"):
shutil.rmtree("dist")
os.system("python setup.py sdist bdist_wheel")
os.system("twine upload dist/*")
sys.exit()
requires: list[str] = []
here = os.path.abspath(os.path.dirname(__file__))
with open("README.md", "r", "utf-8") as f:
readme = f.read()
setup(
name="konso_dice_roller",
version="0.0.6",
description="A simple dice roller library",
long_description=readme,
long_description_content_type="text/markdown",
author="Tomi Javanainen",
author_email="tomi.javanainen@gmail.com",
url="https://github.com/konsou/konso_dice_roller",
packages=["konso_dice_roller"],
package_data={"": ["LICENSE"]},
package_dir={"konso_dice_roller": "konso_dice_roller"},
include_package_data=True,
python_requires=">=3.8, <4",
install_requires=requires,
license="MIT",
zip_safe=False,
classifiers=[
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Natural Language :: Finnish",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Software Development :: Libraries",
],
project_urls={
"Source": "https://github.com/konsou/konso_dice_roller",
},
)