From c4bd3894e7cd0637276f9fe68d33d8c75291381b Mon Sep 17 00:00:00 2001 From: MvdS Date: Mon, 30 Jun 2025 11:50:44 +0200 Subject: [PATCH 1/2] Replace setup.py with pyproject.toml. --- pyproject.toml | 36 ++++++++++++++++++++++++++++++++++++ setup.py => setup-old.py | 2 +- 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100755 pyproject.toml rename setup.py => setup-old.py (89%) diff --git a/pyproject.toml b/pyproject.toml new file mode 100755 index 0000000..d51090b --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,36 @@ +[build-system] +requires = ["setuptools>=61.0"] +build-backend = "setuptools.build_meta" + +[tool.setuptools] +packages = ["WF4Py", "WF4Py.WFfiles"] + +[tool.setuptools.package-data] +WF4Py = ["*.txt", "*.h5"] + +[project] +name = "WF4Py" +version = "1.1.0" +authors = [ { name="Francesco Iacovelli", email="francesco.iacovelli@unige.ch" } ] +description = "Gravitational waves waveform models in pure Python language" +readme = "README.md" +license = "GPL-3.0-or-later" +keywords = ["gravitational waves","waveform"] +dependencies = ["numpy","scipy","h5py"] + +# See: https://pypi.org/pypi?:action=list_classifiers +classifiers = [ + "Development Status :: 3 - Alpha", + "Intended Audience :: Developers", + "Intended Audience :: Education", + "Intended Audience :: Science/Research", + "Natural Language :: English", + "Operating System :: OS Independent", + "Programming Language :: Python :: 3", + "Topic :: Scientific/Engineering :: Physics", + "Topic :: Scientific/Engineering :: Astronomy", + ] + +[project.urls] +GitHub = "https://github.com/CosmoStatGW/WF4Py" +ReadTheDocs = "https://wf4py.readthedocs.io" diff --git a/setup.py b/setup-old.py similarity index 89% rename from setup.py rename to setup-old.py index 17d1321..107a615 100644 --- a/setup.py +++ b/setup-old.py @@ -14,7 +14,7 @@ url='https://github.com/CosmoStatGW/WF4Py', license='GNU GPLv3', python_requires='>=3.7', - packages=['WF4Py', 'WF4Py/waveform_models'],#setuptools.find_packages(), + packages=['WF4Py', 'WF4Py/waveform_models'], # setuptools.find_packages(), include_package_data=True, package_data={'':['WFfiles/*.txt', 'WFfiles/*.h5']}, install_requires=['numpy', 'scipy', 'h5py'], From aaa28ee28090622d77d729dabc5c12679d22e036 Mon Sep 17 00:00:00 2001 From: MvdS Date: Mon, 30 Jun 2025 12:19:24 +0200 Subject: [PATCH 2/2] pyproject.toml: add WF4Py.waveform_models to packages. --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index d51090b..d3863c9 100755 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ requires = ["setuptools>=61.0"] build-backend = "setuptools.build_meta" [tool.setuptools] -packages = ["WF4Py", "WF4Py.WFfiles"] +packages = ["WF4Py", "WF4Py.waveform_models", "WF4Py.WFfiles"] [tool.setuptools.package-data] WF4Py = ["*.txt", "*.h5"]