details:   
https://code.tryton.org/communication/authentication_none/commit/b7c7888e359c
branch:    default
user:      Cédric Krier <[email protected]>
date:      Thu Sep 17 11:23:37 2026 +0200
description:
        Update packaging to use pyproject and hatchling
diffstat:

 .gitlab-ci.yml |   4 +-
 COPYRIGHT      |   2 +-
 pyproject.toml |  55 ++++++++++++++++++++++++++++++++++++++++++
 setup.py       |  75 ----------------------------------------------------------
 tryton.cfg     |   1 +
 5 files changed, 59 insertions(+), 78 deletions(-)

diffs (169 lines):

diff -r fa6f6cd4039b -r b7c7888e359c .gitlab-ci.yml
--- a/.gitlab-ci.yml    Fri Dec 19 19:14:12 2025 +0100
+++ b/.gitlab-ci.yml    Thu Sep 17 11:23:37 2026 +0200
@@ -25,7 +25,7 @@
 check-dist:
   extends: .check
   before_script:
-    - pip install twine
+    - pip install build twine
   script:
-    - python setup.py sdist
+    - python -m build
     - twine check dist/*
diff -r fa6f6cd4039b -r b7c7888e359c COPYRIGHT
--- a/COPYRIGHT Fri Dec 19 19:14:12 2025 +0100
+++ b/COPYRIGHT Thu Sep 17 11:23:37 2026 +0200
@@ -1,4 +1,4 @@
-Copyright (C) 2020 David Harper.
+Copyright (C) 2026 David Harper <[email protected]>
 
 This program is free software: you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
diff -r fa6f6cd4039b -r b7c7888e359c pyproject.toml
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/pyproject.toml    Thu Sep 17 11:23:37 2026 +0200
@@ -0,0 +1,55 @@
+[build-system]
+requires = ['hatchling >= 1', 'hatch-tryton']
+build-backend = 'hatchling.build'
+
+[project]
+name = 'trytond_authentication_none'
+dynamic = ['version', 'dependencies', 'authors', 'readme']
+requires-python = '>=3.5'
+maintainers = [
+    {name = "Tryton", email = "[email protected]"},
+    ]
+description = "Tryton module to authenticate using username only"
+license = 'GPL-3.0-or-later'
+license-files = ['LICENSE', 'icons/LICENSE', 'COPYRIGHT']
+keywords = ["tryton", "authentication", "none"]
+classifiers = [
+    "Development Status :: 5 - Production/Stable",
+    "Environment :: Plugins",
+    "Framework :: Tryton",
+    "Topic :: Office/Business",
+    "Topic :: Software Development :: Libraries :: Python Modules",
+    ]
+
+[project.entry-points.'trytond.modules']
+authentication_none = 'trytond.modules.authentication_none'
+
+[project.urls]
+homepage = "https://www.tryton.org/";
+forum = "https://www.tryton.org/forum";
+repository = "https://code.tryton.org/communication/authentication_none";
+funding = "https://www.tryton.org/donate";
+
+[tool.hatch.build]
+include = [
+    '**/tryton.cfg',
+    '**/*.py',
+    '**/*.xml',
+    'view/**/*.xml',
+    'locale/**/*.po',
+    '**/*.fodt',
+    'icons/**/*.svg',
+    'tests/**/*.rst',
+    'tests/**/*.json',
+    ]
+exclude = ['doc']
+
+[tool.hatch.build.targets.wheel.sources]
+"" = "trytond/modules/authentication_none"
+
+[tool.hatch.metadata.hooks.tryton]
+dependencies = [
+    'trytond >= 5.0',
+    ]
+copyright = 'COPYRIGHT'
+readme = 'README.rst'
diff -r fa6f6cd4039b -r b7c7888e359c setup.py
--- a/setup.py  Fri Dec 19 19:14:12 2025 +0100
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,75 +0,0 @@
-#!/usr/bin/env python3
-# The COPYRIGHT file at the top level of this repository contains the full
-# copyright notices and license terms.
-
-import io
-import os
-
-from setuptools import find_packages, setup
-
-
-def read(fname):
-    return io.open(
-        os.path.join(os.path.dirname(__file__), fname),
-        'r', encoding='utf-8').read()
-
-
-setup(name='tpf_authentication_none',
-    version='0.0.1',
-    description='Tryton module to authenticate using username only',
-    long_description=read('README.rst'),
-    author='Tryton Foundation',
-    author_email='[email protected]',
-    url='http://foundation.tryton.org/',
-    keywords='tryton authentication none',
-    package_dir={'trytond.modules.authentication_none': '.'},
-    packages=(
-        ['trytond.modules.authentication_none']
-        + ['trytond.modules.authentication_none.%s' % p
-            for p in find_packages()]
-        ),
-    package_data={
-        'trytond.modules.authentication_none': ['tryton.cfg'],
-        },
-    classifiers=[
-        'Development Status :: 5 - Production/Stable',
-        'Environment :: Plugins',
-        'Framework :: Tryton',
-        'Intended Audience :: Developers',
-        'Intended Audience :: Financial and Insurance Industry',
-        'Intended Audience :: Legal Industry',
-        'License :: OSI Approved :: '
-        'GNU General Public License v3 or later (GPLv3+)',
-        'Natural Language :: Bulgarian',
-        'Natural Language :: Catalan',
-        'Natural Language :: Czech',
-        'Natural Language :: Dutch',
-        'Natural Language :: English',
-        'Natural Language :: Finnish',
-        'Natural Language :: French',
-        'Natural Language :: German',
-        'Natural Language :: Hungarian',
-        'Natural Language :: Indonesian',
-        'Natural Language :: Italian',
-        'Natural Language :: Persian',
-        'Natural Language :: Polish',
-        'Natural Language :: Portuguese (Brazilian)',
-        'Natural Language :: Russian',
-        'Natural Language :: Slovenian',
-        'Natural Language :: Spanish',
-        'Natural Language :: Turkish',
-        'Operating System :: OS Independent',
-        'Programming Language :: Python :: 3',
-        'Programming Language :: Python :: Implementation :: CPython',
-        'Programming Language :: Python :: Implementation :: PyPy',
-        'Topic :: Office/Business',
-        ],
-    license='GPL-3',
-    python_requires='>=3.5',
-    install_requires=['trytond>=5.0'],
-    zip_safe=False,
-    entry_points="""
-    [trytond.modules]
-    authentication_none = trytond.modules.authentication_none
-    """,
-    )
diff -r fa6f6cd4039b -r b7c7888e359c tryton.cfg
--- a/tryton.cfg        Fri Dec 19 19:14:12 2025 +0100
+++ b/tryton.cfg        Thu Sep 17 11:23:37 2026 +0200
@@ -1,4 +1,5 @@
 [tryton]
+version=0.0.1
 depends:
     ir
     res

Reply via email to