details: https://code.tryton.org/coda/commit/34dc8bf4be6e
branch: default
user: Cédric Krier <[email protected]>
date: Mon Mar 16 13:53:02 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 | 39 +++++++++++++++++++++++++++++++++++++
setup.py | 60 ----------------------------------------------------------
7 files changed, 51 insertions(+), 68 deletions(-)
diffs (160 lines):
diff -r ea56d3ae7236 -r 34dc8bf4be6e .gitlab-ci.yml
--- a/.gitlab-ci.yml Mon Nov 24 13:46:36 2025 +0100
+++ b/.gitlab-ci.yml Mon Mar 16 13:53:02 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 ea56d3ae7236 -r 34dc8bf4be6e .hgignore
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/.hgignore Mon Mar 16 13:53:02 2026 +0100
@@ -0,0 +1,7 @@
+syntax: glob
+*.py[cdo]
+*.egg-info
+dist/
+build/
+.tox/
+.coverage
diff -r ea56d3ae7236 -r 34dc8bf4be6e CHANGELOG
--- a/CHANGELOG Mon Nov 24 13:46:36 2025 +0100
+++ b/CHANGELOG Mon Mar 16 13:53:02 2026 +0100
@@ -1,3 +1,4 @@
+* Upgrade to pyproject
* Add support for Python 3.14
* Add support for Python 3.13
diff -r ea56d3ae7236 -r 34dc8bf4be6e COPYRIGHT
--- a/COPYRIGHT Mon Nov 24 13:46:36 2025 +0100
+++ b/COPYRIGHT Mon Mar 16 13:53:02 2026 +0100
@@ -1,5 +1,5 @@
-Copyright (c) 2017-2024, Cédric Krier
-Copyright (c) 2017-2024, B2CK
+Copyright (c) 2017-2024 Cédric Krier <[email protected]>
+Copyright (c) 2017-2024 B2CK SRL
All rights reserved.
Redistribution and use in source and binary forms, with or without
diff -r ea56d3ae7236 -r 34dc8bf4be6e MANIFEST.in
--- a/MANIFEST.in Mon Nov 24 13:46:36 2025 +0100
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,4 +0,0 @@
-include COPYRIGHT
-include README.rst
-include CHANGELOG
-include coda/CODA.txt
diff -r ea56d3ae7236 -r 34dc8bf4be6e pyproject.toml
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/pyproject.toml Mon Mar 16 13:53:02 2026 +0100
@@ -0,0 +1,39 @@
+[build-system]
+requires = ['hatchling >= 1', 'hatch-tryton']
+build-backend = 'hatchling.build'
+
+[project]
+name = 'febelfin-coda'
+dynamic = ['version', 'authors']
+requires-python = '>=3.5'
+maintainers = [
+ {name = "Tryton", email = "[email protected]"},
+ ]
+description = "A module to parse CODA files"
+readme = 'README.rst'
+license = 'BSD-3-Clause'
+license-files = ['COPYRIGHT']
+keywords = ["CODA", "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/coda/-/blob/branch/default/CHANGELOG"
+forum = "https://discuss.tryton.org/tags/coda"
+issues = "https://bugs.tryton.org/coda"
+repository = "https://code.tryton.org/coda"
+
+[tool.hatch.version]
+path = 'coda/__init__.py'
+
+[tool.hatch.build]
+packages = ['coda']
+
+[tool.hatch.metadata.hooks.tryton]
+copyright = 'COPYRIGHT'
diff -r ea56d3ae7236 -r 34dc8bf4be6e setup.py
--- a/setup.py Mon Nov 24 13:46:36 2025 +0100
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,60 +0,0 @@
-#!/usr/bin/env python
-# This file is part of febelfin-coda. 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('coda', '__init__.py'))
- return re.search("__version__ = '([0-9.]*)'", init).group(1)
-
-
-setup(name='febelfin-coda',
- version=get_version(),
- description='A module to parse CODA files',
- long_description=read('README.rst'),
- author='Tryton',
- author_email='[email protected]',
- url='https://pypi.org/project/febelfin-coda/',
- download_url='https://downloads.tryton.org/coda/',
- project_urls={
- "Bug Tracker": 'https://bugs.tryton.org/coda',
- "Forum": 'https://discuss.tryton.org/tags/coda',
- "Source Code": 'https://code.tryton.org/coda',
- },
- keywords='CODA parser',
- packages=find_packages(),
- package_data={
- 'coda': ['CODA.txt'],
- },
- python_requires='>=3.5',
- classifiers=[
- 'Intended Audience :: Developers',
- 'License :: OSI Approved :: BSD License',
- 'Operating System :: OS Independent',
- 'Programming Language :: Python :: 3',
- 'Programming Language :: Python :: 3.5',
- 'Programming Language :: Python :: 3.6',
- 'Programming Language :: Python :: 3.7',
- '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',
- )