Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 39 lines (32 sloc) 0.994 kb
0f794a1 @defunkt add setup.py script
authored
1 #!/usr/bin/env python
2
4ac53c9 @defunkt `python setup.py publish`
authored
3 import os
4 import sys
5
a00b568 @lambacck Optionally support setuptools/distribute
lambacck authored
6 try:
7 from setuptools import setup
8 except ImportError:
9 from distutils.core import setup
0f794a1 @defunkt add setup.py script
authored
10
4ac53c9 @defunkt `python setup.py publish`
authored
11 def publish():
12 """Publish to Pypi"""
13 os.system("python setup.py sdist upload")
14
15 if sys.argv[-1] == "publish":
16 publish()
17 sys.exit()
18
b536ce0 @defunkt version tweaks
authored
19 setup(name='pystache',
729e2fe @defunkt v0.3.1
authored
20 version='0.3.1',
0f794a1 @defunkt add setup.py script
authored
21 description='Mustache for Python',
04560ac @dinoboff Convert HISTORY and README to reStructuredText
dinoboff authored
22 long_description=open('README.rst').read() + '\n\n' + open('HISTORY.rst').read(),
0f794a1 @defunkt add setup.py script
authored
23 author='Chris Wanstrath',
24 author_email='chris@ozmm.org',
25 url='http://github.com/defunkt/pystache',
26 packages=['pystache'],
feec8f0 @dinoboff Add classifiers
dinoboff authored
27 license='MIT',
4c22f13 ok fail, forgot to add files.
vrde authored
28 entry_points = {
29 'console_scripts': ['pystache=pystache.commands:main']},
feec8f0 @dinoboff Add classifiers
dinoboff authored
30 classifiers = (
31 "Development Status :: 4 - Beta",
32 "License :: OSI Approved :: MIT License",
33 "Programming Language :: Python",
34 "Programming Language :: Python :: 2.5",
35 "Programming Language :: Python :: 2.6",
36 )
0f794a1 @defunkt add setup.py script
authored
37 )
4ac53c9 @defunkt `python setup.py publish`
authored
38
Something went wrong with that request. Please try again.