details:   
https://code.tryton.org/contrib/tryton-filestore-gs/commit/4d169cb89dc0
branch:    default
user:      Cédric Krier <[email protected]>
date:      Thu Mar 19 09:35:17 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_gs.py |   2 ++
 8 files changed, 57 insertions(+), 52 deletions(-)

diffs (158 lines):

diff -r 5ed51d15b64b -r 4d169cb89dc0 .gitlab-ci.yml
--- a/.gitlab-ci.yml    Mon Feb 12 15:51:45 2024 +0100
+++ b/.gitlab-ci.yml    Thu Mar 19 09:35:17 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 5ed51d15b64b -r 4d169cb89dc0 .hgignore
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/.hgignore Thu Mar 19 09:35:17 2026 +0100
@@ -0,0 +1,7 @@
+syntax: glob
+*.py[cdo]
+*.egg-info
+dist/
+build/
+.tox/
+.coverage
diff -r 5ed51d15b64b -r 4d169cb89dc0 CHANGELOG
--- a/CHANGELOG Mon Feb 12 15:51:45 2024 +0100
+++ b/CHANGELOG Thu Mar 19 09:35:17 2026 +0100
@@ -1,3 +1,5 @@
+* Upgrade to pyproject
+
 Version 0.2.0 - 2020-12-31
 * Connect to bucket when used
 
diff -r 5ed51d15b64b -r 4d169cb89dc0 COPYRIGHT
--- a/COPYRIGHT Mon Feb 12 15:51:45 2024 +0100
+++ b/COPYRIGHT Thu Mar 19 09:35:17 2026 +0100
@@ -1,5 +1,5 @@
-Copyright (c) 2018-2020 B2CK.
-Copyright (c) 2018-2020 Cédric Krier.
+Copyright (c) 2018-2020 B2CK SRL
+Copyright (c) 2018-2020 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 5ed51d15b64b -r 4d169cb89dc0 MANIFEST.in
--- a/MANIFEST.in       Mon Feb 12 15:51:45 2024 +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 5ed51d15b64b -r 4d169cb89dc0 pyproject.toml
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/pyproject.toml    Thu Mar 19 09:35:17 2026 +0100
@@ -0,0 +1,42 @@
+[build-system]
+requires = ['hatchling >= 1', 'hatch-tryton']
+build-backend = 'hatchling.build'
+
+[project]
+name = 'tryton-filestore-gs'
+dynamic = ['version', 'authors']
+dependencies = [
+    'google-cloud-storage >= 1.31.0',
+    'trytond > 4.2',
+    ]
+maintainers = [
+    {name = "Cédric Krier", email = "[email protected]"},
+    ]
+description = "Store Tryton files on Google Cloud Storage"
+readme = 'README.rst'
+license = 'GPL-3.0-or-later'
+license-files = ['LICENSE', 'COPYRIGHT']
+keywords = ["tryton", "google cloud", "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-gs/-/blob/branch/default/CHANGELOG";
+forum = "https://discuss.tryton.org/tags/filestore-gs";
+issues = "https://bugs.tryton.org/tryton-filestore-gs";
+repository = "https://code.tryton.org/contrib/tryton-filestore-gs";
+
+[tool.hatch.version]
+path = 'tryton_filestore_gs.py'
+
+[tool.hatch.build]
+include = ['tryton_filestore_gs.py']
+
+[tool.hatch.metadata.hooks.tryton]
+copyright = 'COPYRIGHT'
diff -r 5ed51d15b64b -r 4d169cb89dc0 setup.py
--- a/setup.py  Mon Feb 12 15:51:45 2024 +0100
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,44 +0,0 @@
-# This file is part of filestore-gs. 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-gs',
-    version='0.2.1',
-    author='Tryton',
-    author_email='[email protected]',
-    description='Store Tryton files on Google Cloud Storage',
-    long_description=read('README.rst'),
-    url='https://pypi.org/project/tryton-filestore-gs/',
-    download_url='https://downloads.tryton.org/tryton-filestore-gs/',
-    project_urls={
-        "Bug Tracker": 'https://bugs.tryton.org/tryton-filestore-gs',
-        "Forum": 'https://discuss.tryton.org/tags/filestore-gs',
-        "Source Code": 'https://code.tryton.org/tryton-filestore-gs',
-        },
-    py_modules=['tryton_filestore_gs'],
-    platforms='Posix; MacOS X; Windows',
-    keywords='tryton google cloud 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=[
-        'google-cloud-storage >= 1.31.0',
-        'trytond > 4.2',
-        ],
-    )
diff -r 5ed51d15b64b -r 4d169cb89dc0 tryton_filestore_gs.py
--- a/tryton_filestore_gs.py    Mon Feb 12 15:51:45 2024 +0100
+++ b/tryton_filestore_gs.py    Thu Mar 19 09:35:17 2026 +0100
@@ -7,6 +7,8 @@
 from trytond.config import config
 from trytond.filestore import FileStore
 
+__version__ = '0.2.1'
+
 
 class FileStoreGS(FileStore):
 

Reply via email to