-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
67 lines (58 loc) · 1.91 KB
/
setup.py
File metadata and controls
67 lines (58 loc) · 1.91 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
#!/usr/bin/env python
import codecs
from os import system, path
import sys
from setuptools import find_packages, setup
here = path.abspath(path.dirname(__file__))
with codecs.open(path.join(here, "README.md"), encoding="utf-8") as f:
long_description = "\n" + f.read()
from pipenv.project import Project
from pipenv.utils.dependencies import convert_deps_to_pip
proj = Project(chdir=False)
pfile = proj.parsed_pipfile
requires = convert_deps_to_pip(pfile['packages'], False)
extras = convert_deps_to_pip(pfile['dev-packages'], False)
about = {}
ver_path = path.join(here, "audio_maffia", "version.py")
with open(ver_path) as f:
exec(f.read(), about)
if sys.argv[-1] == "publish":
system("python setup.py sdist bdist_wheel upload")
sys.exit()
setup(
name="audio_maffia",
version=str(about["version"]),
description="A Maffia-based audio game",
long_description=long_description,
long_description_content_type="text/markdown",
author="Michael Connor Buchan",
author_email="mikey@blindcomputing.org",
url="https://github.com/lower-elements/audio-maffia",
packages=find_packages(),
entry_points={
"gui_scripts": [
"audio-maffia=audio_maffia.__main__:main",
]
},
package_data={
"": ["LICENSE"],
},
python_requires=f">={proj.required_python_version}",
zip_safe=True,
setup_requires=[],
install_requires=requires,
extras_require={
"dev": extras,
},
include_package_data=True,
license="gpl-3-or-later",
classifiers=[
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Operating System :: OS Independent",
"Intended Audience :: End Users/Desktop",
],
)