From 4c22f137697c0a3437a6d867f44e958d6f6969f2 Mon Sep 17 00:00:00 2001 From: vrde Date: Thu, 4 Aug 2011 16:39:43 +0200 Subject: ok fail, forgot to add files. --- setup.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'setup.py') diff --git a/setup.py b/setup.py index ad9981f..62b887b 100644 --- a/setup.py +++ b/setup.py @@ -25,6 +25,8 @@ setup(name='pystache', url='http://github.com/defunkt/pystache', packages=['pystache'], license='MIT', + entry_points = { + 'console_scripts': ['pystache=pystache.commands:main']}, classifiers = ( "Development Status :: 4 - Beta", "License :: OSI Approved :: MIT License", -- cgit v1.2.1 From 43d504b5dbdb043cdfe9a87ffb4b3b239c130ab8 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Tue, 23 Aug 2011 21:25:28 -0400 Subject: setup.py cleanup --- setup.py | 34 +++++++++++++++++++--------------- 1 file changed, 19 insertions(+), 15 deletions(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index ad9981f..2556527 100644 --- a/setup.py +++ b/setup.py @@ -1,4 +1,5 @@ #!/usr/bin/env python +# -*- coding: utf-8 -*- import os import sys @@ -8,29 +9,32 @@ try: except ImportError: from distutils.core import setup + def publish(): """Publish to Pypi""" - os.system("python setup.py sdist upload") + os.system('python setup.py sdist upload') -if sys.argv[-1] == "publish": +if 'publish' in sys.argv: publish() sys.exit() -setup(name='pystache', - version='0.3.1', - description='Mustache for Python', - long_description=open('README.rst').read() + '\n\n' + open('HISTORY.rst').read(), - author='Chris Wanstrath', - author_email='chris@ozmm.org', - url='http://github.com/defunkt/pystache', - packages=['pystache'], - license='MIT', - classifiers = ( + +setup( + name='pystache', + version='0.3.1', + description='Mustache for Python', + long_description=open('README.rst').read() + '\n\n' + open('HISTORY.rst').read(), + author='Chris Wanstrath', + author_email='chris@ozmm.org', + url='http://github.com/defunkt/pystache', + packages=['pystache'], + license='MIT', + classifiers = ( "Development Status :: 4 - Beta", "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Programming Language :: Python :: 2.5", - "Programming Language :: Python :: 2.6", - ) - ) + "Programming Language :: Python :: 2.6" + ) +) -- cgit v1.2.1 From 200ab9c3731a6f9baf8709c107fae0a5984d6b28 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Tue, 23 Aug 2011 21:26:48 -0400 Subject: pypi => the cheeseshop --- setup.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index 2556527..3e2c0c0 100644 --- a/setup.py +++ b/setup.py @@ -11,9 +11,11 @@ except ImportError: def publish(): - """Publish to Pypi""" + """Publishes module to The Cheeseshop.""" + os.system('python setup.py sdist upload') + if 'publish' in sys.argv: publish() sys.exit() -- cgit v1.2.1 From 6886173ce0694478b31b4e7acdb0bf0368167db2 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Tue, 23 Aug 2011 21:27:28 -0400 Subject: consistent string types --- setup.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index 3e2c0c0..2dbbff7 100644 --- a/setup.py +++ b/setup.py @@ -32,11 +32,11 @@ setup( packages=['pystache'], license='MIT', classifiers = ( - "Development Status :: 4 - Beta", - "License :: OSI Approved :: MIT License", - "Programming Language :: Python", - "Programming Language :: Python :: 2.5", - "Programming Language :: Python :: 2.6" + 'Development Status :: 4 - Beta', + 'License :: OSI Approved :: MIT License', + 'Programming Language :: Python', + 'Programming Language :: Python :: 2.5', + 'Programming Language :: Python :: 2.6' ) ) -- cgit v1.2.1 From 7b44843605ed0cf85545d6a39d5e79deb8396e60 Mon Sep 17 00:00:00 2001 From: Chris Jerdonek Date: Tue, 13 Dec 2011 16:54:06 -0800 Subject: Made spacing more consistent in setup.py. --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index 6873732..20abedb 100644 --- a/setup.py +++ b/setup.py @@ -33,7 +33,8 @@ setup(name='pystache', packages=['pystache'], license='MIT', entry_points = { - 'console_scripts': ['pystache=pystache.commands:main']}, + 'console_scripts': ['pystache=pystache.commands:main'], + }, classifiers = ( 'Development Status :: 4 - Beta', 'License :: OSI Approved :: MIT License', -- cgit v1.2.1 From f8d1ac65452339f628345a9663794772348d6193 Mon Sep 17 00:00:00 2001 From: Chris Jerdonek Date: Tue, 13 Dec 2011 17:01:05 -0800 Subject: Put the code to create the package's long_description into a function. --- setup.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index 20abedb..efdb59f 100644 --- a/setup.py +++ b/setup.py @@ -19,14 +19,26 @@ def publish(): os.system('python setup.py sdist upload') +def make_long_description(): + """ + Return the long description for the package. + + """ + long_description = open('README.rst').read() + '\n\n' + open('HISTORY.rst').read() + + return long_description + + if sys.argv[-1] == 'publish': publish() sys.exit() +long_description = make_long_description() + setup(name='pystache', version='0.3.1', description='Mustache for Python', - long_description=open('README.rst').read() + '\n\n' + open('HISTORY.rst').read(), + long_description=long_description, author='Chris Wanstrath', author_email='chris@ozmm.org', url='http://github.com/defunkt/pystache', -- cgit v1.2.1 From 0b2415f24153dbf62d03f26d5e2cd9d958626fb3 Mon Sep 17 00:00:00 2001 From: Chris Jerdonek Date: Thu, 8 Mar 2012 04:11:57 -0800 Subject: Added documentation on how to push to PyPI. --- setup.py | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index 40c69bb..453faa6 100644 --- a/setup.py +++ b/setup.py @@ -2,9 +2,31 @@ # coding: utf-8 """ -Run the following to publish to PyPI: +To push a new version of pystache to PyPI-- -> python setup.py publish + http://pypi.python.org/pypi/pystache + +you first need to be added as a "Package Index Owner" of pystache. + +Then run the following (after preparing the release, bumping the version +number, etc): + + > python setup.py publish + +If you get an error like the following-- + + Upload failed (401): You must be identified to edit package information + +then add a file called .pyirc to your home directory with the following +contents: + + [server-login] + username: + password: + +as described here, for example: + + http://docs.python.org/release/2.5.2/dist/pypirc.html """ -- cgit v1.2.1 From afc0e7859f75d34a0e28329111056966afb904bd Mon Sep 17 00:00:00 2001 From: Chris Jerdonek Date: Fri, 9 Mar 2012 05:42:43 -0800 Subject: Tweaks to the setup.py docstring. --- setup.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index 453faa6..da8f8d7 100644 --- a/setup.py +++ b/setup.py @@ -2,14 +2,19 @@ # coding: utf-8 """ -To push a new version of pystache to PyPI-- +This script supports installing and distributing pystache. + +Below are instructions to pystache maintainers on how to push a new +version of pystache to PyPI-- http://pypi.python.org/pypi/pystache -you first need to be added as a "Package Index Owner" of pystache. +Create a PyPI user account. The user account will need permissions to push +to PyPI. A current "Package Index Owner" of pystache can grant you those +permissions. -Then run the following (after preparing the release, bumping the version -number, etc): +When you have permissions, run the following (after preparing the release, +bumping the version number in setup.py, etc): > python setup.py publish -- cgit v1.2.1 From 51d636fc776b3cbeee0b01b1256f8828e34b0c26 Mon Sep 17 00:00:00 2001 From: Chris Jerdonek Date: Sun, 1 Apr 2012 21:23:53 -0700 Subject: Bump version to release candidate v0.5.0-rc. --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index e96230b..38c65f1 100644 --- a/setup.py +++ b/setup.py @@ -70,7 +70,7 @@ if sys.argv[-1] == 'publish': long_description = make_long_description() setup(name='pystache', - version='0.4.1', + version='0.5.0-rc', description='Mustache for Python', long_description=long_description, author='Chris Wanstrath', -- cgit v1.2.1 From 4d85efd6b18648a8d749b0cfd5e370a35b8e37d7 Mon Sep 17 00:00:00 2001 From: Chris Jerdonek Date: Sun, 1 Apr 2012 21:26:52 -0700 Subject: Added maintainer field to setup.py. --- setup.py | 1 + 1 file changed, 1 insertion(+) (limited to 'setup.py') diff --git a/setup.py b/setup.py index 38c65f1..65d8d6f 100644 --- a/setup.py +++ b/setup.py @@ -75,6 +75,7 @@ setup(name='pystache', long_description=long_description, author='Chris Wanstrath', author_email='chris@ozmm.org', + maintainer='Chris Jerdonek', url='http://github.com/defunkt/pystache', packages=['pystache'], license='MIT', -- cgit v1.2.1