-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathsetup.py
More file actions
51 lines (43 loc) · 1.65 KB
/
setup.py
File metadata and controls
51 lines (43 loc) · 1.65 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
# -*- coding: utf-8 -*-
import re
import sys
import os.path
import setuptools
with open(os.path.join(os.path.dirname(__file__), 'pyshtrih', '__init__.py')) as f:
version = re.search(r'__version__\s+=\s+[\'\"]+(.*)[\'\"]+', f.read()).group(1)
kwargs = {}
if sys.version_info.major >= 3:
kwargs['encoding'] = 'utf-8'
setuptools.setup(
name='pyshtrih',
version=version,
packages=[
'pyshtrih',
'pyshtrih.handlers'
],
url='https://github.com/oleg-golovanov/pyshtrih',
license='MIT',
author='Oleg Golovanov',
author_email='golovanov.ov@gmail.com',
description='Реализация драйвера семейства ККМ "Штрих" на Python.',
zip_safe=False,
platforms='any',
long_description=open(os.path.join(os.path.dirname(__file__), 'README.rst'), **kwargs).read(),
install_requires=['pyserial', 'unilog'],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: Implementation :: CPython',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Office/Business :: Financial :: Accounting',
'Topic :: Office/Business :: Financial :: Point-Of-Sale',
'Topic :: System :: Hardware :: Hardware Drivers',
'Natural Language :: Russian',
]
)