-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
126 lines (110 loc) · 2.73 KB
/
Copy pathsetup.py
File metadata and controls
126 lines (110 loc) · 2.73 KB
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
import ast
import codecs
import re
from os import path
from setuptools import find_packages, setup
here = path.abspath(path.dirname(__file__))
def read(*parts):
with codecs.open(path.join(here, *parts), 'r') as fp:
return fp.read()
_version_re = re.compile(r"__version__\s+=\s+(.*)")
def find_version(*where):
return str(ast.literal_eval(_version_re.search(read(*where)).group(1)))
REQ_BASE = [
'Flask',
'Jinja2',
'MarkupSafe',
'itsdangerous',
'Flask-Babel',
'Flask-FlatPages',
'Flask-Assets',
'Flask-Caching>=1.10',
'Peewee',
'text-unidecode',
'pyuca',
'pytz',
'python-dotenv',
'PyYAML',
'requests',
'markdown',
'python-dateutil',
'pygments',
'jsx-lexer',
'defusedxml',
]
REQ_TEST = [
'fakeredis',
'pytest',
'pytest-mock',
'pytest-cov',
'pytest-factoryboy',
'pytest-flask',
'responses',
]
REQ_DEV = REQ_TEST + [
'ipython',
'ipdb',
'pip',
'setuptools',
'wheel',
'flake8',
'flake8-builtins',
'flake8-bugbear',
'flake8-comprehensions',
'flake8-pytest-style',
'pep8-naming',
'dlint',
'rstcheck',
'isort',
'flask-shell-ipython',
'watchdog',
]
REQ_PROD = [
'gunicorn',
'redis[hiredis]',
]
long_description = read('README.md')
setup(
name='devlog',
version=find_version('src', 'devlog', '_version.py'),
author='Jarek Zgoda',
author_email='jarek.zgoda@gmail.com',
long_description=long_description,
long_description_content_type='text/markdown',
license='MIT',
packages=find_packages('src'),
package_dir={'': 'src'},
include_package_data=True,
zip_safe=False,
url='http://github.com/zgoda/devlog',
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Framework :: Flask',
'License :: OSI Approved :: MIT License',
'Operating System :: POSIX',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content :: News/Diary',
],
install_requires=REQ_BASE,
extras_require={
'prod': REQ_PROD,
'test': REQ_TEST,
'dev': REQ_DEV,
},
entry_points={
'console_scripts': [
'devlog=devlog.cli:main',
'postimport=devlog.tasks:import_posts',
'sitemapgen=devlog.tasks:sitemap_generator',
'linkimport=devlog.tasks:import_links',
],
'markdown.extensions': [
'centerblock=devlog.utils.text:CenterBlockExtension',
]
},
python_requires='~=3.8',
)