Skip to content

Commit a291108

Browse files
nicknick
authored andcommitted
fixed encoding issue with readme in setup.py & inclusion of toml file for building Python wheel
1 parent a993606 commit a291108

3 files changed

Lines changed: 19 additions & 4 deletions

File tree

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,3 @@
77
BUILDING.md
88
/.vscode
99
/build
10-
test.py
11-
report.docx
12-
docx_comment_parser.pyd

pyproject.toml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
[build-system]
2+
requires = ["setuptools", "pybind11"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "docx-comment-parser"
7+
version = "1.0.0"
8+
description = "Fast C++ library for extracting comment metadata from .docx files"
9+
readme = "README.md"
10+
requires-python = ">=3.8"
11+
authors = [{name = "nick-developer"}]
12+
classifiers = [
13+
"Programming Language :: Python :: 3",
14+
"Programming Language :: C++",
15+
"Operating System :: POSIX :: Linux",
16+
"Operating System :: Microsoft :: Windows",
17+
"Operating System :: MacOS",
18+
]

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def _is_mingw() -> bool:
103103
version="1.0.0",
104104
author="nick-developer",
105105
description="Fast C++ library for extracting comment metadata from .docx files",
106-
long_description=open("README.md").read() if os.path.exists("README.md") else "",
106+
long_description=open("README.md", encoding="utf-8").read() if os.path.exists("README.md") else "",
107107
ext_modules=[ext],
108108
python_requires=">=3.8",
109109
classifiers=[

0 commit comments

Comments
 (0)