From 6cb449ad71dcc1e0d3b29abeb6894b0b74bcfc6d Mon Sep 17 00:00:00 2001 From: Sebastian Ehlert <28669218+awvwgk@users.noreply.github.com> Date: Sun, 15 Sep 2024 11:08:00 +0200 Subject: [PATCH] Update for Python 3.13 (#260) --- .github/workflows/fortran-build.yml | 2 +- python/dftd4/meson.build | 1 + python/pyproject.toml | 3 ++- python/setup.py | 22 ---------------------- 4 files changed, 4 insertions(+), 24 deletions(-) delete mode 100644 python/setup.py diff --git a/.github/workflows/fortran-build.yml b/.github/workflows/fortran-build.yml index 7b417ea9d..40550fc83 100644 --- a/.github/workflows/fortran-build.yml +++ b/.github/workflows/fortran-build.yml @@ -246,7 +246,7 @@ jobs: matrix: os: [ubuntu-latest] gcc_v: [10] - python_v: ['3.7', '3.8', '3.9', '3.10'] + python_v: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12'] env: FC: gfortran diff --git a/python/dftd4/meson.build b/python/dftd4/meson.build index dcd4f75ba..0233ec4c3 100644 --- a/python/dftd4/meson.build +++ b/python/dftd4/meson.build @@ -21,6 +21,7 @@ python = pymod.find_installation( get_option('python_version'), modules: [ 'cffi', + 'setuptools', ], ) python_dep = python.dependency(required: true) diff --git a/python/pyproject.toml b/python/pyproject.toml index 05056ec39..9a6efef79 100644 --- a/python/pyproject.toml +++ b/python/pyproject.toml @@ -1,5 +1,5 @@ [build-system] -requires = ["meson-python", "cffi"] +requires = ["meson-python", "cffi", "setuptools"] build-backend = "mesonpy" [project] @@ -19,6 +19,7 @@ classifiers = [ "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", "Topic :: Scientific/Engineering :: Chemistry", "Topic :: Scientific/Engineering :: Physics", ] diff --git a/python/setup.py b/python/setup.py deleted file mode 100644 index b8c291929..000000000 --- a/python/setup.py +++ /dev/null @@ -1,22 +0,0 @@ -# This file is part of dftd4. -# SPDX-Identifier: LGPL-3.0-or-later -# -# dftd4 is free software: you can redistribute it and/or modify it under -# the terms of the Lesser GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# dftd4 is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# Lesser GNU General Public License for more details. -# -# You should have received a copy of the Lesser GNU General Public License -# along with dftd4. If not, see . - -from setuptools import setup - -setup( - cffi_modules=["ffibuilder.py:ffibuilder"], - package_data={"dftd4": ["_libdftd4*.so", "*.toml", "*.json"]}, -)