-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathsetup.py
46 lines (40 loc) · 1.27 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
#!/usr/bin/env python
import sys
from collections import defaultdict
from setuptools import setup, find_packages
if sys.version_info.major < 3 or (
sys.version_info.major == 3 and sys.version_info.minor < 6
):
sys.exit("Python 3.6 or newer is required")
VERSION = None
with open("elsie/version.py") as f:
exec(f.read())
if VERSION is None:
raise Exception("version.py executed but VERSION was not set")
extras = defaultdict(list)
dependencies = []
with open("requirements.txt") as f:
for line in f:
parts = [x.strip() for x in line.rsplit("#", 1)]
deps = dependencies if len(parts) == 1 else extras[parts[1]]
deps.append(parts[0])
setup(
name="elsie",
version=VERSION,
description="Framework for making slides",
long_description="""
Elsie is a Framework for making slides in Python,
Check out its documentation at https://spirali.github.io/elsie.
""",
author="Stanislav Böhm",
author_email="spirali@kreatrix.org",
url="https://github.com/spirali/elsie",
packages=find_packages(),
install_requires=dependencies,
extras_require=extras,
classifiers=(
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
),
)