forked from guyzmo/event-source-library
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
61 lines (53 loc) · 1.75 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
# setuptools import
from setuptools import setup, find_packages
import os
def read(*names):
values = dict()
for name in names:
for ext in ['.txt','.md','.rst','']:
filename = name+ext
if os.path.isfile(filename):
value = open(filename).read()
break
else:
value = ''
values[name] = value
return values
long_description="""
%(README)s
See http://packages.python.org/eventsource/ for the full documentation
See https://github.com/guyzmo/event-source-library for latest sources and for patches
News
====
%(CHANGES)s
""" % read('README', 'CHANGES')
setup(name="eventsource",
version="1.1.0",
description="Event Source Library",
long_description=long_description,
author="Bernard Pratz",
author_email="[email protected]",
install_requires = [
'toro',
'tornado',
'pycurl'
],
packages = find_packages(exclude=['examples', 'tests']),
url='http://packages.python.org/eventsource/',
include_package_data=True,
zip_safe=False,
license="GPLv3",
classifiers = ["Topic :: Internet :: WWW/HTTP :: Dynamic Content",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Topic :: Utilities"],
entry_points="""
# -*- Entry points: -*-
[console_scripts]
eventsource-server = eventsource.listener:start
eventsource-client = eventsource.client:start
eventsource-request = eventsource.request:start
""",
)