-
-
Notifications
You must be signed in to change notification settings - Fork 25
/
setup.py
57 lines (49 loc) · 1.66 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
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# vim: ai ts=4 sts=4 et sw=4 nu
import sys
import pathlib
from setuptools import setup, find_namespace_packages
root_dir = pathlib.Path(__file__).parent
# download assets dependencies before packing
sys.path = [str(root_dir.joinpath("src").resolve())] + sys.path
from sotoki.dependencies import main as download_deps
download_deps()
def read(*names, **kwargs):
with open(root_dir.joinpath(*names), "r") as fh:
return fh.read()
setup(
name="sotoki",
version=read("src", "sotoki", "VERSION").strip(),
description="Turn StackExchange dumps into ZIM files for offline usage",
long_description=read("README.md"),
long_description_content_type="text/markdown",
author="Kiwix",
author_email="[email protected]",
url="https://github.com/openzim/sotoki",
keywords="kiwix zim offline stackechange stackoverflow",
license="GPLv3+",
packages=find_namespace_packages(where="src"),
package_dir={"": "src"},
install_requires=[
line.strip()
for line in read("requirements.txt").splitlines()
if not line.strip().startswith("#")
],
zip_safe=False,
include_package_data=True,
entry_points={
"console_scripts": [
"sotoki=sotoki.__main__:main",
"sotoki-deps-download=sotoki.dependencies:main",
]
},
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Programming Language :: Python",
"Programming Language :: Python :: 3.9",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
],
python_requires=">=3.6",
)