Modified versioning and publishing of new releases to Pypi #41
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Resolves https://github.com/grycap/issue-tracker/issues/107
This pull request makes significant updates to the packaging and release workflow for the Python OSCAR client. The main improvements include migrating build and packaging configuration to
pyproject.toml, simplifyingsetup.py, modernizing the GitHub Actions release workflow, and updating documentation and test workflow triggers.Packaging and Build System Modernization:
pyproject.tomlfile to define build requirements, project metadata, dependencies, and versioning usingsetuptoolsandsetuptools-scm. This modernizes the build system and centralizes configuration.setup.pyto a minimal stub for backward compatibility, moving all configuration topyproject.toml.Release Workflow Improvements:
.github/workflows/release-build.yamlthat builds and publishes the package to PyPI only when a release is published. The new workflow uses trusted publishing, separates build and publish jobs, and improves reliability and security.release-version.yaml), streamlining the release process and eliminating manual version management in favor of automated versioning viasetuptools-scm.Documentation and Test Workflow Updates:
README.mdbadges to reflect the new package name (oscar-python) and improved links to test and PyPI status..github/workflows/tests.yamlto also run on thedevelbranch, ensuring broader CI coverage.