-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathsetup.py
executable file
·60 lines (52 loc) · 2.09 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#!/usr/bin/env python
# Use 'distribute', a fork of 'setuptools'.
# This seems to be the recommended tool until 'distutils2' is completed.
# See: http://pypi.python.org/pypi/distribute
import distribute_setup
distribute_setup.use_setuptools()
from setuptools import setup
# Find the version from the package metadata.
import os
import re
package_version = re.search(
"__version__ = '([^']+)'",
open(os.path.join('pygameui', '__init__.py')).read()).group(1)
# Resources
# - package_data is what to install. MANIFEST.in is what to bundle.
# The distribute documentation says it can determine what data files to
# include without the need of MANIFEST.in but I had no luck with that.
# - We find the bundled resource files at runtime using the pkg_resources
# module from setuptools. Thus, setuptools is also a dependency.
# Dependencies
# - While Pygame is listed as a dependency, you should install it separately to
# avoid issues with libpng and others.
# See: http://www.pygame.org/install.html
setup(
name='pygameui',
version=package_version,
author='Brian Hammond',
author_email='brian@fictorial.com',
install_requires=['setuptools', 'pygame>=1.9.1'],
packages=['pygameui'],
package_data={'pygameui': ['resources/*/*']},
scripts=['bin/pygameui-kitchensink.py'],
description='GUI framework for Pygame',
keywords="UI GUI Pygame button scrollbar progress slider user interface",
license='MIT',
url='https://github.com/fictorial/pygameui',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: Microsoft :: Windows',
'Operating System :: MacOS :: MacOS X',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 2 :: Only',
'Topic :: Desktop Environment',
'Topic :: Games/Entertainment',
'Topic :: Multimedia',
'Topic :: Software Development',
'Topic :: Software Development :: Libraries :: pygame',
'Topic :: Software Development :: Widget Sets'
]
)