Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes in pyproject.toml #34

Merged
merged 2 commits into from
Jan 5, 2024
Merged

Fixes in pyproject.toml #34

merged 2 commits into from
Jan 5, 2024

Conversation

WeisLeDocto
Copy link
Member

This PR fixes two minor problems that were introduced in #32 when switching from setup.py to pyproject.toml:

  • The runtime dependencies of the module had also become build dependencies. This behavior was not intended, and was caused by the dynamic lookup of the module version in pyproject.toml, that was requiring to install the module at build-time. It was fixed by making the project version a static field of pyproject.toml (25f8430).
  • The editable install (python -m pip install -e .) was broken on Windows (still working on Linux, curiously). It was due to an incorrect combination of settings in the section of pyproject.toml managing setuptools options. It was fixed by editing the broken fields to a correct syntax (5dfec3e).

The dynamic check of the version was causing all the runtime dependencies to be build dependencies.
This was considerably slowing down the tests and editable installation builds.
Wrong combination of parameters in the setuptools section of pyproject.toml
@WeisLeDocto WeisLeDocto added the bug Something isn't working label Jan 5, 2024
@WeisLeDocto WeisLeDocto self-assigned this Jan 5, 2024
@WeisLeDocto WeisLeDocto merged commit e826b84 into main Jan 5, 2024
14 checks passed
@WeisLeDocto WeisLeDocto deleted the hotfix/fix_pyproject.toml branch January 5, 2024 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant