Skip to content

Commit de4948f

Browse files
authored
Merge pull request #424 from yozachar/workshop
chore: prepare for new release
2 parents 8691cea + 6d8a1ab commit de4948f

16 files changed

+39
-52
lines changed

.github/workflows/pycqa.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ jobs:
1616
- name: Checkout repository
1717
uses: actions/checkout@v4
1818
# set up specific python version
19-
- name: Set up Python v3.8
19+
- name: Set up Python v3.9
2020
uses: actions/setup-python@v5
2121
with:
22-
python-version: "3.8"
22+
python-version: "3.9"
2323
# tooling
2424
- name: Install 'tooling' dependencies
2525
run: pip install -r package/requirements.tooling.txt
@@ -33,7 +33,7 @@ jobs:
3333
fail-fast: true
3434
matrix:
3535
os: [ubuntu-latest, macos-latest, windows-latest]
36-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
36+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
3737
runs-on: ${{ matrix.os }}
3838
steps:
3939
# checkout repository again!

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ cython_debug/
172172
# rtx/mise
173173
.rtx.toml
174174
.mise.toml
175+
mise.toml
175176

176177
# ruff
177178
.ruff_cache

LICENSE.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2013 - 2024 Konsta Vesterinen
3+
Copyright (c) 2013 - 2025 Konsta Vesterinen
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy of
66
this software and associated documentation files (the "Software"), to deal in

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Then,
1717

1818
```python
1919
>>> import validators
20-
>>>
20+
>>>
2121
>>> validators.email('[email protected]')
2222
True
2323
```
@@ -36,7 +36,7 @@ True
3636

3737
---
3838

