details:   https://code.tryton.org/aeb43/commit/8ba120f246cf
branch:    default
user:      Cédric Krier <[email protected]>
date:      Mon Mar 16 14:35:10 2026 +0100
description:
        Upgrade to pyproject using hatchling as build-system
diffstat:

 .gitlab-ci.yml |   4 ++--
 .hgignore      |   7 +++++++
 CHANGELOG      |   1 +
 COPYRIGHT      |   4 ++--
 MANIFEST.in    |   4 ----
 pyproject.toml |  42 ++++++++++++++++++++++++++++++++++++++++++
 setup.py       |  58 ----------------------------------------------------------
 7 files changed, 54 insertions(+), 66 deletions(-)

diffs (161 lines):

diff -r 2a4fee91c9c7 -r 8ba120f246cf .gitlab-ci.yml
--- a/.gitlab-ci.yml    Mon Nov 24 13:44:30 2025 +0100
+++ b/.gitlab-ci.yml    Mon Mar 16 14:35:10 2026 +0100
@@ -25,9 +25,9 @@
 check-dist:
   extends: .check
   before_script:
-    - pip install twine
+    - pip install build twine
   script:
-    - python setup.py sdist
+    - pyproject-build
     - twine check dist/*
 
 .test:
diff -r 2a4fee91c9c7 -r 8ba120f246cf .hgignore
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/.hgignore Mon Mar 16 14:35:10 2026 +0100
@@ -0,0 +1,7 @@
+syntax: glob
+*.py[cdo]
+*.egg-info
+dist/
+build/
+.tox/
+.coverage
diff -r 2a4fee91c9c7 -r 8ba120f246cf CHANGELOG
--- a/CHANGELOG Mon Nov 24 13:44:30 2025 +0100
+++ b/CHANGELOG Mon Mar 16 14:35:10 2026 +0100
@@ -1,3 +1,4 @@
+* Upgrade to pyproject
 * Add support for Python 3.14
 * Add support for Python 3.13
 
diff -r 2a4fee91c9c7 -r 8ba120f246cf COPYRIGHT
--- a/COPYRIGHT Mon Nov 24 13:44:30 2025 +0100
+++ b/COPYRIGHT Mon Mar 16 14:35:10 2026 +0100
@@ -1,5 +1,5 @@
-Copyright (c) 2023-2024, Cédric Krier
-Copyright (c) 2023-2024, B2CK
+Copyright (c) 2023-2024 Cédric Krier <[email protected]>
+Copyright (c) 2023-2024 B2CK SRL
 All rights reserved.
 
 Redistribution and use in source and binary forms, with or without
diff -r 2a4fee91c9c7 -r 8ba120f246cf MANIFEST.in
--- a/MANIFEST.in       Mon Nov 24 13:44:30 2025 +0100
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,4 +0,0 @@
-include COPYRIGHT
-include README.rst
-include CHANGELOG
-include aeb43/aeb43.txt
diff -r 2a4fee91c9c7 -r 8ba120f246cf pyproject.toml
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/pyproject.toml    Mon Mar 16 14:35:10 2026 +0100
@@ -0,0 +1,42 @@
+[build-system]
+requires = ['hatchling >= 1', 'hatch-tryton']
+build-backend = 'hatchling.build'
+
+[project]
+name = 'aeb43'
+dynamic = ['version', 'authors']
+dependencies = [
+    'python-stdnum',
+    ]
+requires-python = '>=3.8'
+maintainers = [
+    {name = "Tryton", email = "[email protected]"},
+    ]
+description = "A module to parse AEB43 files"
+readme = 'README.rst'
+license = 'BSD-3-Clause'
+license-files = ['COPYRIGHT']
+keywords = ["AEB43", "parser"]
+classifiers = [
+    "Development Status :: 5 - Production/Stable",
+    "Intended Audience :: Developers",
+    "Topic :: Office/Business",
+    "Topic :: Software Development :: Libraries",
+    "Topic :: Utilities",
+    ]
+
+[project.urls]
+homepage = "https://www.tryton.org/";
+changelog = "https://code.tryton.org/aeb43/-/blob/branch/default/CHANGELOG";
+forum = "https://discuss.tryton.org/tags/aeb43";
+issues = "https://bugs.tryton.org/aeb43";
+repository = "https://code.tryton.org/aeb43";
+
+[tool.hatch.version]
+path = 'aeb43/__init__.py'
+
+[tool.hatch.build]
+packages = ['aeb43']
+
+[tool.hatch.metadata.hooks.tryton]
+copyright = 'COPYRIGHT'
diff -r 2a4fee91c9c7 -r 8ba120f246cf setup.py
--- a/setup.py  Mon Nov 24 13:44:30 2025 +0100
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,58 +0,0 @@
-#!/usr/bin/env python
-# This file is part of aeb43.  The COPYRIGHT file at the top level of
-# this repository contains the full copyright notices and license terms.
-import codecs
-import os
-import re
-
-from setuptools import find_packages, setup
-
-
-def read(fname):
-    return codecs.open(
-        os.path.join(os.path.dirname(__file__), fname), 'r', 'utf-8').read()
-
-
-def get_version():
-    init = read(os.path.join('aeb43', '__init__.py'))
-    return re.search("__version__ = '([0-9.]*)'", init).group(1)
-
-
-setup(name='aeb43',
-    version=get_version(),
-    description='A module to parse AEB43 files',
-    long_description=read('README.rst'),
-    author='Tryton',
-    author_email='[email protected]',
-    url='https://pypi.org/project/aeb43/',
-    download_url='https://downloads.tryton.org/aeb43/',
-    project_urls={
-        "Bug Tracker": 'https://bugs.tryton.org/aeb43',
-        "Forum": 'https://discuss.tryton.org/tags/aeb43',
-        "Source Code": 'https://code.tryton.org/aeb43',
-        },
-    keywords='AEB43 parser',
-    packages=find_packages(),
-    package_data={
-        'aeb43': ['AEB43.txt'],
-        },
-    python_requires='>=3.8',
-    install_requires=['python-stdnum'],
-    classifiers=[
-        'Intended Audience :: Developers',
-        'License :: OSI Approved :: BSD License',
-        'Operating System :: OS Independent',
-        'Programming Language :: Python :: 3',
-        '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 :: Office/Business',
-        'Topic :: Software Development :: Libraries',
-        'Topic :: Utilities',
-        ],
-    license='BSD',
-    )

Reply via email to