-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
58 lines (49 loc) · 1.47 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
#!/usr/bin/env python
import os
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
readme = open('README.md').read().strip()
doclink = """
Documentation
-------------
The full documentation is at http://snacker-tracker-scanner.rtfd.org."""
history = open('HISTORY.md').read().strip()
try:
version = open('.package-version').read().strip()
except:
version = "0.1.0-snapshot"
setup(
name='snacker-tracker-scanner',
version=version,
description='Pipe barcode scanner input events to a remote web service',
long_description=readme + '\n\n' + doclink + '\n\n' + history,
author='lmac',
author_email='leprechaun@gmail.com',
url='https://github.com/snacker-tracker/scanner',
packages=[
'snacker_tracker_scanner',
],
scripts=["scripts/snacker-tracker-scanner"],
package_dir={'snacker-tracker-scanner': 'snacker_tracker_scanner'},
include_package_data=True,
install_requires=["requests"],
extras_require = {
"evdev": ["evdev"]
},
license='MIT',
zip_safe=False,
keywords='barcode scanner snacker-tracker',
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Programming Language :: Python :: 3.9',
],
)