-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathsetup.py
54 lines (48 loc) · 1.52 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
#!/usr/bin/env python
# setup.py
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
import os
import sys
# windows installer:
# python setup.py bdist_wininst
# patch distutils if it can't cope with the "classifiers" or
# "download_url" keywords
if sys.version < '2.2.3':
from distutils.dist import DistributionMetadata
DistributionMetadata.classifiers = None
DistributionMetadata.download_url = None
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='pyparallel',
description='Python Parallel Port Extension',
version='0.2.2',
author='Chris Liechti',
author_email='cliechti@gmx.net',
url='https://github.com/pyserial/pyparallel',
packages=['parallel', 'parallel.win32'],
package_dir={'parallel': 'parallel',
'parallel.win32': 'src/win32'},
setup_requires=[
"flake8"
],
license='BSD',
long_description=read('README.rst'),
keywords='parallel port parport lpt printer ppdev',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Operating System :: POSIX',
'Operating System :: Microsoft :: Windows',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Topic :: Communications',
'Topic :: Software Development :: Libraries',
],
include_package_data=True
)