-
Notifications
You must be signed in to change notification settings - Fork 19
/
setup.py
65 lines (56 loc) · 1.72 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
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
VERSION = "v0.2.0"
LONG_DESCRIPTION = """
This package contains a [Sphinx](http://www.sphinx-doc.org/en/master/) extension
for producing proof, theorem, axiom, lemma, definition, criterion, remark, conjecture,
corollary, algorithm, example, property, observation, proposition, and
assumption directives.
This project is maintained and supported by [najuzilu](https://github.com/najuzilu).
"""
SHORT_DESCRIPTION = "A Sphinx extension for producing proofs, theorems, axioms, etc."
BASE_URL = "https://github.com/executablebooks/sphinx-proof"
URL = f"{BASE_URL}/archive/{VERSION}.tar.gz"
# Define all extras
extras = {
"code_style": ["flake8", "black", "pre-commit"],
"testing": [
"coverage",
"pytest~=7.1",
"pytest-cov",
"pytest-regressions",
"beautifulsoup4",
"myst-parser",
"texsoup",
"defusedxml",
],
"rtd": [
"sphinx>=5.0",
"sphinx-book-theme",
"sphinxcontrib-bibtex",
"myst-parser",
"sphinx_togglebutton",
],
}
extras["all"] = set(ii for jj in extras.values() for ii in jj)
setup(
name="sphinx-proof",
version=VERSION,
python_requires=">=3.9",
author="QuantEcon",
author_email="[email protected]",
url=BASE_URL,
download_url=URL,
project_urls={
"Source": BASE_URL,
"Tracker": f"{BASE_URL}/issues",
},
description=SHORT_DESCRIPTION,
long_description=LONG_DESCRIPTION,
long_description_content_type="text/markdown",
license="BSD",
packages=find_packages(),
install_requires=["docutils>=0.15", "sphinx", "sphinx-book-theme"],
extras_require=extras,
include_package_data=True,
)