Skip to content

Commit e70dd24

Browse files
committed
make pygments required
1 parent 00047cb commit e70dd24

File tree

7 files changed

+33
-37
lines changed

7 files changed

+33
-37
lines changed

README.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,9 @@ For more information, see [documentation](https://python-devtools.helpmanual.io/
1515
Just
1616

1717
```bash
18-
pip install devtools[pygments]
18+
pip install devtools
1919
```
2020

21-
`pygments` is not required but if it's installed, output will be highlighted and easier to read.
22-
23-
`devtools` has no other required dependencies except python 3.7, 3.8, 3.9, 3.10 or 3.11.
2421
If you've got python 3.7+ and `pip` installed, you're good to go.
2522

2623
## Usage

docs/install.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
Installation is as simple as:
22

33
```bash
4-
pip install devtools[pygments]
4+
pip install devtools
55
```
66

7-
`pygments` is not required but if it's installed, output will be highlighted and easier to read.
8-
9-
`devtools` has no other required dependencies except python 3.7, 3.8, 3.9, 3.10 or 3.11.
7+
`devtools` has [very few dependencies](https://github.com/samuelcolvin/python-devtools/blob/main/pyproject.toml#L37).
108
If you've got python 3.7+ and `pip` installed, you're good to go.

pyproject.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,10 @@ requires-python = '>=3.7'
3737
dependencies = [
3838
'executing>=1.1.1',
3939
'asttokens>=2.0.0,<3.0.0',
40+
'Pygments>=2.15.0',
4041
]
41-
optional-dependencies = {pygments = ['Pygments>=2.2.0'] }
42+
# keep this meaningless group around to avoid breaking installs using `pip install devtools[pygments]`
43+
optional-dependencies = {pygments = [] }
4244
dynamic = ['version']
4345

4446
[project.urls]

requirements/docs.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,5 @@ mkdocs-exclude
44
mkdocs-material
55
mkdocs-simple-hooks
66
markdown-include
7-
pygments
87
ruff
98
numpy

requirements/docs.txt

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# pip-compile --output-file=requirements/docs.txt --resolver=backtracking requirements/docs.in
66
#
77
ansi2html==1.8.0
8-
# via -r docs.in
8+
# via -r requirements/docs.in
99
certifi==2023.7.22
1010
# via requests
1111
charset-normalizer==3.1.0
@@ -29,33 +29,31 @@ markdown==3.3.7
2929
# mkdocs-material
3030
# pymdown-extensions
3131
markdown-include==0.8.1
32-
# via -r docs.in
32+
# via -r requirements/docs.in
3333
markupsafe==2.1.2
3434
# via jinja2
3535
mergedeep==1.3.4
3636
# via mkdocs
3737
mkdocs==1.4.2
3838
# via
39-
# -r docs.in
39+
# -r requirements/docs.in
4040
# mkdocs-exclude
4141
# mkdocs-material
4242
# mkdocs-simple-hooks
4343
mkdocs-exclude==1.0.2
44-
# via -r docs.in
44+
# via -r requirements/docs.in
4545
mkdocs-material==9.1.5
46-
# via -r docs.in
46+
# via -r requirements/docs.in
4747
mkdocs-material-extensions==1.1.1
4848
# via mkdocs-material
4949
mkdocs-simple-hooks==0.1.5
50-
# via -r docs.in
50+
# via -r requirements/docs.in
5151
numpy==1.24.2
52-
# via -r docs.in
52+
# via -r requirements/docs.in
5353
packaging==23.0
5454
# via mkdocs
5555
pygments==2.15.0
56-
# via
57-
# -r docs.in
58-
# mkdocs-material
56+
# via mkdocs-material
5957
pymdown-extensions==10.0
6058
# via mkdocs-material
6159
python-dateutil==2.8.2
@@ -72,7 +70,7 @@ regex==2023.3.23
7270
requests==2.31.0
7371
# via mkdocs-material
7472
ruff==0.0.261
75-
# via -r docs.in
73+
# via -r requirements/docs.in
7674
six==1.16.0
7775
# via python-dateutil
7876
urllib3==1.26.15

requirements/testing.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
coverage[toml]
2-
pygments
32
pytest
43
pytest-mock
54
pytest-pretty

requirements/testing.txt

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,29 +5,29 @@
55
# pip-compile --output-file=requirements/testing.txt --resolver=backtracking requirements/testing.in
66
#
77
asyncpg==0.27.0 ; python_version >= "3.8"
8-
# via -r testing.in
8+
# via -r requirements/testing.in
99
attrs==22.2.0
1010
# via pytest
1111
black==23.3.0
12-
# via -r testing.in
12+
# via -r requirements/testing.in
1313
click==8.1.3
1414
# via black
1515
coverage[toml]==7.2.2
16-
# via -r testing.in
17-
greenlet==2.0.2
18-
# via sqlalchemy
16+
# via -r requirements/testing.in
17+
exceptiongroup==1.1.3
18+
# via pytest
1919
iniconfig==2.0.0
2020
# via pytest
2121
markdown-it-py==2.2.0
2222
# via rich
2323
mdurl==0.1.2
2424
# via markdown-it-py
2525
multidict==6.0.4 ; python_version >= "3.8"
26-
# via -r testing.in
26+
# via -r requirements/testing.in
2727
mypy-extensions==1.0.0
2828
# via black
2929
numpy==1.24.2 ; python_version >= "3.8"
30-
# via -r testing.in
30+
# via -r requirements/testing.in
3131
packaging==23.0
3232
# via
3333
# black
@@ -39,24 +39,27 @@ platformdirs==3.2.0
3939
pluggy==1.0.0
4040
# via pytest
4141
pydantic==1.10.7
42-
# via -r testing.in
42+
# via -r requirements/testing.in
4343
pygments==2.15.0
44-
# via
45-
# -r testing.in
46-
# rich
44+
# via rich
4745
pytest==7.2.2
4846
# via
49-
# -r testing.in
47+
# -r requirements/testing.in
5048
# pytest-mock
5149
# pytest-pretty
5250
pytest-mock==3.10.0
53-
# via -r testing.in
51+
# via -r requirements/testing.in
5452
pytest-pretty==1.2.0
55-
# via -r testing.in
53+
# via -r requirements/testing.in
5654
rich==13.3.3
5755
# via pytest-pretty
5856
sqlalchemy==2.0.8
59-
# via -r testing.in
57+
# via -r requirements/testing.in
58+
tomli==2.0.1
59+
# via
60+
# black
61+
# coverage
62+
# pytest
6063
typing-extensions==4.5.0
6164
# via
6265
# pydantic

0 commit comments

Comments
 (0)