Skip to content

Use poetry instead of venv#16

Merged
sethrj merged 34 commits into
celeritas-project:mainfrom
sethrj:poetry
May 29, 2026
Merged

Use poetry instead of venv#16
sethrj merged 34 commits into
celeritas-project:mainfrom
sethrj:poetry

Conversation

@sethrj
Copy link
Copy Markdown
Member

@sethrj sethrj commented May 7, 2026

Overhaul the old cookiecutter setup to use poetry instead of venv for configuration management.

Copilot AI review requested due to automatic review settings May 7, 2026 16:12
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR migrates the project’s packaging and development workflow from pyenv + .venv + uv pip compile lockfiles to Poetry, updating CI and build tooling accordingly.

Changes:

  • Remove requirements.txt / requirements-dev.txt and switch build metadata in pyproject.toml to Poetry (poetry-core backend).
  • Update makefile and GitHub Actions workflows to install and run tooling via poetry install / poetry run.
  • Replace setuptools_scm-based version reporting with importlib.metadata (__version__), and update the CLI --version path.

Reviewed changes

Copilot reviewed 9 out of 11 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
requirements.txt Removed generated runtime lockfile in favor of Poetry.
requirements-dev.txt Removed generated dev lockfile in favor of Poetry.
pyproject.toml Switched build backend/metadata to Poetry; updated dependency constraints and scripting.
makefile Replaced venv/pyenv/uv flows with Poetry-based install/test/build targets.
celerpy/cli.py Updated version printing to use __version__.
celerpy/init.py Updated __version__ resolution to use installed package metadata with fallback.
.python-version Removed pinned local Python version file.
.gitignore Changed to track poetry.lock.
.github/workflows/test.yml CI now sets Python directly and installs Poetry before make install.
.github/workflows/pypi.yml Release workflow now installs Poetry and builds via make build.
.github/workflows/lockfiles.yml Replaced pip lockfile updater with poetry update + PR creation.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread makefile Outdated
Comment thread makefile Outdated
Comment thread pyproject.toml Outdated
Comment thread pyproject.toml Outdated
Comment thread .github/workflows/test.yml Outdated
Comment thread .github/workflows/pypi.yml Outdated
Comment thread .github/workflows/lockfiles.yml Outdated
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 18 out of 20 changed files in this pull request and generated 5 comments.

Comment thread .github/actions/setup-poetry/action.yml Outdated
Comment thread .github/actions/setup-poetry/action.yml Outdated
Comment thread .github/workflows/lockfiles.yml
Comment thread .github/workflows/push.yml
Comment thread pyproject.toml Outdated
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 20 out of 23 changed files in this pull request and generated 5 comments.

Comment thread makefile Outdated
Comment thread .github/workflows/test.yml Outdated
Comment thread celerpy/__init__.py Outdated
Comment thread pyproject.toml Outdated
Comment thread pyproject.toml Outdated
@sethrj sethrj merged commit a6e2a4f into celeritas-project:main May 29, 2026
5 checks passed
@sethrj sethrj deleted the poetry branch May 29, 2026 16:26
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