-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
setup.py
63 lines (51 loc) · 1.7 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
import os
import re
from setuptools import setup, Command
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(r'^[0-9]+\.[0-9]+(\.[0-9]+)?$', version):
break
def readme():
with open("README.rst") as r:
return r.read()
class VersionCommand(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
print(version)
setup(
name='prettyconf',
version=version,
description='Separation of settings from code.',
long_description=readme(),
author="Osvaldo Santana Neto", author_email="prettyconf@osantana.me",
license="MIT",
packages=['prettyconf'],
extras_require={'aws': ['boto3']},
platforms='any',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Framework :: Django',
'Framework :: Flask',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: Software Development :: Libraries',
],
url='http://github.com/osantana/prettyconf',
download_url='https://github.com/osantana/prettyconf/tarball/{}'.format(version),
cmdclass={'version': VersionCommand},
test_suite="tests",
)