-
Notifications
You must be signed in to change notification settings - Fork 20
/
setup.py
81 lines (69 loc) · 2.59 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
72
73
74
75
76
77
78
79
80
81
# -*- coding: utf-8 -*-
"""Clastic is a functional Python web framework that streamlines
explicit development practices while eliminating global state.
"""
import os
import imp
import sys
from setuptools import setup
__author__ = 'Mahmoud Hashemi'
__contact__ = 'mahmoud@hatnote.com'
__url__ = 'https://github.com/mahmoud/clastic'
__license__ = 'BSD'
CUR_PATH = os.path.abspath(os.path.dirname(__file__))
_version_mod_path = os.path.join(CUR_PATH, 'clastic', '_version.py')
_version_mod = imp.load_source('_version', _version_mod_path)
__version__ = _version_mod.__version__
desc = ('A functional Python web framework that streamlines'
' explicit development practices while eliminating'
' global state.')
if sys.version_info < (2,6):
raise NotImplementedError("Sorry, clastic only supports Python >2.6")
setup(name='clastic',
version=__version__,
description=desc,
long_description=__doc__,
author=__author__,
author_email=__contact__,
url=__url__,
packages=['clastic',
'clastic.render',
'clastic.middleware',
'clastic.contrib',
'clastic.tests'],
include_package_data=True,
zip_safe=False,
install_requires=['Werkzeug>=1.0.0,<2.0', 'boltons>=18.0.0', 'ashes', 'glom', 'secure-cookie'],
license=__license__,
platforms='any',
tests_require=['Mako==1.0.7', 'pytest==4.3.0', 'psutil==5.6.6'],
classifiers=[
'Intended Audience :: Developers',
'Development Status :: 5 - Production/Stable',
'Topic :: Internet :: WWW/HTTP :: HTTP Servers',
'Topic :: Internet :: WWW/HTTP :: WSGI',
'Topic :: Internet :: WWW/HTTP :: WSGI :: Application',
'Topic :: Internet :: WWW/HTTP :: WSGI :: Middleware',
'Topic :: Internet :: WWW/HTTP :: WSGI :: Server',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content :: CGI Tools/Libraries',
'Topic :: Software Development :: Libraries :: Application Frameworks',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7', ]
)
"""
A brief checklist for release:
* tox
* git commit (if applicable)
* Bump setup.py version off of -dev
* git commit -a -m "bump version for x.y.z release"
* python setup.py sdist bdist_wheel upload
* git tag -a x.y.z -m "brief summary"
* write CHANGELOG
* git commit
* bump setup.py version onto n+1 dev
* git commit
* git push
"""