/
setup.py
63 lines (51 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
62
63
# coding: utf-8
import os
import re
from setuptools import setup, Command, find_packages
here = os.path.abspath(os.path.dirname(__file__))
version = "0.0.0"
with open(os.path.join(here, "CHANGES.txt")) as changes:
for line in changes:
version = line.strip()
if re.search('^[0-9]+\.[0-9]+(\.[0-9]+)?$', version):
break
class VersionCommand(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
# noinspection PyMethodMayBeStatic
def run(self):
print(version)
setup(
name='celerytestworker',
version=version,
description='Control (start/stop) a Celery standalone worker for running test purpose',
author="Osvaldo Santana Neto", author_email="celerytestworker@osantana.me",
license="MIT",
packages=find_packages(exclude=['tests']),
platforms='any',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Topic :: Software Development :: Libraries',
'Topic :: Software Development :: Testing',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
],
install_requires=[
"celery",
],
keywords='testing test server',
url='http://github.com/osantana/celerytestworker',
download_url='https://github.com/osantana/celerytestworker/tarball/{}'.format(version),
cmdclass={'version': VersionCommand},
test_suite="tests",
)