changeset 395:f5f88fca7187 build-2.7

MERGE: Copyright year extensions from the main trunk
author Franz Glasner <fzglas.hg@dom66.de>
date Mon, 16 Feb 2026 14:02:07 +0100
parents 2192d22064bb (diff) 75062dade088 (current diff)
children 669dd560f21a
files pyproject.toml setup.cfg
diffstat 2 files changed, 55 insertions(+), 62 deletions(-) [+]
line wrap: on
line diff
--- a/pyproject.toml	Mon Feb 16 13:57:13 2026 +0100
+++ b/pyproject.toml	Mon Feb 16 14:02:07 2026 +0100
@@ -1,64 +1,4 @@
-# Pure-Python-Build
+# Pure-Python-Build for Python2.7 and older Python3 versions
 [build-system]
-requires = ["setuptools>=77.0", "wheel>=0.33"]
+requires = ["setuptools>=43.0", "wheel>=0.33"]
 build-backend = "setuptools.build_meta"
-
-[project]
-name = "py-cutils"
-description = "Pure Python implementation of some coreutils with some extensions"
-#
-# NOTE: This is the *distribution* license (e.g. includes vendored stuff).
-#       There is no such thing here as a "project" license.
-#
-license = "BSD-3-Clause AND MIT"
-license-files = [
-  "LICENSES/BSD-3-Clause.txt",
-  "LICENSES/MIT.txt"
-]
-authors = [
-  {name = "Franz Glasner", email = "fzglas.hg@dom66.de"},
-]
-classifiers = [
-    "Development Status :: 5 - Production/Stable",
-    "Environment :: Console",
-    "Intended Audience :: Developers",
-    "Intended Audience :: End Users/Desktop",
-    "Intended Audience :: System Administrators",
-    "Operating System :: OS Independent",
-    "Programming Language :: Python :: 2.7",
-    "Programming Language :: Python :: 3",
-    "Topic :: System",
-    "Topic :: Utilities"
-]
-requires-python = ">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*"
-dynamic = ["version", "readme"]
-
-[project.urls]
-homepage = "https://hg2.dom66.de/hgrepos/Python/apps/py-cutils"
-download = "https://pypi2.dom66.de/simple/py-cutils/"
-source = "https://hg2.dom66.de/hgrepos/Python/apps/py-cutils"
-
-[project.scripts]
-py-dos2unix = "cutils.dos2unix:main"
-py-genpwd = "cutils.genpwd:main"
-py-shasum = "cutils.shasum:main"
-py-treesum = "cutils.treesum:main"
-
-[tool.setuptools]
-include-package-data = false
-platforms = ["any"]
-zip-safe = true
-packages = [
-    "cutils",
-    "cutils.util",
-    "cutils.crcmod",
-    "cutils.crcmod.python2",
-    "cutils.crcmod.python3"
-]
-
-[tool.setuptools.dynamic]
-version = {attr = "cutils.__version__"}
-readme = {file = ["README.txt"], content-type = "text/x-rst"}
-
-[tool.setuptools.package-data]
-"cutils.crcmod" = ["REUSE.toml"]
--- a/setup.cfg	Mon Feb 16 13:57:13 2026 +0100
+++ b/setup.cfg	Mon Feb 16 14:02:07 2026 +0100
@@ -1,3 +1,5 @@
+# Build configuration for Python2.7 and older Python3 versions
+
 [egg_info]
 tag_build =
 tag_date = 0
@@ -9,6 +11,57 @@
 [sdist]
 formats = tar
 
+[metadata]
+name = py-cutils
+version = attr: cutils.__version__
+description = Pure Python implementation of some coreutils with some extensions
+author = Franz Glasner
+author_email = fzglas.hg@dom66.de
+license = BSD 3-Clause "New" or "Revised" License
+url = https://pypi.dom66.de/simple/py-cutils/
+download_url = https://pypi.dom66.de/simple/py-cutils/
+license_files =
+  LICENSES/BSD-3-Clause.txt
+  LICENSES/MIT.txt
+long_description = file: README.txt
+long_description_content_type = text/x-rst
+platforms = any
+classifiers =
+    Development Status :: 5 - Production/Stable
+    Environment :: Console
+    Intended Audience :: Developers
+    Intended Audience :: End Users/Desktop
+    Intended Audience :: System Administrators
+    License :: OSI Approved :: BSD License
+    Operating System :: OS Independent
+    Programming Language :: Python :: 2.7
+    Programming Language :: Python :: 3
+    Topic :: System
+    Topic :: Utilities
+
+[options]
+include_package_data = False
+zip_safe = True
+python_requires = >=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*
+packages =
+    cutils
+    cutils.util
+    cutils.crcmod
+    cutils.crcmod.python2
+    cutils.crcmod.python3
+
+[options.package_data]
+cutils.crcmod =
+    REUSE.toml
+
+[options.entry_points]
+console_scripts =
+    py-dos2unix = cutils.dos2unix:main
+    py-genpwd = cutils.genpwd:main
+    py-shasum = cutils.shasum:main
+    py-treesum = cutils.treesum:main
+
+
 [flake8]
 exclude =
     # Ignore the vendored crcmod2/crcmod sub-package