Skip to content

Commit cfd837b

Browse files
committed
⬆️ UPGRADE: attrs -> v20
This is not breaking, since it only deprecates python 3.4 (see [CHANGELOG.rst]https://github.com/python-attrs/attrs/blob/master/CHANGELOG.rst))
1 parent 4b3e646 commit cfd837b

File tree

3 files changed

+13
-6
lines changed

3 files changed

+13
-6
lines changed

docs/contributing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ For code tests, markdown-it-py uses [pytest](https://docs.pytest.org)):
4040
>> pytest
4141
```
4242

43-
You use [tox](https://tox.readthedocs.io), to run the tests in multiple isolated environments (see the `tox.ini` file for available test environments):
43+
You can also use [tox](https://tox.readthedocs.io), to run the tests in multiple isolated environments (see the `tox.ini` file for available test environments):
4444

4545
```shell
4646
>> cd markdown-it-py

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def get_version():
3939
],
4040
keywords="markdown lexer parser development",
4141
python_requires="~=3.6",
42-
install_requires=["attrs~=19.3"],
42+
install_requires=["attrs>=19,<21"],
4343
extras_require={
4444
"code_style": ["pre-commit==2.6"],
4545
"testing": [

tox.ini

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,29 @@
66
[tox]
77
envlist = py{36,37,38}
88

9+
[testenv]
10+
# only recreate the environment when we use `tox -r`
11+
recreate = false
12+
913
[testenv:py{36,37,38}]
1014
extras = testing
11-
recreate = false
1215
commands = pytest {posargs}
1316

1417
[testenv:py{36,37,38}-bench-core]
1518
extras = testing
16-
recreate = false
1719
commands = pytest benchmarking/bench_core.py {posargs}
1820

1921
[testenv:py{36,37,38}-bench-packages]
2022
extras = testing,compare
21-
recreate = false
2223
commands = pytest benchmarking/bench_packages.py {posargs}
2324

2425
[testenv:py{36,37,38}-bench-plugins]
2526
extras = testing
26-
recreate = false
2727
commands = pytest benchmarking/bench_plugins.py {posargs}
28+
29+
[testenv:docs-{update,clean}]
30+
extras = rtd
31+
whitelist_externals = rm
32+
commands =
33+
clean: rm -rf docs/_build
34+
sphinx-build {posargs} -nW --keep-going -b html docs/ docs/_build/html

0 commit comments

Comments
 (0)