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