This repository was archived by the owner on Jun 7, 2024. It is now read-only.
forked from pythonarcade/arcade
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
119 lines (102 loc) · 3.21 KB
/
Copy pathsetup.py
File metadata and controls
119 lines (102 loc) · 3.21 KB
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
#!/usr/bin/env python
import os
from setuptools import find_namespace_packages, setup
def _rreplace(s, old, new, occurrence):
li = s.rsplit(old, occurrence)
return new.join(li)
def _get_version():
dirname = os.path.dirname(__file__) or '.'
my_path = f"{dirname}/arcade/VERSION"
try:
text_file = open(my_path, "r")
data = text_file.read().strip()
text_file.close()
data = _rreplace(data, '.', '', 1)
data = _rreplace(data, '-', '.', 1)
except Exception as e:
print(f"ERROR: Unable to load version number via '{my_path}'.")
print(f"Files in that directory: {os.listdir(my_path)}")
data = "0.0.0"
return data
VERSION = _get_version()
def get_long_description() -> str:
fname = os.path.join(os.path.dirname(os.path.abspath(__file__)), "README.rst")
with open(fname, "r") as f:
return f.read()
# Testing and code inspection tools
REQUIREMENTS_DEV = [
"pytest",
"flake8",
"mypy",
"coverage",
"coveralls",
"pytest-mock",
"pytest-cov",
]
# What is strictly needed for building docs (RTD)
# ALERT
# PYGMENTS 2.12.0 does not work as of 24-May-2022
REQUIREMENTS_DOCS = [
"Sphinx==6.0.0",
"Pygments==2.14.0",
"sphinx-copybutton==0.5.1",
"sphinx-sitemap==2.4.0",
"dirsync==2.2.5",
"pyyaml==6.0",
"docutils==0.19",
"sphinx-sitemap",
"furo",
"sphinx_copybutton",
"dirsync",
"wheel",
]
setup(
name="arcade",
description="Arcade Game Development Library",
long_description=get_long_description(),
author="Paul Vincent Craven",
author_email="paul.craven@simpson.edu",
license="MIT",
url="https://api.arcade.academy",
download_url="https://api.arcade.academy",
install_requires=[
"pyglet>=2.0.3,<2.1",
"pillow~=9.3.0",
"pymunk~=6.4.0",
"pytiled-parser~=2.2.0",
],
extras_require={
"dev": REQUIREMENTS_DEV + REQUIREMENTS_DOCS,
"docs": REQUIREMENTS_DOCS,
},
packages=find_namespace_packages(
include=["arcade", "arcade.*"],
exclude=[],
),
python_requires=">=3.8",
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Software Development :: Libraries :: Python Modules",
],
include_package_data=True,
entry_points={'console_scripts': [
'arcade = arcade.management:execute_from_command_line',
]},
project_urls={
"Documentation": "https://api.arcade.academy/",
"Example Code": "https://api.arcade.academy/en/latest/examples/index.html",
"Issue Tracker": "https://github.com/pythonarcade/arcade/issues",
"Source": "https://github.com/pythonarcade/arcade",
"On-line Book": "https://learn.arcade.academy",
},
version=VERSION,
)