Convert packaging to pyproject.toml, rebase onto stable (v0.11.1, Python 3.14)#31
Merged
Convert packaging to pyproject.toml, rebase onto stable (v0.11.1, Python 3.14)#31
Conversation
…ll in favour of futures
…st files. Also add improvements to vector colour code.
… get unit tests passing (in Windows at least)
…rve fitting chapter
… and rename and adjust references accordingly.
Restrict building of co nda package
…ction [WIP] Refactor add_column function to reduce complexity
Co-authored-by: gb119 <[email protected]>
Co-authored-by: gb119 <[email protected]>
… test_is_zip for bytes with null bytes Co-authored-by: gb119 <[email protected]>
…ation step Co-authored-by: gb119 <[email protected]>
Co-authored-by: gb119 <[email protected]>
…th-mamba Speed up CI: enable micromamba environment caching
… handling Co-authored-by: gb119 <[email protected]> Agent-Logs-Url: https://github.com/stonerlab/Stoner-PythonCode/sessions/a5cb6db9-7c44-431b-8189-a7e14784fa54
Copilot
AI
changed the title
[WIP] Update project to use modern packaging and build tools
Convert packaging from legacy setuptools to pyproject.toml
Mar 20, 2026
Copilot
AI
changed the title
Convert packaging from legacy setuptools to pyproject.toml
Convert packaging to pyproject.toml, rebase onto stable (v0.11.1, Python 3.14)
Mar 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Replaces legacy
setup.py/setup.cfg/.coveragercwith a modernpyproject.toml-based build, merged onto thestablebranch (v0.11.1, Python 3.14 test matrix).Packaging
setup.py,.coveragercpyproject.toml— consolidates project metadata,[build-system], dependencies, optional extras, and tool config ([tool.coverage.run],[tool.pydocstyle],[tool.pytest.ini_options])setup.cfg— packaging sections removed; only[pydocstyle]retained for tool compatibilityStoner/__init__.py—__version__is now a static string ("0.11.1");__version_info__derived from it, enabling static parsing by build toolsConda recipe
recipe/meta.yaml— removesload_setup_py_data(), reads version viaload_file_regex, switches build script topip install . --no-deps --no-build-isolationrecipe/build-env.yml— pinssetuptools>=61.0, addsbuildpackageCI / test environment
tests/test-env.yml— dropspytest-runner.github/workflows/run-tests-action.yaml— adds"3.14"to Python matrix (fromstable); retains pinned action SHAs and explicitpermissionsblocksDocs
doc/conf.py— reads version viaimportlib.metadata.version("Stoner"); catchesPackageNotFoundErrorspecifically instead of bareExceptiondoc/UserGuide/install.rst— replacespython setup.py installwithpip install .💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.