-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
executable file
·71 lines (59 loc) · 1.78 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
65
66
67
68
69
70
71
#!/usr/bin/env python3
import os
import re
import setuptools
import sys
here = os.path.abspath(os.path.dirname(__file__))
# Python 3.4 doesn't have typing module. So I cannot give typehint here.
def get_meta():
with open(os.path.join(here, 'parsely/__init__.py')) as f:
source = f.read()
regex = r'^{}\s*=\s*[\'"]([^\'"]*)[\'"]'
return lambda name: re.search(regex.format(name), source, re.MULTILINE).group(1)
get_meta = get_meta()
with open(os.path.join(here, 'README.rst')) as f:
readme = f.read()
install_requires = [
'celery',
'falcon',
'jinja2',
'jinja2-highlight',
]
if sys.version_info < (3, 5):
install_requires.append('typing')
test_requires = [
'Pygments',
'docutils',
'flake8',
'mypy',
'pytest',
'pytest-cov',
]
setuptools.setup(
name='parsely',
version=get_meta('__version__'),
description="Parsely is a framework for enqueuing messages via HTTP request for Celery.",
long_description=readme,
classifiers=[
"Development Status :: 1 - Planning",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Software Development :: Libraries"
],
keywords=["celery", "queue"],
author=get_meta('__author__'),
author_email=get_meta('__email__'),
url="https://github.com/narusemotoki/parsely",
license=get_meta('__license__'),
packages=['parsely'],
install_requires=install_requires,
extras_require={
'test': test_requires,
},
include_package_data=True,
)