Skip to content

Commit c339d33

Browse files
authored
Remove Python 2 from documentation examples (#1539)
1 parent fa807e7 commit c339d33

File tree

3 files changed

+27
-27
lines changed

3 files changed

+27
-27
lines changed

docs/config/environment/advanced.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ dependencies = [
2525
]
2626

2727
[[tool.hatch.envs.test.matrix]]
28-
python = ["2.7", "3.8"]
28+
python = ["3.10", "3.11"]
2929
version = ["42", "3.14"]
3030

3131
[[tool.hatch.envs.test.matrix]]
32-
python = ["3.8", "3.9"]
32+
python = ["3.11", "3.12"]
3333
version = ["9000"]
3434
feature = ["foo", "bar"]
3535
```
@@ -117,7 +117,7 @@ dependencies = [
117117
cov = 'pytest --cov-report=term-missing --cov-config=pyproject.toml --cov=pkg --cov=tests'
118118

119119
[[tool.hatch.envs.test.matrix]]
120-
python = ["2.7", "3.8"]
120+
python = ["3.11", "3.12"]
121121
version = ["42", "3.14"]
122122
```
123123

@@ -177,7 +177,7 @@ matrix.auth.features = [
177177
]
178178

179179
[[tool.hatch.envs.test.matrix]]
180-
python = ["2.7", "3.8"]
180+
python = ["3.11", "3.12"]
181181
version = ["legacy", "latest"]
182182
auth = ["oauth2", "kerberos", "noauth"]
183183
```

docs/environment.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -131,13 +131,13 @@ dependencies = [
131131
]
132132

133133
[[tool.hatch.envs.test.matrix]]
134-
python = ["2.7", "3.8"]
134+
python = ["3.10", "3.11"]
135135
version = ["42", "3.14"]
136136

137137
[[tool.hatch.envs.test.matrix]]
138-
python = ["3.8", "3.9"]
138+
python = ["3.11", "3.12"]
139139
version = ["9000"]
140-
features = ["foo", "bar"]
140+
feature = ["foo", "bar"]
141141
```
142142

143143
Using the [`env show`](cli/reference.md#hatch-env-show) command would then display:
@@ -150,19 +150,19 @@ $ hatch env show --ascii
150150
+=========+=========+
151151
| default | virtual |
152152
+---------+---------+
153-
Matrices
154-
+------+---------+---------------------+--------------+
155-
| Name | Type | Envs | Dependencies |
156-
+======+=========+=====================+==============+
157-
| test | virtual | test.py2.7-42 | pytest |
158-
| | | test.py2.7-3.14 | |
159-
| | | test.py3.8-42 | |
160-
| | | test.py3.8-3.14 | |
161-
| | | test.py3.8-9000-foo | |
162-
| | | test.py3.8-9000-bar | |
163-
| | | test.py3.9-9000-foo | |
164-
| | | test.py3.9-9000-bar | |
165-
+------+---------+---------------------+--------------+
153+
Matrices
154+
+------+---------+----------------------+--------------+
155+
| Name | Type | Envs | Dependencies |
156+
+======+=========+======================+==============+
157+
| test | virtual | test.py3.10-42 | pytest |
158+
| | | test.py3.10-3.14 | |
159+
| | | test.py3.11-42 | |
160+
| | | test.py3.11-3.14 | |
161+
| | | test.py3.11-9000-foo | |
162+
| | | test.py3.11-9000-bar | |
163+
| | | test.py3.12-9000-foo | |
164+
| | | test.py3.12-9000-bar | |
165+
+------+---------+----------------------+--------------+
166166
```
167167

168168
## Removal

docs/meta/faq.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,8 @@ The only caveat is that currently there is no support for re-creating an environ
145145
```ini tab="tox.ini"
146146
[tox]
147147
envlist =
148-
py{27,38}-{42,3.14}
149-
py{38,39}-{9000}-{foo,bar}
148+
py{38,39}-{42,3.14}
149+
py{39,310}-{9000}-{foo,bar}
150150

151151
[testenv]
152152
usedevelop = true
@@ -184,19 +184,19 @@ The only caveat is that currently there is no support for re-creating an environ
184184

185185
[tool.hatch.envs.default.overrides]
186186
matrix.version.env-vars = "PRODUCT_VERSION"
187-
matrix.features.env-vars = "EXPERIMENTAL=true"
188-
matrix.features.dependencies = [
187+
matrix.feature.env-vars = "EXPERIMENTAL=true"
188+
matrix.feature.dependencies = [
189189
{ value = "cryptography", if = ["foo"] },
190190
]
191191

192192
[[tool.hatch.envs.default.matrix]]
193-
python = ["2.7", "3.8"]
193+
python = ["3.8", "3.9"]
194194
version = ["42", "3.14"]
195195

196196
[[tool.hatch.envs.default.matrix]]
197-
python = ["3.8", "3.9"]
197+
python = ["3.9", "3.10"]
198198
version = ["9000"]
199-
features = ["foo", "bar"]
199+
feature = ["foo", "bar"]
200200
```
201201

202202
## Fast CLI?

0 commit comments

Comments
 (0)