-
Notifications
You must be signed in to change notification settings - Fork 29
/
setup.py
66 lines (52 loc) · 2.03 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
61
62
63
64
from setuptools import setup, find_packages
def getPackagesToDistribute():
packages = find_packages('src')
import sys
setupCmd = sys.argv[1]
if setupCmd in ['sdist', 'bdist', 'bdist_egg', 'bdist_wininst']:
print( '*'*40 )
print( 'Packaging:', packages)
print( '*'*40)
return packages
def getPubsubVersion():
import sys
sys.path.insert(0, 'src')
import pubsub
return pubsub.__version__
def getInstallRequires():
import sys
if sys.version_info < (3,5):
return ['typing']
return []
setup(
name = 'Pypubsub',
version = getPubsubVersion(),
description = 'Python Publish-Subscribe Package',
keywords = "publish subscribe observer pattern signal signals event events message messages messaging dispatch dispatching",
author = 'Oliver Schoenborn (aka "schollii")',
author_email = 'oliver.schoenborn@gmail.com',
url = 'https://github.com/schollii/pypubsub',
license = "BSD License",
zip_safe = False,
packages = getPackagesToDistribute(),
package_dir = {'': 'src'},
package_data = {'pubsub': ['LICENSE_BSD_Simple.txt', 'RELEASE_NOTES.txt']},
install_requires=getInstallRequires(),
classifiers = [
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Topic :: Software Development :: Libraries :: Application Frameworks',
'Topic :: Software Development :: Libraries :: Python Modules',
],
python_requires = ">=3.3, <4",
# use the module docs as the long description:
long_description = open('README.rst', 'r').read()
)