Skip to content

Commit e454546

Browse files
committed
release: prepare v1.2.0 release
1 parent 1fe6601 commit e454546

File tree

5 files changed

+373
-10
lines changed

5 files changed

+373
-10
lines changed

HISTORY.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,21 @@
33
Release History
44
---------------
55

6+
1.2.0 (2025-06-16)
7+
++++++++++++++++++
8+
9+
- Add support for comments
10+
- Drop support for Python 3.8, add testing for Python 3.13
11+
12+
613
1.1.2 (2024-05-01)
714
++++++++++++++++++
815

916
- Fix #1383 Revert lxml<=4.9.2 pin that breaks Python 3.12 install
1017
- Fix #1385 Support use of Part._rels by python-docx-template
1118
- Add support and testing for Python 3.12
1219

20+
1321
1.1.1 (2024-04-29)
1422
++++++++++++++++++
1523

Makefile

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
BEHAVE = behave
22
MAKE = make
33
PYTHON = python
4-
BUILD = $(PYTHON) -m build
54
TWINE = $(PYTHON) -m twine
65

76
.PHONY: accept build clean cleandocs coverage docs install opendocs sdist test
@@ -24,10 +23,10 @@ help:
2423
@echo " wheel generate a binary distribution into dist/"
2524

2625
accept:
27-
$(BEHAVE) --stop
26+
uv run $(BEHAVE) --stop
2827

2928
build:
30-
$(BUILD)
29+
uv build
3130

3231
clean:
3332
# find . -type f -name \*.pyc -exec rm {} \;
@@ -38,7 +37,7 @@ cleandocs:
3837
$(MAKE) -C docs clean
3938

4039
coverage:
41-
py.test --cov-report term-missing --cov=docx tests/
40+
uv run pytest --cov-report term-missing --cov=docx tests/
4241

4342
docs:
4443
$(MAKE) -C docs html
@@ -50,16 +49,16 @@ opendocs:
5049
open docs/.build/html/index.html
5150

5251
sdist:
53-
$(BUILD) --sdist .
52+
uv build --sdist
5453

5554
test:
56-
pytest -x
55+
uv run pytest -x
5756

5857
test-upload: sdist wheel
59-
$(TWINE) upload --repository testpypi dist/*
58+
uv run $(TWINE) upload --repository testpypi dist/*
6059

6160
upload: clean sdist wheel
62-
$(TWINE) upload dist/*
61+
uv run $(TWINE) upload dist/*
6362

6463
wheel:
65-
$(BUILD) --wheel .
64+
uv build --wheel

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ dev = [
4444
"pytest>=8.4.0",
4545
"ruff>=0.11.13",
4646
"tox>=4.26.0",
47+
"twine>=6.1.0",
4748
"types-lxml-multi-subclass>=2025.3.30",
4849
]
4950

src/docx/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
if TYPE_CHECKING:
1414
from docx.opc.part import Part
1515

16-
__version__ = "1.1.2"
16+
__version__ = "1.2.0"
1717

1818

1919
__all__ = ["Document"]

0 commit comments

Comments
 (0)