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 new file mode 100644 index 0000000..ff50593 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,40 @@ +[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 = "GPL-3.0-or-later" +maintainers = [ + {name = "Bodo Graumann", email = "mail@bodograumann.de"} +] +classifiers = [ + "Development Status :: 5 - Production/Stable", + "Intended Audience :: Developers", + "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)], )