Skip to content

Convert packaging to pyproject.toml, rebase onto stable (v0.11.1, Python 3.14)#31

Merged
gb119 merged 69 commits intostablefrom
copilot/convert-to-modern-packaging
Mar 20, 2026
Merged

Convert packaging to pyproject.toml, rebase onto stable (v0.11.1, Python 3.14)#31
gb119 merged 69 commits intostablefrom
copilot/convert-to-modern-packaging

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 20, 2026

Replaces legacy setup.py/setup.cfg/.coveragerc with a modern pyproject.toml-based build, merged onto the stable branch (v0.11.1, Python 3.14 test matrix).

Packaging

  • Deleted setup.py, .coveragerc
  • Created pyproject.toml — consolidates project metadata, [build-system], dependencies, optional extras, and tool config ([tool.coverage.run], [tool.pydocstyle], [tool.pytest.ini_options])
  • Simplified setup.cfg — packaging sections removed; only [pydocstyle] retained for tool compatibility
  • Stoner/__init__.py__version__ is now a static string ("0.11.1"); __version_info__ derived from it, enabling static parsing by build tools

Conda recipe

  • recipe/meta.yaml — removes load_setup_py_data(), reads version via load_file_regex, switches build script to pip install . --no-deps --no-build-isolation
  • recipe/build-env.yml — pins setuptools>=61.0, adds build package

CI / test environment

  • tests/test-env.yml — drops pytest-runner
  • .github/workflows/run-tests-action.yaml — adds "3.14" to Python matrix (from stable); retains pinned action SHAs and explicit permissions blocks

Docs

  • doc/conf.py — reads version via importlib.metadata.version("Stoner"); catches PackageNotFoundError specifically instead of bare Exception
  • doc/UserGuide/install.rst — replaces python setup.py install with pip 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.

gb119 added 30 commits March 7, 2021 23:01
…st files. Also add improvements to vector colour code.
… get unit tests passing (in Windows at least)
… and rename and adjust references accordingly.
Restrict building of co nda package
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 requested a review from gb119 March 20, 2026 18:41
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
@gb119 gb119 changed the base branch from main to stable March 20, 2026 19:41
@gb119 gb119 marked this pull request as ready for review March 20, 2026 19:47
@gb119 gb119 merged commit ed77b21 into stable Mar 20, 2026
6 of 10 checks passed
@gb119 gb119 deleted the copilot/convert-to-modern-packaging branch March 20, 2026 19:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants