Skip to content

Commit e681aa5

Browse files
authored
Move sphinx into main requirements (#170)
1 parent 181e921 commit e681aa5

7 files changed

Lines changed: 16 additions & 8 deletions

File tree

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
keys:
1313
- cache-pip
1414
- run: |
15-
pip install --user -e .[sphinx,rtd]
15+
pip install --user -e .[rtd]
1616
- save_cache:
1717
key: cache-pip
1818
paths:

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,3 +129,5 @@ dmypy.json
129129
.pyre/
130130

131131
_archive/
132+
133+
.DS_Store

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@
1616
"python.linting.flake8Enabled": true,
1717
"python.linting.enabled": true,
1818
"autoDocstring.customTemplatePath": "docstring.fmt.mustache",
19-
"python.pythonPath": "/anaconda/envs/ebp/bin/python",
19+
"python.pythonPath": "/Users/chrisjsewell/opt/miniconda3/envs/ebp/bin/python",
2020
"restructuredtext.confPath": "${workspaceFolder}/docs"
2121
}

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ conda install -c conda-forge myst-parser
2121
or
2222

2323
```bash
24-
pip install myst-parser[sphinx]
24+
pip install myst-parser
2525
```
2626

2727
Or for package development:
@@ -30,7 +30,7 @@ Or for package development:
3030
git clone https://github.com/executablebooks/MyST-Parser
3131
cd MyST-Parser
3232
git checkout master
33-
pip install -e .[sphinx,code_style,testing,rtd]
33+
pip install -e .[code_style,testing,rtd]
3434
```
3535

3636
To use the MyST parser in Sphinx, simply add: `extensions = ["myst_parser"]` to your `conf.py`.

docs/develop/contributing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ To install `myst-parser` for development, take the following steps:
1414
git clone https://github.com/executablebooks/MyST-Parser
1515
cd MyST-Parser
1616
git checkout master
17-
pip install -e .[sphinx,code_style,testing,rtd]
17+
pip install -e .[code_style,testing,rtd]
1818
```
1919

2020
## Code Style

docs/using/intro.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ conda install -c conda-forge myst-parser
2323
or
2424

2525
```bash
26-
pip install myst-parser[sphinx]
26+
pip install myst-parser
2727
```
2828

2929
[pypi-badge]: https://img.shields.io/pypi/v/myst-parser.svg

setup.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,14 @@
3737
],
3838
keywords="markdown lexer parser development docutils sphinx",
3939
python_requires=">=3.6",
40-
install_requires=["markdown-it-py~=0.4.5"],
40+
install_requires=[
41+
"markdown-it-py~=0.4.5",
42+
"pyyaml",
43+
"docutils>=0.15",
44+
"sphinx>=2,<3",
45+
],
4146
extras_require={
42-
"sphinx": ["pyyaml", "docutils>=0.15", "sphinx>=2,<3"],
47+
"sphinx": [], # left in for back-compatability
4348
"code_style": ["flake8<3.8.0,>=3.7.0", "black", "pre-commit==1.17.0"],
4449
"testing": [
4550
"coverage",
@@ -48,6 +53,7 @@
4853
"pytest-regressions",
4954
"beautifulsoup4",
5055
],
56+
# Note: This is only required for internal use
5157
"rtd": ["sphinxcontrib-bibtex", "ipython", "sphinx-book-theme", "sphinx_tabs"],
5258
},
5359
zip_safe=True,

0 commit comments

Comments
 (0)