Mercurial > py-sdl2
annotate setup.py @ 162:6bb12ec31394 default tip
Add missing dot in sdl2ext in tutorial
Since sdl2ext is now imported as sdl2.ext, the dot is required.
| author | Radomir Dopieralski <sheep-devel@sheep.art.pl> |
|---|---|
| date | Fri, 07 Mar 2014 08:35:50 +0100 |
| parents | 2418fd061957 |
| children |
| rev | line source |
|---|---|
| 0 | 1 #!/usr/bin/env python |
|
8
0d306a6af884
- removed sdl2.ext.sysfont - it is not really needed
Marcus von Appen <marcus@sysfault.org>
parents:
6
diff
changeset
|
2 import os |
| 0 | 3 import sys |
| 4 from distutils.core import setup | |
| 5 | |
| 135 | 6 VERSION = "0.8.0" |
| 0 | 7 |
| 8 if __name__ == "__main__": | |
| 9 | |
| 10 if "--format=msi" in sys.argv or "bdist_msi" in sys.argv: | |
| 11 # hack the version name to a format msi doesn't have trouble with | |
|
14
afc874cc5aa2
- fixed typo in setup script for msi dists
Marcus von Appen <marcus@sysfault.org>
parents:
8
diff
changeset
|
12 VERSION = VERSION.replace("-alpha", "a") |
| 0 | 13 VERSION = VERSION.replace("-beta", "b") |
| 14 VERSION = VERSION.replace("-rc", "r") | |
| 15 | |
|
8
0d306a6af884
- removed sdl2.ext.sysfont - it is not really needed
Marcus von Appen <marcus@sysfault.org>
parents:
6
diff
changeset
|
16 fname = os.path.join(os.path.dirname(os.path.abspath(__file__)), "README.txt") |
|
0d306a6af884
- removed sdl2.ext.sysfont - it is not really needed
Marcus von Appen <marcus@sysfault.org>
parents:
6
diff
changeset
|
17 readme = open(fname, "r") |
|
0d306a6af884
- removed sdl2.ext.sysfont - it is not really needed
Marcus von Appen <marcus@sysfault.org>
parents:
6
diff
changeset
|
18 long_desc = readme.read() |
|
0d306a6af884
- removed sdl2.ext.sysfont - it is not really needed
Marcus von Appen <marcus@sysfault.org>
parents:
6
diff
changeset
|
19 readme.close() |
|
0d306a6af884
- removed sdl2.ext.sysfont - it is not really needed
Marcus von Appen <marcus@sysfault.org>
parents:
6
diff
changeset
|
20 |
| 0 | 21 setupdata = { |
| 4 | 22 "name": "PySDL2", |
| 0 | 23 "version": VERSION, |
| 24 "description": "Python SDL2 bindings", | |
|
8
0d306a6af884
- removed sdl2.ext.sysfont - it is not really needed
Marcus von Appen <marcus@sysfault.org>
parents:
6
diff
changeset
|
25 "long_description": long_desc, |
| 0 | 26 "author": "Marcus von Appen", |
| 27 "author_email": "marcus@sysfault.org", | |
| 28 "license": "Public Domain / zlib", | |
|
6
49a2c9a8bc0e
- fixed sdl2.mouse.SDL_WarpMouseInWindow() wrapper
Marcus von Appen <marcus@sysfault.org>
parents:
4
diff
changeset
|
29 "url": "http://bitbucket.org/marcusva/py-sdl2", |
|
59
0c832b6e94f2
- issue #5: include the download URL in setup.py to make pip and friends happy
Marcus von Appen <marcus@sysfault.org>
parents:
45
diff
changeset
|
30 "download_url": "http://bitbucket.org/marcusva/py-sdl2/downloads", |
|
6
49a2c9a8bc0e
- fixed sdl2.mouse.SDL_WarpMouseInWindow() wrapper
Marcus von Appen <marcus@sysfault.org>
parents:
4
diff
changeset
|
31 "package_dir": {"sdl2.examples": "examples"}, |
|
84
b90237e46d2a
- install the resources for the sdl2.examples package
Marcus von Appen <marcus@sysfault.org>
parents:
80
diff
changeset
|
32 "package_data": {"sdl2.test": ["resources/*.*"], |
|
b90237e46d2a
- install the resources for the sdl2.examples package
Marcus von Appen <marcus@sysfault.org>
parents:
80
diff
changeset
|
33 "sdl2.examples": ["resources/*.*"]}, |
| 4 | 34 "packages": ["sdl2", |
|
6
49a2c9a8bc0e
- fixed sdl2.mouse.SDL_WarpMouseInWindow() wrapper
Marcus von Appen <marcus@sysfault.org>
parents:
4
diff
changeset
|
35 "sdl2.ext", |
| 4 | 36 "sdl2.test", |
| 37 "sdl2.test.util", | |
|
6
49a2c9a8bc0e
- fixed sdl2.mouse.SDL_WarpMouseInWindow() wrapper
Marcus von Appen <marcus@sysfault.org>
parents:
4
diff
changeset
|
38 "sdl2.examples" |
| 4 | 39 ], |
| 0 | 40 "classifiers": [ |
| 41 "Development Status :: 4 - Beta", | |
| 42 "Intended Audience :: Developers", | |
| 43 "License :: Public Domain", | |
| 44 "License :: OSI Approved :: zlib/libpng License", | |
| 45 "Operating System :: OS Independent", | |
| 46 "Programming Language :: Python", | |
| 47 "Programming Language :: Python :: 2.7", | |
| 48 "Programming Language :: Python :: 3", | |
| 49 "Programming Language :: Python :: 3.2", | |
| 50 "Programming Language :: Python :: 3.3", | |
| 51 "Programming Language :: Python :: Implementation :: CPython", | |
| 52 "Programming Language :: Python :: Implementation :: IronPython", | |
| 53 "Programming Language :: Python :: Implementation :: PyPy", | |
| 54 "Topic :: Software Development :: Libraries :: Python Modules", | |
| 55 ], | |
| 56 } | |
| 57 setup(**setupdata) |
