This repository has been archived by the owner on Jan 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
47 lines (43 loc) · 1.56 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
from setuptools import setup
from re import search, MULTILINE
pkg_name = "Asciinpy"
prj_name = "Asciin.py"
packages = [pkg_name, "Asciinpy._2D", "Asciinpy._3D"]
descriptors = ["readme.md", "changelog.md"]
long_description = ""
with open("{}/__init__.py".format(pkg_name)) as fp:
version = search(
r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', fp.read(), MULTILINE
).group(1)
for desc in descriptors:
try:
with open(desc) as f:
long_description += f.read()
except FileNotFoundError:
pass
setup(
name=prj_name,
version=version,
description="Featherweight 3D / 2D Ascii console game engine for Python 2.7+ written in pure Python with Zero external dependencies.",
author="Rickaym",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/Rickaym/{}".format(prj_name),
project_urls={
"Documentation": "https://asciipy.readthedocs.io/en/latest/",
"Issue tracker": "https://github.com/Rickaym/{}/issues".format(prj_name),
},
license="MIT",
python_requires=">=2.7",
packages=packages,
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Topic :: Multimedia :: Graphics :: 3D Modeling",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Natural Language :: English",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.9",
],
)