comparison setup.py @ 29:63d1260cc64e 0.1.0

- class name is now 'Zebra' instead of 'zebra' - Fix for missing win32print module in pypi - Drop python 2 support - use setuptools instead of distutils - improve documentation - Added reset(), reset_default(), autosense(), print_config_label() and print_graphic() functions
author Ben Croston <ben@croston.org>
date Tue, 01 Sep 2020 15:57:24 +0100
parents 7c132e01c281
children
comparison
equal deleted inserted replaced
28:172de216b85d 29:63d1260cc64e
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 import sys 2 import sys
3 from distutils.core import setup 3 from setuptools import setup
4
5 try:
6 from distutils.command.build_py import build_py_2to3 as build_py
7 except ImportError:
8 from distutils.command.build_py import build_py
9 4
10 classifiers = ['Development Status :: 5 - Production/Stable', 5 classifiers = ['Development Status :: 5 - Production/Stable',
11 'Operating System :: Microsoft :: Windows', 6 'Operating System :: Microsoft :: Windows',
12 'Operating System :: Unix', 7 'Operating System :: Unix',
13 "Operating System :: MacOS :: MacOS X", 8 "Operating System :: MacOS :: MacOS X",
14 'License :: OSI Approved :: MIT License', 9 'License :: OSI Approved :: MIT License',
15 'Intended Audience :: Developers', 10 'Intended Audience :: Developers',
16 'Programming Language :: Python :: 2.7',
17 'Programming Language :: Python :: 3', 11 'Programming Language :: Python :: 3',
18 'Topic :: Printing'] 12 'Topic :: Printing']
19 13
20 long_description = open('README').read()
21
22 if sys.platform.lower().startswith('win'):
23 install_requires = 'win32print'
24 else:
25 install_requires = None
26
27 setup(name = 'zebra', 14 setup(name = 'zebra',
28 version = '0.0.5', 15 version = '0.1.0',
29 py_modules = ['zebra'], 16 py_modules = ['zebra'],
30 author = 'Ben Croston', 17 author = 'Ben Croston',
31 author_email = 'ben@croston.org', 18 author_email = 'ben@croston.org',
32 maintainer = 'Ben Croston', 19 maintainer = 'Ben Croston',
33 maintainer_email = 'ben@croston.org', 20 maintainer_email = 'ben@croston.org',
34 url = 'http://www.wyre-it.co.uk/zebra/', 21 url = 'http://www.wyre-it.co.uk/zebra/',
35 description = 'A package to communicate with (Zebra) label printers using EPL2', 22 description = 'A package to communicate with (Zebra) label printers',
36 long_description = long_description, 23 long_description = open('README.rst').read() + '\n' + open('CHANGELOG.rst').read(),
24 long_description_content_type = 'text/x-rst',
37 platforms = 'Windows, Unix, MacOSX', 25 platforms = 'Windows, Unix, MacOSX',
38 classifiers = classifiers, 26 classifiers = classifiers,
39 license = 'MIT', 27 license = 'MIT',
40 cmdclass = {'build_py': build_py}, 28 install_requires = ["pywin32;platform_system=='Windows'"])
41 install_requires = install_requires
42 )