Skip to content

Use poetry instead of venv#16

Open
sethrj wants to merge 10 commits into
celeritas-project:mainfrom
sethrj:poetry
Open

Use poetry instead of venv#16
sethrj wants to merge 10 commits into
celeritas-project:mainfrom
sethrj:poetry

Conversation

@sethrj
Copy link
Copy Markdown
Member

@sethrj sethrj commented May 7, 2026

No description provided.

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
Comment on lines 8 to +13
.PHONY: install
install: $(PYENV_TARGET) $(VENV_TARGET) pip
install: poetry-install

.PHONY: pyenv
pyenv:
pyenv install --skip-existing $(PYTHON_VERSION)
.PHONY: poetry-install
poetry-install:
poetry install
Comment thread pyproject.toml Outdated
Comment on lines +10 to +17
[tool.poetry]
authors = ["Seth R. Johnson et al."]
description = ""
license = "Apache-2.0"
name = "celerpy"
packages = [{include = "celerpy"}]
readme = "README.md"
version = "0.1.0"
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
sethrj and others added 4 commits May 7, 2026 12:39
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