Skip to content

Commit f36ead0

Browse files
committed
Release 1.2.0
* Support Python 3.12 and 3.13 (#55) * Improve regexp generation for ``#`` (#50) * Remove spurious CRLF warning (#48) * Improve python-nested regex output for repetition (#45) * Fix default for format argument (#42) * Constrain abnf dependency to 2.2.0 (#43) This is a minor version which mainly improves on the compatibility of generated regular expressions so that they can be (re-)used across more platforms.
1 parent 7fba741 commit f36ead0

File tree

4 files changed

+19
-5
lines changed

4 files changed

+19
-5
lines changed

.github/workflows/publish-to-pypi.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ jobs:
2525
- name: Install dependencies
2626
run: |
2727
python -m pip install --upgrade pip
28-
pip install setuptools wheel twine
28+
pip install setuptools wheel twine build
2929
3030
- name: Build and publish
3131
env:
3232
TWINE_USERNAME: "__token__"
3333
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
3434
run: |
35-
python setup.py sdist
35+
python -m build
3636
twine upload dist/*

CHANGELOG.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,19 @@ CHANGELOG
77
Please keep this file at 72 line width so that we can copy-paste
88
the release logs directly into commit messages.
99
10+
1.2.0 (2025-11-08)
11+
==================
12+
* Support Python 3.12 and 3.13 (#55)
13+
* Improve regexp generation for ``#`` (#50)
14+
* Remove spurious CRLF warning (#48)
15+
* Improve python-nested regex output for repetition (#45)
16+
* Fix default for format argument (#42)
17+
* Constrain abnf dependency to 2.2.0 (#43)
18+
19+
This is a minor version which mainly improves on the compatibility of
20+
generated regular expressions so that they can be (re-)used across
21+
more platforms.
22+
1023
1.1.3 (2024-03-22)
1124
==================
1225
* Fix for the case no min. and only max. repetition (#34)

abnf_to_regexp/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""Convert ABNF grammars to Python regular expressions."""
22

3-
# Do not forget to update in setup.py!
4-
__version__ = "1.1.3"
3+
# Do not forget to update in pyproject.toml!
4+
__version__ = "1.2.0"
55
__author__ = "Marko Ristin"
66
__license__ = "License :: OSI Approved :: MIT License"
77
__status__ = "Production/Stable"

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "abnf-to-regexp"
7-
version = "1.1.3"
7+
# Do not forget to update in __init__.py!
8+
version = "1.2.0"
89
description = "Convert ABNF grammars to Python regular expressions."
910
readme = "README.rst"
1011
license = {text = "MIT"}

0 commit comments

Comments
 (0)