diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 16d0fda..e5cff8b 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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 diff --git a/MANIFEST.in b/MANIFEST.in index 4544520..22d641f 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,2 +1 @@ recursive-include tests *.py *.bin -include LICENSE.txt diff --git a/README.md b/README.md index 0d07b02..ec7c13e 100644 --- a/README.md +++ b/README.md @@ -32,4 +32,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 index 0000000..708fb6a --- /dev/null +++ b/pyproject.toml @@ -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 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.*']), -)