-
Notifications
You must be signed in to change notification settings - Fork 26
/
setup.py
76 lines (63 loc) · 2.02 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
71
72
73
74
75
76
# -*- coding: utf-8 -*-
import os
from setuptools import find_packages, setup
import strictdoc
package_data = {
"": ["requirements.txt", "requirements.development.txt"],
# It looks like the package data in setup.py does not support globbing
# (see pypa/setuptools#1806, https://github.com/pypa/setuptools/issues/1806)
# Doing the globbing manually for now.
# https://stackoverflow.com/questions/27664504/how-to-add-package-data-recursively-in-python-setup-py
# TODO: Can be better.
"strictdoc.export.html": [
"*",
"*/*",
"*/*/*",
"*/*/*/*",
"*/*/*/*/*",
"*/*/*/*/*/*",
],
}
data_files = [
"requirements.txt",
"requirements.development.txt",
]
with open("requirements.txt") as fp:
REQUIREMENTS = fp.read()
with open("requirements.development.txt") as fp:
REQUIREMENTS_DEVELOPMENT = {"development": fp.read()}
REQUIREMENTS_SETUP = [
"wheel",
]
extras_require = {
':python_version >= "3.6" and python_version < "3.7"': [
"dataclasses>=0.7,<0.8"
]
}
entry_points = {"console_scripts": ["strictdoc = strictdoc.cli.main:main"]}
setup_kwargs = {
"name": "strictdoc",
"version": strictdoc.__version__,
"description": "Software for writing technical requirements and specifications.",
"long_description": "Software for writing technical requirements and specifications.",
"author": "Stanislav Pankevich",
"author_email": "[email protected]",
"maintainer": "Stanislav Pankevich",
"maintainer_email": "[email protected]",
"url": "https://github.com/stanislaw/strictdoc",
"packages": find_packages(
where=".",
exclude=[
"tests*",
],
),
"package_data": package_data,
# 'package_dir': {"": "strictdoc"},
"data_files": data_files,
"install_requires": REQUIREMENTS,
"extras_require": REQUIREMENTS_DEVELOPMENT,
"setup_requires": REQUIREMENTS_SETUP,
"entry_points": entry_points,
"python_requires": ">=3.6.2,<4.0.0",
}
setup(**setup_kwargs)