39-
> **_Python 3.8 [reaches EOL in](https://endoflife.date/python) October 2024._**
39+
> **_Python 3.9 [reaches EOL in](https://endoflife.date/python) October 2025._**
4040
4141
<!-- Links -->
4242
[sast-badge]: https://github.com/python-validators/validators/actions/workflows/sast.yaml/badge.svg

SECURITY.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
| Version | Supported |
66
| ---------- | ------------------ |
7-
| `>=0.33.0` | :white_check_mark: |
7+
| `>=0.35.0` | :white_check_mark: |
88

99
## Reporting a Vulnerability
1010

docs/api/card.md

+1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@
66
::: validators.card.discover
77
::: validators.card.jcb
88
::: validators.card.mastercard
9+
::: validators.card.mir
910
::: validators.card.unionpay
1011
::: validators.card.visa

docs/api/card.rst

+1
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@ card
88
.. autofunction:: discover
99
.. autofunction:: jcb
1010
.. autofunction:: mastercard
11+
.. autofunction:: mir
1112
.. autofunction:: unionpay
1213
.. autofunction:: visa

docs/api/i18n.md

+1
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@
1010
::: validators.i18n.fr_ssn
1111
::: validators.i18n.ind_aadhar
1212
::: validators.i18n.ind_pan
13+
::: validators.i18n.ru_inn

docs/api/i18n.rst

+1
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ i18n
1212
.. autofunction:: fr_ssn
1313
.. autofunction:: ind_aadhar
1414
.. autofunction:: ind_pan
15+
.. autofunction:: ru_inn

docs/index.md

+8-2
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,15 @@ require defining a schema or form. I wanted to create a simple validation
99
library where validating a simple value does not require defining a form or a
1010
schema.
1111

12+
```shell
13+
pip install validators
14+
```
15+
16+
Then,
17+
1218
```python
1319
>>> import validators
14-
>>>
20+
>>>
1521
>>> validators.email('[email protected]')
1622
True
1723
```
@@ -30,7 +36,7 @@ True
3036

3137
---
3238

33-
> **_Python 3.8 [reaches EOL in](https://endoflife.date/python) October 2024._**
39+
> **_Python 3.9 [reaches EOL in](https://endoflife.date/python) October 2025._**
3440
3541
<!-- Links -->
3642
[sast-badge]: https://github.com/python-validators/validators/actions/workflows/sast.yaml/badge.svg

docs/index.rst

+9-3
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,16 @@ seems to require defining a schema or form. I wanted to create a simple
1212
validation library where validating a simple value does not require
1313
defining a form or a schema.
1414

15+
.. code:: shell
16+
17+
pip install validators
18+
19+
Then,
20+
1521
.. code:: python
1622
1723
>>> import validators
18-
>>>
24+
>>>
1925
>>> validators.email('[email protected]')
2026
True
2127
@@ -41,8 +47,8 @@ Resources
4147

4248
--------------
4349

44-
**Python 3.8** `reaches EOL in <https://endoflife.date/python>`__
45-
**October 2024.**
50+
**Python 3.9** `reaches EOL in <https://endoflife.date/python>`__
51+
**October 2025.**
4652

4753
.. raw:: html
4854

mkdocs.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ extra:
6363
provider: mike
6464
default: stable
6565

66-
copyright: Copyright &copy; 2013 - 2024 Konsta Vesterinen
66+
copyright: Copyright &copy; 2013 - 2025 Konsta Vesterinen
6767

6868
nav:
6969
- Home: index.md

package/requirements.sphinx.txt

-3
Original file line numberDiff line numberDiff line change
@@ -215,9 +215,6 @@ pypandoc-binary==1.13 \
215215
--hash=sha256:67c0c7af811bcf3cd4f3221be756a4975ec35b2d7df89d8de4313a8caa2cd54f \
216216
--hash=sha256:9455fdd9521cbf4b56d79a56b806afa94c8c22f3c8ef878536e58d941a70f6d6 \
217217
--hash=sha256:946666388eb79b307d7f497b3b33045ef807750f8e5ef3440e0ba3bbab698044
218-
pytz==2024.1 \
219-
--hash=sha256:2a29735ea9c18baf14b448846bde5a48030ed267578472d8955cd0e7443a9812 \
220-
--hash=sha256:328171f4e3623139da4983451950b28e95ac706e13f3f2630a879749e7a8b319
221218
pyyaml==6.0.1 \
222219
--hash=sha256:04ac92ad1925b2cff1db0cfebffb6ffc43457495c9b3c39d3fcae417d7125dc5 \
223220
--hash=sha256:062582fca9fabdd2c8b54a3ef1c978d786e0f6b3a1510e0ac93ef59e0ddae2bc \

pdm.lock

+4-31
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

+4-4
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ classifiers = [
3333
"Programming Language :: Python :: Implementation :: CPython",
3434
"Topic :: Software Development :: Libraries :: Python Modules",
3535
]
36-
requires-python = ">=3.8"
36+
requires-python = ">=3.9"
3737
dynamic = ["version"]
3838
dependencies = []
3939

@@ -116,7 +116,7 @@ exclude = [
116116
".venv.dev/",
117117
"site/",
118118
]
119-
pythonVersion = "3.8"
119+
pythonVersion = "3.9"
120120
pythonPlatform = "All"
121121
typeCheckingMode = "strict"
122122

@@ -144,7 +144,7 @@ lint.select = [
144144
"D",
145145
]
146146
line-length = 100
147-
target-version = "py38"
147+
target-version = "py39"
148148
extend-exclude = ["**/__pycache__", ".pytest_cache", "site"]
149149

150150
[tool.ruff.lint.isort]
@@ -163,7 +163,7 @@ legacy_tox_ini = """
163163
[tox]
164164
requires =
165165
tox>=4
166-
env_list = lint, type, format, sast, py{38,39,310,311,312}
166+
env_list = lint, type, format, sast, py{39,310,311,312,313}
167167
168168
[testenv:lint]
169169
description = ruff linter

src/validators/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,4 +112,4 @@
112112
"validator",
113113
)
114114

115-
__version__ = "0.34.0"
115+
__version__ = "0.35.0"

0 commit comments

Comments
 (0)