From e04983bfa386d99c0a8e0222fee2cae8c1b2b7ce Mon Sep 17 00:00:00 2001 From: Jonathan Shimwell Date: Thu, 15 Aug 2024 17:25:52 +0100 Subject: [PATCH 1/2] moving setup to pyproject.toml --- pyproject.toml | 30 ++++++++++++++++++++++++++++++ setup.cfg | 33 --------------------------------- setup.py | 4 ---- 3 files changed, 30 insertions(+), 37 deletions(-) delete mode 100644 setup.cfg delete mode 100644 setup.py diff --git a/pyproject.toml b/pyproject.toml index a7ce20481..39c4b1b87 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,5 +6,35 @@ requires = [ ] build-backend = "setuptools.build_meta" +[project] +name = "festim" +authors = [ + {name = "Remi Delaporte-Mathurin", email = "rdelaportemathurin@gmail.com"}, +] +description = "Finite element simulations of hydrogen transport" +license = {file = "LICENSE"} +classifiers = [ + "Natural Language :: English", + "Topic :: Scientific/Engineering", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.6", + "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "License :: OSI Approved :: Apache Software License", + "Operating System :: OS Independent", +] +requires-python = ">=3.6" +dynamic = ["version"] + +[project.optional-dependencies] +tests = ["pytest>=5.4.3"] + +[project.urls] +Repository = "https://github.com/festim-dev/FESTIM" +Issues = "https://github.com/festim-dev/FESTIM/issues" + [tool.setuptools_scm] write_to = "festim/_version.py" diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index dfb5b643c..000000000 --- a/setup.cfg +++ /dev/null @@ -1,33 +0,0 @@ - - -[metadata] -name = FESTIM -author = Remi Delaporte-Mathurin -author_email = rdelaportemathurin@gmail.com -description = Finite element simulations of hydrogen transport -long_description = file: README.md -long_description_content_type = text/markdown -url = https://github.com/festim-dev/FESTIM -license = Apache-2.0 -license_file = LICENSE -classifiers = - Natural Language :: English - Topic :: Scientific/Engineering - Programming Language :: Python :: 3 - Programming Language :: Python :: 3.6 - Programming Language :: Python :: 3.7 - Programming Language :: Python :: 3.8 - Programming Language :: Python :: 3.9 - License :: OSI Approved :: Apache Software License - Operating System :: OS Independent -project_urls = - Source = https://github.com/festim-dev/FESTIM - Tracker = https://github.com/festim-dev/FESTIM/issues - -[options] -packages = find: -python_requires= >=3.6 - -[options.extras_require] -tests = - pytest >= 5.4.3 diff --git a/setup.py b/setup.py deleted file mode 100644 index 1abbd068c..000000000 --- a/setup.py +++ /dev/null @@ -1,4 +0,0 @@ -import setuptools - -if __name__ == "__main__": - setuptools.setup() From 68bc0a22533c37d197da1ef0816059dc6b079381 Mon Sep 17 00:00:00 2001 From: Jonathan Shimwell Date: Thu, 15 Aug 2024 17:33:28 +0100 Subject: [PATCH 2/2] pep8 format --- festim/boundary_conditions/fluxes/surface_kinetics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/festim/boundary_conditions/fluxes/surface_kinetics.py b/festim/boundary_conditions/fluxes/surface_kinetics.py index 77df91caa..53bf3f54f 100644 --- a/festim/boundary_conditions/fluxes/surface_kinetics.py +++ b/festim/boundary_conditions/fluxes/surface_kinetics.py @@ -96,7 +96,7 @@ def __init__( J_vs, surfaces, initial_condition, - **prms + **prms, ) -> None: super().__init__(surfaces=surfaces, field=0) self.k_sb = k_sb