Mercurial > hg > zebra
annotate setup.py @ 5:639d9699e53c
Change python 3.2 to python 3
author | Ben Croston <ben@fuzzyduckbrewery.co.uk> |
---|---|
date | Fri, 12 Aug 2011 21:58:59 +0100 |
parents | 21c3229ed401 |
children | 19fd067db7ca |
rev | line source |
---|---|
0 | 1 #!/usr/bin/env python |
2 import sys | |
3 from distutils.core 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 | |
10 classifiers = ['Development Status :: 3 - Alpha', | |
11 'Operating System :: Microsoft :: Windows', | |
12 'Operating System :: Unix', | |
13 'License :: OSI Approved :: MIT License', | |
14 'Programming Language :: Python :: 2.7', | |
5
639d9699e53c
Change python 3.2 to python 3
Ben Croston <ben@fuzzyduckbrewery.co.uk>
parents:
1
diff
changeset
|
15 'Programming Language :: Python :: 3', |
0 | 16 'Topic :: Printing'] |
17 | |
18 long_description = open('README').read() | |
19 | |
1 | 20 if sys.platform.lower().startswith('win'): |
0 | 21 requires = ['win32print'] |
22 else: | |
23 requires = [] | |
24 | |
25 setup(name = 'zebra', | |
26 version = '0.0.1a', | |
27 py_modules = ['zebra'], | |
28 author = 'Ben Croston', | |
29 author_email = 'ben@croston.org', | |
30 maintainer = 'Ben Croston', | |
31 maintainer_email = 'ben@croston.org', | |
32 # url = 'http://www.wyre-it.co.uk/zebra/', | |
33 description = 'A package to communicate with (Zebra) label printers using EPL2', | |
34 long_description = long_description, | |
35 platforms = 'Windows, Unix', | |
36 classifiers = classifiers, | |
37 license = 'MIT', | |
38 cmdclass = {'build_py': build_py}, | |
39 requires = requires, | |
40 ) | |
41 |