-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.py
95 lines (87 loc) · 3.07 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# Standard Library
import sys
from codecs import open
from os import path
from setuptools import find_packages
from setuptools import setup
assert sys.version_info >= (3, 5, 2), "Websauna needs Python 3.5.2 or newer, you have {version}".format(
version=sys.version_info)
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
README = f.read()
with open(path.join(here, 'CHANGES.rst'), encoding='utf-8') as f:
CHANGES = f.read()
# trying to run python setup.py install or python setup.py develop
if len(sys.argv) >= 2:
if sys.argv[0] == "setup.py" and sys.argv[1] in ("install", "develop"):
# Otherwise so much stuff would be broken later...
raise RuntimeError(
"It is not possible to install this package with setup.py. Use pip to install this package as instructed in Websauna tutorial.")
setup(
name='websauna.blog',
namespace_packages=['websauna'],
version='1.0a3.dev0',
description='Blog add on for Websauna',
long_description=README + '\n\n' + CHANGES,
classifiers=[
'Development Status :: 3 - Alpha',
'Framework :: Pyramid',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: Implementation :: CPython',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Internet :: WWW/HTTP :: WSGI :: Application',
'Topic :: Internet :: WWW/HTTP :: WSGI',
],
url='https://websauna.org',
author='Mikko Ohtamaa',
author_email='[email protected]',
license='MIT',
keywords='web websauna pyramid',
packages=find_packages(),
include_package_data=True,
zip_safe=False,
test_suite='websauna.blog',
install_requires=[
'websauna',
'Markdown',
'rfeed'
],
extras_require={
# Dependencies for running test suite
'test': [
'codecov',
'flake8',
'pytest>=3.0,<4', # pytest limited to version 3 because of the issue https://github.com/pytest-dev/pytest-splinter/issues/112
'pytest-runner',
'coverage',
'flaky',
'isort',
'pytest-cov',
'pytest-runner',
'pytest-splinter',
'pytest-timeout',
'webtest',
'factory_boy',
],
# Dependencies to make releases
'dev': [
'pyroma==2.2', # This is needed until version 2.4 of Pyroma is released
'sphinx>=1.6.1',
'sphinx-autodoc-typehints',
'sphinx_rtd_theme',
'sphinxcontrib-zopeext',
'zest.releaser[recommended]',
],
},
# Define where this application starts as referred by WSGI web servers
entry_points={
'paste.app_factory': [
'main = websauna.blog.demo:main'
],
}
)