Mercurial > hg > zebra
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/setup.py Fri Aug 12 21:40:12 2011 +0100 @@ -0,0 +1,43 @@ +#!/usr/bin/env python +import sys +from distutils.core import setup + +try: + from distutils.command.build_py import build_py_2to3 as build_py +except ImportError: + from distutils.command.build_py import build_py + +PLATFORM_IS_WINDOWS = sys.platform.lower().startswith('win') + +classifiers = ['Development Status :: 3 - Alpha', + 'Operating System :: Microsoft :: Windows', + 'Operating System :: Unix', + 'License :: OSI Approved :: MIT License', + 'Programming Language :: Python :: 2.7', + 'Programming Language :: Python :: 3.2', + 'Topic :: Printing'] + +long_description = open('README').read() + +if PLATFORM_IS_WINDOWS: + requires = ['win32print'] +else: + requires = [] + +setup(name = 'zebra', + version = '0.0.1a', + py_modules = ['zebra'], + author = 'Ben Croston', + author_email = 'ben@croston.org', + maintainer = 'Ben Croston', + maintainer_email = 'ben@croston.org', +# url = 'http://www.wyre-it.co.uk/zebra/', + description = 'A package to communicate with (Zebra) label printers using EPL2', + long_description = long_description, + platforms = 'Windows, Unix', + classifiers = classifiers, + license = 'MIT', + cmdclass = {'build_py': build_py}, + requires = requires, + ) +