Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 57 lines (48 sloc) 1.578 kb
ffbea90 write setup.py script
Victor Stinner authored
1 #!/usr/bin/env python
b568cc3 create ChangeLog; document release procedure
Victor Stinner authored
2
3 # Todo list to prepare a release:
f36e819 @haypo run_tests.sh runs tests on Python 2.5, 2.6 and 2.7
authored
4 # - run ./run_tests.sh
d7ce17b update the release procedure and the TODO list
Victor Stinner authored
5 # - check TODO if there is no more critical known bug
6 # - do an audit of new features (see the ChangeLog)
b568cc3 create ChangeLog; document release procedure
Victor Stinner authored
7 # - set version in sandbox/version.py
8 # - set release date in the ChangeLog
c2e0f7e prepare 1.0.1 release
Victor Stinner authored
9 # - git commit -a
b568cc3 create ChangeLog; document release procedure
Victor Stinner authored
10 # - git tag -a pysandbox-n
b95a46c setup.py: fix release procedure, add --tags option to git push
Victor Stinner authored
11 # - git push --tags
b568cc3 create ChangeLog; document release procedure
Victor Stinner authored
12 # - ./setup.py register sdist upload
13 # - update the website
14 #
15 # After the release:
16 # - set version to n+1
17 # - add a new empty section in the changelog for version n+1
18 # - git commit
19
9c0a58d Fix Python 2.5 compatibility
Victor Stinner authored
20 from __future__ import with_statement
ffbea90 write setup.py script
Victor Stinner authored
21 from distutils.core import setup, Extension
22 import imp
23
24 version = imp.load_source('version', 'sandbox/version.py')
25
26 CLASSIFIERS = [
04f72a8 bump version to 1.0
Victor Stinner authored
27 'Development Status :: 5 - Production/Stable',
ffbea90 write setup.py script
Victor Stinner authored
28 'Intended Audience :: Developers',
29 'License :: OSI Approved :: BSD License',
30 'Operating System :: OS Independent',
31 'Natural Language :: English',
32 'Programming Language :: C',
33 'Programming Language :: Python',
04f72a8 bump version to 1.0
Victor Stinner authored
34 'Topic :: Security',
ffbea90 write setup.py script
Victor Stinner authored
35 'Topic :: Software Development :: Libraries :: Python Modules',
36 ]
37
2c1cefa add description to setup.py
Victor Stinner authored
38 with open('README') as f:
39 long_description = f.read().strip()
40
ffbea90 write setup.py script
Victor Stinner authored
41 options = {
42 'name': version.PACKAGE,
43 'version': version.VERSION,
44 'license': version.LICENSE,
2c1cefa add description to setup.py
Victor Stinner authored
45 'description': 'Python sandbox',
46 'long_description': long_description,
ffbea90 write setup.py script
Victor Stinner authored
47 'url': version.URL,
22cc073 create MANIFEST.in
Victor Stinner authored
48 'author': 'Victor Stinner',
47985c6 @haypo update my email address
authored
49 'author_email': 'victor.stinner@gmail.com',
ffbea90 write setup.py script
Victor Stinner authored
50 'ext_modules': [Extension('_sandbox', ['_sandbox/module.c'])],
51 'classifiers': CLASSIFIERS,
52 'packages': ('sandbox',),
53 }
54
55 setup(**options)
56
Something went wrong with that request. Please try again.