Mercurial > hg > zebra
annotate setup.py @ 23:0da94dcfdd55
Updated package metadata
author | Ben Croston <ben@croston.org> |
---|---|
date | Wed, 31 Aug 2011 16:43:02 +0100 |
parents | 8333c196accb |
children | 20f6df6d3f42 |
rev | line source |
---|---|
0 | 1 #!/usr/bin/env python |
2 import sys | |
3 from distutils.core import setup | |
4 | |
5 try: | |
8 | 6 from distutils.command.build_py import build_py_2to3 as build_py |
0 | 7 except ImportError: |
8 | 8 from distutils.command.build_py import build_py |
0 | 9 |
10 classifiers = ['Development Status :: 3 - Alpha', | |
11 'Operating System :: Microsoft :: Windows', | |
12 'Operating System :: Unix', | |
18 | 13 "Operating System :: MacOS :: MacOS X", |
0 | 14 'License :: OSI Approved :: MIT License', |
23 | 15 'Intended Audience :: Developers', |
0 | 16 'Programming Language :: Python :: 2.7', |
5
639d9699e53c
Change python 3.2 to python 3
Ben Croston <ben@fuzzyduckbrewery.co.uk>
parents:
1
diff
changeset
|
17 'Programming Language :: Python :: 3', |
0 | 18 'Topic :: Printing'] |
19 | |
20 long_description = open('README').read() | |
21 | |
1 | 22 if sys.platform.lower().startswith('win'): |
0 | 23 requires = ['win32print'] |
8 | 24 try: |
25 import win32print | |
26 except: | |
17
a9dacd180597
Does not work in python 2.6 after all
Ben Croston <ben@croston.org>
parents:
15
diff
changeset
|
27 raise Exception('Requires the win32print module from the pywin32 package.\nDownload from http://pypi.python.org/pypi/pywin32/') |
0 | 28 else: |
29 requires = [] | |
30 | |
31 setup(name = 'zebra', | |
17
a9dacd180597
Does not work in python 2.6 after all
Ben Croston <ben@croston.org>
parents:
15
diff
changeset
|
32 version = '0.0.3a', |
0 | 33 py_modules = ['zebra'], |
34 author = 'Ben Croston', | |
35 author_email = 'ben@croston.org', | |
36 maintainer = 'Ben Croston', | |
37 maintainer_email = 'ben@croston.org', | |
8 | 38 url = 'http://www.wyre-it.co.uk/zebra/', |
0 | 39 description = 'A package to communicate with (Zebra) label printers using EPL2', |
40 long_description = long_description, | |
20
8333c196accb
Updated platforms package metadata
Ben Croston <ben@croston.org>
parents:
18
diff
changeset
|
41 platforms = 'Windows, Unix, MacOSX', |
0 | 42 classifiers = classifiers, |
43 license = 'MIT', | |
44 cmdclass = {'build_py': build_py}, | |
45 requires = requires, | |
46 ) | |
47 |