setup.py 1.05 KB
Newer Older
Chris Wanstrath committed
1
#!/usr/bin/env python
2 3 4 5 6 7
"""
Run the following to publish to PyPI:

> python setup.py publish

"""
Chris Wanstrath committed
8

9 10 11
import os
import sys

12 13 14 15
try:
    from setuptools import setup
except ImportError:
    from distutils.core import setup
Chris Wanstrath committed
16

17 18 19 20 21 22 23 24
def publish():
    """Publish to Pypi"""
    os.system("python setup.py sdist upload")

if sys.argv[-1] == "publish":
    publish()
    sys.exit()

Chris Wanstrath committed
25
setup(name='pystache',
26
      version='0.4.0',
Chris Wanstrath committed
27
      description='Mustache for Python',
28
      long_description=open('README.rst').read() + '\n\n' + open('HISTORY.rst').read(),
Chris Wanstrath committed
29 30 31 32
      author='Chris Wanstrath',
      author_email='chris@ozmm.org',
      url='http://github.com/defunkt/pystache',
      packages=['pystache'],
Damien Lebrun committed
33
      license='MIT',
34
      classifiers = (
Damien Lebrun committed
35 36 37
        "Development Status :: 4 - Beta",
        "License :: OSI Approved :: MIT License",
        "Programming Language :: Python",
38
        "Programming Language :: Python :: 2.4",
Damien Lebrun committed
39 40
        "Programming Language :: Python :: 2.5",
        "Programming Language :: Python :: 2.6",
41
        "Programming Language :: Python :: 2.7",
Damien Lebrun committed
42
        )
Chris Wanstrath committed
43
     )
44