SNEWS2 / BEMEWS

A python module for calculating the Earth-matter Effect. Works standalone or with SNEWPY
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

modernize build infrastructure #4

Closed JostMigenda closed 2 months ago

JostMigenda commented 2 months ago

Python packaging documentation explicitly warns that commands like python setup.py sdist bdist_wheel are deprecated and “MUST NOT be run anymore”. The recommended replacement is the build module. This also ensures more reproducible builds by requiring build dependencies to be explicitly declared (in a pyproject.toml file) and building the project in an isolated virtual environment.

This PR updates the build infrastructure accordingly. It also moves all package metadata to the pyproject.toml file and leaves setup.py to focus solely on the code needed to build the binary extension.

(This is laying the groundwork for #3, which will be in a separate PR for clarity.)