-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathsetup.py
More file actions
56 lines (50 loc) · 1.56 KB
/
Copy pathsetup.py
File metadata and controls
56 lines (50 loc) · 1.56 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
import os
from setuptools import setup, find_packages
def get_version():
initpath = os.path.join(os.path.dirname(__file__), "simfile/__init__.py")
with open(initpath) as initfile:
for line in initfile:
if line.startswith("__version__"):
delim = '"' if '"' in line else "'"
return line.split(delim)[1]
else:
raise RuntimeError("Unable to find version string.")
version = get_version()
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
setup(
name="simfile",
version=version,
description="Modern simfile library for Python",
long_description=long_description,
long_description_content_type="text/markdown",
author="Ash Garcia",
author_email="python-simfile@garcia.sh",
url="https://github.com/garcia/simfile",
packages=find_packages(exclude=["*.tests"]),
package_data={
"simfile": ["py.typed"],
},
include_package_data=True,
classifiers=[
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python :: 3",
"Topic :: Games/Entertainment",
"Topic :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed",
],
license="MIT",
keywords="stepmania simfile sm ssc",
zip_safe=False,
install_requires=[
"msdparser~=2.0.0",
"fs~=2.4.15",
],
python_requires=">=3.6",
tests_require=["pyfakefs"],
command_options={
"build_sphinx": {
"version": ("setup.py", version),
},
},
)