-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
69 lines (58 loc) · 2.34 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
"""setup.py file for the package ``darth_vader_rpi``.
The PyPi project name is ``Darth-Vader-RPi`` and the package name is
``darth_vader_rpi``.
"""
import os
import sys
from setuptools import find_packages, setup
from darth_vader_rpi import __version__, __test_version__
# Choose the correct version based on script's arg
if len(sys.argv) > 1 and sys.argv[1] == "testing":
VERSION = __test_version__
# Remove "testing" from args so setup doesn't process "testing" as a cmd
sys.argv.remove("testing")
else:
VERSION = __version__
# Directory of this file
dirpath = os.path.abspath(os.path.dirname(__file__))
# The text of the README file (used on PyPI)
with open(os.path.join(dirpath, "README.rst"), encoding="utf-8") as f:
README = f.read()
# The text of the requirements.txt file
with open(os.path.join(dirpath, "requirements.txt")) as f:
REQUIREMENTS = f.read().splitlines()
setup(name='Darth-Vader-RPi',
version=VERSION,
description='A Raspberry Pi project about activating a Darth Vader '
'action figure by turning on LEDs on his suit and '
'lightsaber, and by playing sounds such as some of his '
'famous quotes.',
long_description=README,
long_description_content_type='text/x-rst',
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Natural Language :: English',
'Operating System :: MacOS',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 3',
],
keywords='Raspberry Pi script pygame starwars Darth Vader',
url='https://github.com/raul23/Darth-Vader-RPi',
author='Raul C.',
author_email='rchfe23@gmail.com',
license='GPLv3',
packages=find_packages(exclude=['tests']),
include_package_data=True,
install_requires=REQUIREMENTS,
entry_points={
'console_scripts': ['start_dv=darth_vader_rpi.start_dv:main']
},
project_urls={ # Optional
'Bug Reports': 'https://github.com/raul23/Darth-Vader-RPi/issues',
'Documentation': 'https://darth-vader-rpi.readthedocs.io/',
'Source': 'https://github.com/raul23/Darth-Vader-RPi',
},
zip_safe=False)