Skip to content

Commit 87b141b

Browse files
Add pyproject.toml (#17)
* Commit * Update license metadata field --------- Co-authored-by: Bodo Graumann <mail@bodograumann.de>
1 parent 790384d commit 87b141b

File tree

3 files changed

+41
-15
lines changed

3 files changed

+41
-15
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ Publishing
8585

8686
We currently only publish source distributions.
8787
```sh
88-
pip install twine
88+
pip install setuptools twine
8989
python setup.py sdist
9090
twine upload dist/*
9191
```

pyproject.toml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
[build-system]
2+
requires = ["setuptools>=61.0", "wheel"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "python-iconv"
7+
version = "1.1.4"
8+
description = "iconv-based Unicode converter"
9+
readme = "README.md"
10+
requires-python = ">=3.6"
11+
license = "GPL-3.0-or-later"
12+
maintainers = [
13+
{name = "Bodo Graumann", email = "mail@bodograumann.de"}
14+
]
15+
classifiers = [
16+
"Development Status :: 5 - Production/Stable",
17+
"Intended Audience :: Developers",
18+
"Operating System :: POSIX",
19+
"Programming Language :: C",
20+
"Programming Language :: Python :: 3",
21+
"Programming Language :: Python :: 3.6",
22+
"Programming Language :: Python :: 3.7",
23+
"Programming Language :: Python :: 3.8",
24+
"Programming Language :: Python :: 3.9",
25+
"Programming Language :: Python :: 3.10",
26+
"Programming Language :: Python :: 3.11",
27+
"Programming Language :: Python :: 3.12",
28+
"Programming Language :: Python :: 3.13",
29+
"Programming Language :: Python :: 3.14",
30+
"Topic :: Software Development :: Libraries :: Python Modules",
31+
]
32+
keywords = ["iconv", "codec", "encoding", "unicode"]
33+
34+
[project.urls]
35+
Homepage = "https://github.com/bodograumann/python-iconv"
36+
Repository = "https://github.com/bodograumann/python-iconv"
37+
Issues = "https://github.com/bodograumann/python-iconv/issues"
38+
39+
[tool.setuptools]
40+
py-modules = ["iconvcodec"]

setup.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,5 @@
99
libraries = ["iconv"]
1010

1111
setup(
12-
name="python-iconv",
13-
version="1.1.4",
14-
description="iconv-based Unicode converter",
15-
author="Bodo Graumann",
16-
author_email="mail@bodograumann.de",
17-
url="https://github.com/bodograumann/python-iconv",
18-
long_description="""This is a port of Martin v. Loewis’ original iconv package to Python 3.
19-
20-
The iconv module exposes the operating system's iconv character
21-
conversion routine to Python. This package provides an iconv wrapper
22-
as well as a Python codec to convert between Unicode objects and
23-
all iconv-provided encodings.
24-
""",
25-
py_modules=["iconvcodec"],
2612
ext_modules=[Extension("iconv", sources=["iconvmodule.c"], libraries=libraries)],
2713
)

0 commit comments

Comments
 (0)