-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
51 lines (47 loc) · 1.25 KB
/
setup.py
File metadata and controls
51 lines (47 loc) · 1.25 KB
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
import re
from setuptools import find_packages, setup
try:
with open("VERSION") as fp:
VERSION = fp.read().strip()
except FileNotFoundError:
VERSION = "dev"
with open("README.rst") as fp:
long_description = fp.read()
substitutions = [
(r":(attr|class|meth|ref):", r":code:"),
(r".. doctest::.*", r".. code-block:: python"),
(r".. automodule::", r".. code-block::\n\n"),
]
for pattern, repl in substitutions:
long_description = re.sub(pattern, repl, long_description)
setup(
name="doit_interface",
description="A functional interface for creating doit tasks",
packages=find_packages(),
version=VERSION,
install_requires=[
"colorama",
"doit",
],
url="https://github.com/tillahoffmann/doit_interface",
long_description=long_description,
long_description_content_type="text/x-rst",
extras_require={
"tests": [
"flake8",
"pytest",
"pytest-cov",
"twine",
],
"docs": [
"sphinx",
"sphinx_rtd_theme",
"docutils<0.18",
],
},
entry_points={
"doit.REPORTER": [
"doit_interface = doit_interface.reporters:DoitInterfaceReporter",
],
},
)