forked from nocarryr/python-dispatch
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
53 lines (49 loc) · 1.55 KB
/
Copy pathsetup.py
File metadata and controls
53 lines (49 loc) · 1.55 KB
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
import sys
from setuptools import setup, find_packages
def convert_readme():
from m2r import parse_from_file
rst = parse_from_file('README.md')
with open('README.rst', 'w') as f:
f.write(rst)
return rst
def read_rst():
try:
with open('README.rst', 'r') as f:
rst = f.read()
except IOError:
rst = None
return rst
def get_long_description():
if {'sdist', 'bdist_wheel'} & set(sys.argv):
long_description = convert_readme()
else:
long_description = read_rst()
return long_description
setup(
name = "python-dispatch",
version = "v0.1.0",
author = "Matthew Reid",
author_email = "matt@nomadic-recording.com",
description = "Lightweight Event Handling",
url='https://github.com/nocarryr/python-dispatch',
license='MIT',
packages=find_packages(exclude=['tests*']),
include_package_data=True,
setup_requires=['m2r'],
long_description=get_long_description(),
keywords='event properties dispatch',
platforms=['any'],
classifiers = [
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
],
)