]> git.ipfire.org Git - thirdparty/python-fints.git/commitdiff
Update packaging (thanks @cdce8p)
authorRaphael Michel <michel@rami.io>
Wed, 2 Jul 2025 16:48:32 +0000 (18:48 +0200)
committerRaphael Michel <michel@rami.io>
Wed, 2 Jul 2025 16:48:32 +0000 (18:48 +0200)
.github/workflows/tests.yml
MANIFEST.in
README.md
pyproject.toml [new file with mode: 0644]
setup.py [deleted file]

index 16d0fda6dd34d184994dbbec2d14461d243da25d..e5cff8bb1f315d26a0ebbb9e582eca07624a14af 100644 (file)
@@ -24,7 +24,7 @@ jobs:
         with:
           python-version: ${{ matrix.python-version }}
       - name: Install Dependencies
-        run: python -m pip install -U pip wheel coverage codecov
+        run: python -m pip install -U pip coverage codecov
       - name: Install Dependencies
         run: python -m pip install -Ur requirements.txt pytest pytest-mock
       - name: Run tests
index 4544520036abb0d582851fcc0ac183dab2827cbe..22d641ff6a5422ece4ed4a4a070bfde9d53b64d9 100644 (file)
@@ -1,2 +1 @@
 recursive-include tests *.py *.bin
-include LICENSE.txt
index 256b0be7df8179e3c971b1816dce3f1581576a18..8363fbbc546ee106d3296c41026f42dcb1083fad 100644 (file)
--- a/README.md
+++ b/README.md
@@ -39,4 +39,4 @@ and features major contributions by Henryk Plötz.
 Further thanks for improving this library go out to:
 Daniel Nowak, Patrick Braune, Mathias Dalheimer, Christopher Grebs, Markus Schindler, and many more.
 
-License: LGPL
+License: LGPL-3.0.-or-later
diff --git a/pyproject.toml b/pyproject.toml
new file mode 100644 (file)
index 0000000..708fb6a
--- /dev/null
@@ -0,0 +1,43 @@
+[build-system]
+build-backend = "setuptools.build_meta"
+requires = ["setuptools>=77.0"]
+
+[project]
+name = "fints"
+license = "LGPL-3.0-or-later"
+license-files = ["LICENSE.txt"]
+description = "Pure-python FinTS 3.0 (formerly known as HBCI) implementation"
+readme = "README.md"
+authors = [{ name = "Raphael Michel", email = "mail@raphaelmichel.de" }]
+keywords = [
+  "hbci",
+  "banking",
+  "fints",
+]
+classifiers = [
+  "Development Status :: 4 - Beta",
+  "Intended Audience :: Developers",
+  "Intended Audience :: Other Audience",
+  "Programming Language :: Python :: 3.9",
+  "Programming Language :: Python :: 3.10",
+  "Programming Language :: Python :: 3.11",
+  "Programming Language :: Python :: 3.12",
+]
+requires-python = ">=3.9"
+dependencies = [
+  "bleach",
+  "mt-940",
+  "requests",
+  "sepaxml~=2.1",
+  "enum-tools~=0.12.0",
+]
+dynamic = ["version"]
+
+[project.urls]
+"Homepage" = "https://github.com/raphaelm/python-fints"
+
+[tool.setuptools.dynamic]
+version = { attr = "fints.version" }
+
+[tool.setuptools.packages.find]
+include = ["fints*"]
diff --git a/setup.py b/setup.py
deleted file mode 100644 (file)
index 017520d..0000000
--- a/setup.py
+++ /dev/null
@@ -1,47 +0,0 @@
-from codecs import open
-from os import path
-
-from fints import version
-from setuptools import find_packages, setup
-
-here = path.abspath(path.dirname(__file__))
-
-try:
-    # Get the long description from the relevant file
-    with open(path.join(here, 'README.md'), encoding='utf-8') as f:
-        long_description = f.read()
-except:
-    long_description = ''
-
-setup(
-    name='fints',
-    version=version,
-    description='Pure-python FinTS 3.0 (formerly known as HBCI) implementation',
-    long_description=long_description,
-    long_description_content_type='text/markdown',
-    url='https://github.com/raphaelm/python-fints',
-    author='Raphael Michel',
-    author_email='mail@raphaelmichel.de',
-    license='GNU Lesser General Public License v3 (LGPLv3)',
-    classifiers=[
-        'Development Status :: 4 - Beta',
-        'Intended Audience :: Developers',
-        'Intended Audience :: Other Audience',
-        'License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)',
-        'Programming Language :: Python :: 3.9',
-        'Programming Language :: Python :: 3.10',
-        'Programming Language :: Python :: 3.11',
-        'Programming Language :: Python :: 3.12',
-    ],
-
-    keywords='hbci banking fints',
-    install_requires=[
-        'bleach',
-        'mt-940',
-        'requests',
-        'sepaxml~=2.1',
-        'enum-tools~=0.12.0',
-    ],
-
-    packages=find_packages(include=['fints', 'fints.*']),
-)