File tree Expand file tree Collapse file tree 5 files changed +373
-10
lines changed Expand file tree Collapse file tree 5 files changed +373
-10
lines changed Original file line number Diff line number Diff line change 3
3
Release History
4
4
---------------
5
5
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
+
6
13
1.1.2 (2024-05-01)
7
14
++++++++++++++++++
8
15
9
16
- Fix #1383 Revert lxml<=4.9.2 pin that breaks Python 3.12 install
10
17
- Fix #1385 Support use of Part._rels by python-docx-template
11
18
- Add support and testing for Python 3.12
12
19
20
+
13
21
1.1.1 (2024-04-29)
14
22
++++++++++++++++++
15
23
Original file line number Diff line number Diff line change 1
1
BEHAVE = behave
2
2
MAKE = make
3
3
PYTHON = python
4
- BUILD = $(PYTHON ) -m build
5
4
TWINE = $(PYTHON ) -m twine
6
5
7
6
.PHONY : accept build clean cleandocs coverage docs install opendocs sdist test
@@ -24,10 +23,10 @@ help:
24
23
@echo " wheel generate a binary distribution into dist/"
25
24
26
25
accept :
27
- $(BEHAVE ) --stop
26
+ uv run $(BEHAVE ) --stop
28
27
29
28
build :
30
- $( BUILD )
29
+ uv build
31
30
32
31
clean :
33
32
# find . -type f -name \*.pyc -exec rm {} \;
@@ -38,7 +37,7 @@ cleandocs:
38
37
$(MAKE ) -C docs clean
39
38
40
39
coverage :
41
- py.test --cov-report term-missing --cov=docx tests/
40
+ uv run pytest --cov-report term-missing --cov=docx tests/
42
41
43
42
docs :
44
43
$(MAKE ) -C docs html
@@ -50,16 +49,16 @@ opendocs:
50
49
open docs/.build/html/index.html
51
50
52
51
sdist :
53
- $( BUILD ) --sdist .
52
+ uv build --sdist
54
53
55
54
test :
56
- pytest -x
55
+ uv run pytest -x
57
56
58
57
test-upload : sdist wheel
59
- $(TWINE ) upload --repository testpypi dist/*
58
+ uv run $(TWINE ) upload --repository testpypi dist/*
60
59
61
60
upload : clean sdist wheel
62
- $(TWINE ) upload dist/*
61
+ uv run $(TWINE ) upload dist/*
63
62
64
63
wheel :
65
- $( BUILD ) --wheel .
64
+ uv build --wheel
Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ dev = [
44
44
" pytest>=8.4.0" ,
45
45
" ruff>=0.11.13" ,
46
46
" tox>=4.26.0" ,
47
+ " twine>=6.1.0" ,
47
48
" types-lxml-multi-subclass>=2025.3.30" ,
48
49
]
49
50
Original file line number Diff line number Diff line change 13
13
if TYPE_CHECKING :
14
14
from docx .opc .part import Part
15
15
16
- __version__ = "1.1.2 "
16
+ __version__ = "1.2.0 "
17
17
18
18
19
19
__all__ = ["Document" ]
You can’t perform that action at this time.
0 commit comments