-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup.py
More file actions
64 lines (56 loc) · 2.05 KB
/
Copy pathsetup.py
File metadata and controls
64 lines (56 loc) · 2.05 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
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import re
from io import open
import os.path as osp
from setuptools import setup
HERE = osp.abspath(osp.dirname(__file__))
# Read version from module without importing it
with open(osp.join(HERE, 'pibooth_nextcloud.py'), encoding='utf-8') as f:
content = f.read()
version = re.search(r'__version__\s*=\s*["\']([^"\']+)["\']', content).group(1)
def main():
setup(
name='pibooth_nextcloud',
version=version,
description="Pibooth plugin to upload photos to Nextcloud",
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.4',
'Programming Language :: Python :: 3.6',
'Natural Language :: English',
'Topic :: Multimedia :: Graphics :: Capture :: Digital Camera',
],
author="Ceeeeb",
url="https://github.com/ceeeeb/pibooth-nextcloud",
download_url="https://github.com/ceeeeb/pibooth-nextcloud/archive/{}.tar.gz".format(version),
license='MIT license',
platforms=['unix', 'linux'],
keywords=[
'Raspberry Pi',
'camera',
'photobooth' ,
'nextcloud'
],
py_modules=['pibooth_nextcloud'],
install_requires=[
'pibooth>=2.0.0',
'pyocclient>=0.4',
'qrcode>=6.1'
],
options={
'bdist_wheel':
{'universal': True}
},
zip_safe=False, # Don't install the lib as an .egg zipfile
entry_points={'pibooth': ["pibooth_nextcloud = pibooth_nextcloud"]},
)
if __name__ == '__main__':
main()