details:   
https://code.tryton.org/contrib/tryton-filestore-cellar/commit/89a3b6a4dfd0
branch:    default
user:      Cédric Krier <[email protected]>
date:      Thu Mar 19 09:37:20 2026 +0100
description:
        Upgrade to pyproject using hatchling as build-system
diffstat:

 .gitlab-ci.yml             |   4 ++--
 .hgignore                  |   7 +++++++
 CHANGELOG                  |   2 ++
 COPYRIGHT                  |   4 ++--
 MANIFEST.in                |   4 ----
 pyproject.toml             |  42 ++++++++++++++++++++++++++++++++++++++++++
 setup.py                   |  44 --------------------------------------------
 tryton_filestore_cellar.py |   2 ++
 8 files changed, 57 insertions(+), 52 deletions(-)

diffs (157 lines):

diff -r 84df78365cbc -r 89a3b6a4dfd0 .gitlab-ci.yml
--- a/.gitlab-ci.yml    Sun Nov 26 16:20:00 2023 +0100
+++ b/.gitlab-ci.yml    Thu Mar 19 09:37:20 2026 +0100
@@ -25,7 +25,7 @@
 check-dist:
   extends: .check
   before_script:
-    - pip install twine
+    - pip install build twine
   script:
-    - python setup.py sdist
+    - pyproject-build
     - twine check dist/*
diff -r 84df78365cbc -r 89a3b6a4dfd0 .hgignore
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/.hgignore Thu Mar 19 09:37:20 2026 +0100
@@ -0,0 +1,7 @@
+syntax: glob
+*.py[cdo]
+*.egg-info
+dist/
+build/
+.tox/
+.coverage
diff -r 84df78365cbc -r 89a3b6a4dfd0 CHANGELOG
--- a/CHANGELOG Sun Nov 26 16:20:00 2023 +0100
+++ b/CHANGELOG Thu Mar 19 09:37:20 2026 +0100
@@ -1,2 +1,4 @@
+* Upgrade to pyproject
+
 Version 0.1.0 - 2023-11-26
 * Initial release
diff -r 84df78365cbc -r 89a3b6a4dfd0 COPYRIGHT
--- a/COPYRIGHT Sun Nov 26 16:20:00 2023 +0100
+++ b/COPYRIGHT Thu Mar 19 09:37:20 2026 +0100
@@ -1,5 +1,5 @@
-Copyright (c) 2023 B2CK.
-Copyright (c) 2023 Cédric Krier.
+Copyright (c) 2023 B2CK SRL
+Copyright (c) 2023 Cédric Krier <[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 84df78365cbc -r 89a3b6a4dfd0 MANIFEST.in
--- a/MANIFEST.in       Sun Nov 26 16:20:00 2023 +0100
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,4 +0,0 @@
-include CHANGELOG
-include COPYRIGHT
-include LICENSE
-include README.rst
diff -r 84df78365cbc -r 89a3b6a4dfd0 pyproject.toml
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/pyproject.toml    Thu Mar 19 09:37:20 2026 +0100
@@ -0,0 +1,42 @@
+[build-system]
+requires = ['hatchling >= 1', 'hatch-tryton']
+build-backend = 'hatchling.build'
+
+[project]
+name = 'tryton-filestore-cellar'
+dynamic = ['version', 'authors']
+dependencies = [
+    'boto',
+    'trytond > 6.0',
+    ]
+maintainers = [
+    {name = "Cédric Krier", email = "[email protected]"},
+    ]
+description = "Store Tryton files on Cellar Storage Service"
+readme = 'README.rst'
+license = 'GPL-3.0-or-later'
+license-files = ['LICENSE', 'COPYRIGHT']
+keywords = ["tryton", "clever-cloud", "cellar", "storage"]
+classifiers = [
+    "Development Status :: 5 - Production/Stable",
+    "Framework :: Tryton",
+    "Intended Audience :: Developers",
+    "Topic :: Internet",
+    "Topic :: Software Development :: Libraries :: Python Modules",
+    ]
+
+[project.urls]
+homepage = "https://www.tryton.org/";
+changelog = 
"https://code.tryton.org/contrib/tryton-filestore-cellar/-/blob/branch/default/CHANGELOG";
+forum = "https://discuss.tryton.org/tags/filestore-cellar";
+issues = "https://bugs.tryton.org/tryton-filestore-cellar";
+repository = "https://code.tryton.org/contrib/tryton-filestore-cellar";
+
+[tool.hatch.version]
+path = 'tryton_filestore_cellar.py'
+
+[tool.hatch.build]
+include = ['tryton_filestore_cellar.py']
+
+[tool.hatch.metadata.hooks.tryton]
+copyright = 'COPYRIGHT'
diff -r 84df78365cbc -r 89a3b6a4dfd0 setup.py
--- a/setup.py  Sun Nov 26 16:20:00 2023 +0100
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,44 +0,0 @@
-# This file is part of filestore-cellar. 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 setup
-
-
-def read(fname):
-    return io.open(
-        os.path.join(os.path.dirname(__file__), fname),
-        'r', encoding='utf-8').read()
-
-
-setup(name='tryton-filestore-cellar',
-    version='0.1.1',
-    author='Tryton',
-    author_email='[email protected]',
-    description='Store Tryton files on Cellar Storage Service',
-    long_description=read('README.rst'),
-    url='https://pypi.org/project/tryton-filestore-cellar/',
-    download_url='https://downloads.tryton.org/tryton-filestore-cellar/',
-    project_urls={
-        "Bug Tracker": 'https://bugs.tryton.org/tryton-filestore-cellar',
-        "Forum": 'https://discuss.tryton.org/tags/filestore-cellar',
-        "Source Code": 'https://code.tryton.org/tryton-filestore-cellar',
-        },
-    py_modules=['tryton_filestore_cellar'],
-    platforms='Posix; MacOS X; Windows',
-    keywords='tryton clever cloud cellar storage',
-    classifiers=[
-        'Framework :: Tryton',
-        'Intended Audience :: Developers',
-        'License :: OSI Approved :: GNU General Public License (GPL)',
-        'Operating System :: OS Independent',
-        'Programming Language :: Python :: 3',
-        'Topic :: Internet',
-        ],
-    license='GPL-3',
-    install_requires=[
-        'boto',
-        'trytond > 6.0',
-        ],
-    )
diff -r 84df78365cbc -r 89a3b6a4dfd0 tryton_filestore_cellar.py
--- a/tryton_filestore_cellar.py        Sun Nov 26 16:20:00 2023 +0100
+++ b/tryton_filestore_cellar.py        Thu Mar 19 09:37:20 2026 +0100
@@ -9,6 +9,8 @@
 from trytond.config import config
 from trytond.filestore import FileStore
 
+__version__ = '0.1.1'
+
 
 class FileStoreCellar(FileStore):
 

Reply via email to