gafusion / omas

Ordered Multidimensional Array Structure
http://gafusion.github.io/omas
MIT License
30 stars 14 forks source link

refactor(build): change setup.py to pyproject.toml and supress cython warning #293

Closed hassec closed 1 month ago

hassec commented 4 months ago

I was motivated to fix #289, but when starting to work on the old setup.py I was curious if you would be open to a bit of a modernisation, see below:

Changes in this PR:

This PR also removes the need to manually traverse the file hierarchy to create packages and package_data lists. This is now automatically handled.

Editable installs still work by simply running:

pip install -e .

To build a sdist package using build run:

python -m build --sdist

from the root of the project. This creates an isolated virtual environment to build the sdist according to the spec in pyproject.toml.

orso82 commented 4 months ago

We're certainly very open!!! Thank you @hassec for taking a deep dive into the setup files of OMAS!!

Perhaps @kalling can comment here. I have not kept up to date with the latest and greatest ways to setup a Python package.

github-actions[bot] commented 2 months ago

Stale pull request message