From bff65b6b79aba91b50037e083772d9d1c4ab45c8 Mon Sep 17 00:00:00 2001 From: Stan Ulbrych Date: Sat, 1 Nov 2025 11:03:30 +0000 Subject: [PATCH 1/2] Commit --- pyproject.toml | 41 +++++++++++++++++++++++++++++++++++++++++ setup.py | 14 -------------- 2 files changed, 41 insertions(+), 14 deletions(-) create mode 100644 pyproject.toml diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..9477265 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,41 @@ +[build-system] +requires = ["setuptools>=61.0", "wheel"] +build-backend = "setuptools.build_meta" + +[project] +name = "python-iconv" +version = "1.1.4" +description = "iconv-based Unicode converter" +readme = "README.md" +requires-python = ">=3.6" +license = {text = "GPL-3.0-or-later"} +maintainers = [ + {name = "Bodo Graumann", email = "mail@bodograumann.de"} +] +classifiers = [ + "Development Status :: 5 - Production/Stable", + "Intended Audience :: Developers", + "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)", + "Operating System :: POSIX", + "Programming Language :: C", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.6", + "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", + "Programming Language :: Python :: 3.14", + "Topic :: Software Development :: Libraries :: Python Modules", +] +keywords = ["iconv", "codec", "encoding", "unicode"] + +[project.urls] +Homepage = "https://github.com/bodograumann/python-iconv" +Repository = "https://github.com/bodograumann/python-iconv" +Issues = "https://github.com/bodograumann/python-iconv/issues" + +[tool.setuptools] +py-modules = ["iconvcodec"] diff --git a/setup.py b/setup.py index 4c52001..09544cf 100644 --- a/setup.py +++ b/setup.py @@ -9,19 +9,5 @@ libraries = ["iconv"] setup( - name="python-iconv", - version="1.1.4", - description="iconv-based Unicode converter", - author="Bodo Graumann", - author_email="mail@bodograumann.de", - url="https://github.com/bodograumann/python-iconv", - long_description="""This is a port of Martin v. Loewis’ original iconv package to Python 3. - -The iconv module exposes the operating system's iconv character -conversion routine to Python. This package provides an iconv wrapper -as well as a Python codec to convert between Unicode objects and -all iconv-provided encodings. -""", - py_modules=["iconvcodec"], ext_modules=[Extension("iconv", sources=["iconvmodule.c"], libraries=libraries)], ) From e6136fb519841ed4d55c25fa5f751c18c0bf6b3a Mon Sep 17 00:00:00 2001 From: Bodo Graumann Date: Sat, 1 Nov 2025 22:00:51 +0100 Subject: [PATCH 2/2] Update license metadata field --- README.md | 2 +- pyproject.toml | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 96c8f12..48e114b 100644 --- a/README.md +++ b/README.md @@ -85,7 +85,7 @@ Publishing We currently only publish source distributions. ```sh -pip install twine +pip install setuptools twine python setup.py sdist twine upload dist/* ``` diff --git a/pyproject.toml b/pyproject.toml index 9477265..ff50593 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,14 +8,13 @@ version = "1.1.4" description = "iconv-based Unicode converter" readme = "README.md" requires-python = ">=3.6" -license = {text = "GPL-3.0-or-later"} +license = "GPL-3.0-or-later" maintainers = [ {name = "Bodo Graumann", email = "mail@bodograumann.de"} ] classifiers = [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", - "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)", "Operating System :: POSIX", "Programming Language :: C", "Programming Language :: Python :: 3",