-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
setup.py
49 lines (41 loc) · 1.42 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
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# vim: ai ts=4 sts=4 et sw=4 nu
import pathlib
import subprocess
from setuptools import setup
root_dir = pathlib.Path(__file__).parent
def read(*names, **kwargs):
with open(root_dir.joinpath(*names), "r") as fh:
return fh.read()
print("Downloading JS dependencies...")
subprocess.run([str(root_dir.joinpath("get_js_deps.sh").resolve())], check=True)
setup(
name="openedx2zim",
version=read("openedx2zim", "VERSION").strip(),
description="Turn MOOCs on openedx instances into ZIMs",
long_description=read("README.md"),
long_description_content_type="text/markdown",
author="dattaz",
author_email="taz@dattaz.fr",
url="https://github.com/openzim/openedx",
keywords="kiwix zim openedx offline",
license="GPLv3+",
packages=["openedx2zim"],
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": ["openedx2zim=openedx2zim.__main__:main"]},
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Programming Language :: Python",
"Programming Language :: Python :: 3.8",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
],
python_requires=">=3.6",
)