-
-
Notifications
You must be signed in to change notification settings - Fork 28
/
setup.py
70 lines (62 loc) · 2.32 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
"""
blask
Copyright (C) 2018 https://github.com/zerasul/blask
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
from setuptools import setup, find_packages
from pathlib import Path
base_dir = Path(__file__).resolve().parents[0]
info_file = base_dir / "README.md"
with info_file.open() as f:
long_desc = f.read()
# adding nonpython files to package
mdownfile = base_dir / "blask" / "markdown_template.md"
indextempfile = base_dir / "blask" / "index_template.html"
Dockerfile_template = base_dir / "blask" / "Dockerfile_template"
default404 = base_dir / "blask" / "default_404.md"
default_env = base_dir / "blask" / "default_env.env"
setup(
name="blask",
version="0.2.3",
packages=find_packages(exclude=["tests"]),
url="https://getblask.com",
license="GPL 3.0",
author="zerasul",
author_email="[email protected]",
description="A simple Blog engine using Flask and Markdown.",
classifiers=[
"Development Status :: 4 - Beta",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content :: News/Diary",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
],
package_data={
"blask": [
str(mdownfile),
str(Dockerfile_template),
str(indextempfile),
str(default404),
str(default_env),
]
},
entry_points="""
[console_scripts]
blaskcli=blask.blaskcli:blaskcli
""",
long_description=long_desc,
long_description_content_type="text/markdown",
python_requires=">=3.6",
install_requires=["flask", "markdown", "Pygments", "click"],
test_requires=["pytest", "pytest-cov", "pylint", "pytest-mock"],
)