forked from pibooth/pibooth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
96 lines (87 loc) · 3.67 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
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
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import sys
from io import open
import os.path as osp
from setuptools import setup, find_packages
HERE = osp.abspath(osp.dirname(__file__))
sys.path.insert(0, HERE)
import pibooth # nopep8 : import shall be done after adding setup to paths
with open(osp.join(HERE, 'docs', 'requirements.txt')) as fd:
docs_require = fd.read().splitlines()
def main():
setup(
name=pibooth.__name__,
version=pibooth.__version__,
description=pibooth.__doc__,
long_description=open(osp.join(HERE, 'README.rst'), encoding='utf-8').read(),
long_description_content_type='text/x-rst',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Other Environment',
'Intended Audience :: Developers',
'Intended Audience :: End Users/Desktop',
'License :: OSI Approved :: MIT License',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Natural Language :: Danish',
'Natural Language :: Dutch',
'Natural Language :: English',
'Natural Language :: French',
'Natural Language :: German',
'Natural Language :: Hungarian',
'Natural Language :: Italian',
'Natural Language :: Norwegian',
'Natural Language :: Portuguese',
'Natural Language :: Portuguese (Brazilian)',
'Natural Language :: Spanish',
'Topic :: Multimedia :: Graphics :: Capture :: Digital Camera',
],
author="Vincent Verdeil, Antoine Rousseaux",
url="https://github.com/pibooth/pibooth",
download_url="https://github.com/pibooth/pibooth/archive/{}.tar.gz".format(pibooth.__version__),
license='MIT license',
platforms=['unix', 'linux'],
keywords=[
'Raspberry Pi',
'camera',
'photobooth'
],
packages=find_packages(),
package_data={
'pibooth': ['*.ini'],
'pibooth.fonts': ['*.ttf'],
'pibooth.pictures': ['*/*.png'],
},
include_package_data=True,
python_requires=">=3.6",
install_requires=[
'picamera>=1.13 ; platform_machine>="armv0l" and platform_machine<="armv9l"',
'Pillow==9.2.0',
'pygame>=1.9.6',
'pygame-menu==4.0.7',
'pygame-vkeyboard>=2.0.8',
'psutil>=5.5.1',
'pluggy>=0.13.1',
'gpiozero>=1.5.1',
# RPi.GPIO backend for gpiozero (not always installed by default)
'RPi.GPIO>=0.7.0 ; platform_machine>="armv0l" and platform_machine<="armv9l"'
],
extras_require={
'dslr': ['gphoto2>=2.0.0'],
'printer': ['pycups>=1.9.73', 'pycups-notify>=0.0.4'],
'doc': docs_require
},
zip_safe=False, # Don't install the lib as an .egg zipfile
entry_points={'console_scripts': ["pibooth = pibooth.booth:main",
"pibooth-count = pibooth.scripts.count:main",
"pibooth-diag = pibooth.scripts.diagnostic:main",
"pibooth-fonts = pibooth.scripts.fonts:main",
"pibooth-regen = pibooth.scripts.regenerate:main",
"pibooth-printcfg = pibooth.scripts.printer:main"]},
)
if __name__ == '__main__':
main()