Skip to content

Commit 5b3ee80

Browse files
committed
release: prepare v1.0.0rc1 release
1 parent e47dfa2 commit 5b3ee80

7 files changed

+50
-18
lines changed

HISTORY.rst

+19
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,25 @@
33
Release History
44
---------------
55

6+
1.0.0 (2023-10-01)
7+
+++++++++++++++++++
8+
9+
- Remove Python 2 support. Supported versions are 3.7+
10+
* Fix #85: Paragraph.text includes hyperlink text
11+
* Add #1113: Hyperlink.address
12+
* Add Hyperlink.contains_page_break
13+
* Add Hyperlink.runs
14+
* Add Hyperlink.text
15+
* Add Paragraph.contains_page_break
16+
* Add Paragraph.hyperlinks
17+
* Add Paragraph.iter_inner_content()
18+
* Add Paragraph.rendered_page_breaks
19+
* Add RenderedPageBreak.following_paragraph_fragment
20+
* Add RenderedPageBreak.preceding_paragraph_fragment
21+
* Add Run.contains_page_break
22+
* Add Run.iter_inner_content()
23+
24+
625
0.8.11 (2021-05-15)
726
+++++++++++++++++++
827

README.md

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# python-docx
2+
3+
*python-docx* is a Python library for reading, creating, and updating Microsoft Word 2007+ (.docx) files.
4+
5+
## Installation
6+
7+
```
8+
pip install python-docx
9+
```
10+
11+
## Example
12+
13+
```python
14+
>>> from docx import Document
15+
16+
>>> document = Document()
17+
>>> document.add_paragraph("It was a dark and stormy night.")
18+
<docx.text.paragraph.Paragraph object at 0x10f19e760>
19+
>>> document.save("dark-and-stormy.docx")
20+
21+
>>> document = Document("dark-and-stormy.docx")
22+
>>> document.paragraphs[0].text
23+
'It was a dark and stormy night.'
24+
```
25+
26+
More information is available in the [python-docx documentation](https://python-docx.readthedocs.org/en/latest/)

README.rst

-10
This file was deleted.

pyproject.toml

+3-2
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,14 @@ classifiers = [
2121
"Topic :: Software Development :: Libraries",
2222
]
2323
dependencies = [
24-
"lxml>=2.3.2",
24+
"lxml>=3.1.0",
25+
"typing_extensions",
2526
]
2627
description = "Create, read, and update Microsoft Word .docx files."
2728
dynamic = ["version"]
2829
keywords = ["docx", "office", "openxml", "word"]
2930
license = { text = "MIT" }
30-
readme = "README.rst"
31+
readme = "README.md"
3132
requires-python = ">=3.7"
3233

3334
[project.urls]

requirements-test.txt

-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,3 @@ behave>=1.2.3
33
pyparsing>=2.0.1
44
pytest>=2.5
55
ruff
6-
typing-extensions

requirements.txt

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
lxml>=3.1.0
2+
typing-extensions

tox.ini

+1-5
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,7 @@
22
envlist = py37, py38, py39, py310, py311
33

44
[testenv]
5-
deps =
6-
behave
7-
lxml
8-
pyparsing
9-
pytest
5+
deps = -rrequirements-test.txt
106

117
commands =
128
py.test -qx

0 commit comments

Comments
 (0)