-
Notifications
You must be signed in to change notification settings - Fork 2
Changelog
Unreleased changes are documented in changelog.d.
- Remove pip-audit ignore for vulnerability fixed by pip 25.3 release. You will need to
uv sync --upgradeto get the pip update which will then satisfy pip-audit. (#91)
- Fix nox GitHub actions permission (#90)
- Add ignore file for pip-audit & ignore pip vulnerability
-
Moderate: Adjust mise/uv Python bootstrap mechanism and change install recommendations in docs (#56).
- The new init method which uses a custom task in the project and adjusted
mise.tomlconfig should "just work". It's tested, but it's also new, so YMMV. - If using centralized venvs:
-
ensure
~/.cache/uv-venvs/exists. Project venvs will now be configured in that location. -
Remove
UV_PROJECT_ENVIRONMENTfrom~/.config/mise/config.tomlwhich will be a breaking change for existing projects not updated to at least this version of the Coppy template. -
For existing projects that aren't ready to be updated to the latest Coppy version, you should add the
UV_PROJECT_ENVIRONMENTdefinition to a project specificmise.local.tomlfile:[env] UV_PROJECT_ENVIRONMENT = '{% if env.PROJECT_SLUG %}~/.cache/uv-venvs/{{ env.PROJECT_SLUG }}{% endif %}'
When the project updates to at least this version of the Coppy template, that definition should be removed.
-
- The new init method which uses a custom task in the project and adjusted
-
Moderate: move project's tests from
./srcto./tests(#75)- Advantages: test directory is top-level and more obvious, provides more flexibility if wanting
to test a generated wheel and not the code in
./src. See related issue for example. - Actions required: move
conftest.pyand your tests from./src/to./tests
- Advantages: test directory is top-level and more obvious, provides more flexibility if wanting
to test a generated wheel and not the code in
-
Minor:
env-config.yamlchanged HATCH_INDEX_AUTH 1password secret reference (#78)- From: 'op://my/private/pypi.python.org/api-token'
- To: 'op://my/private/pypi.org/api-token'
-
Minor: change python dependency group and nox session name from "tests" to pytest. Also, enhance noxfile with improved
uv_sync()andpytest_run()(#82).- "tests" -> "pytest" dependency group: mostly for clarity. While technically breaking, most projects won't need to manually change anything unless they've customized that group already.
- The functions serve as a foundation for more complicated setups with multiple pytest runs,
potentially using different environment variables, and parameterization. Example of such
usage in Webgrid's
noxfile.py.
- Docs: we now recommend installing uv directly as the OS user and not through Mise.
-
.editorconfig: movecharset = utf-8to global as it seems like a sensible modern default. (#68) - Remove "From Coppy" and "App Specific" from pyproject.toml dependency groups. They didn't stay
organized with
uv addand aren't likely to be necessary. (#72) - Use uv's
--frozenin CI and testing scenarios to help ensure dependency updates are handled explicitly by the developer. (#74) - Nox pytest command should not specify the module to cover. Since we specify the paths in
.coveragerc, the pytest option should be just--cov, not e.g.--cov=webgrid. (#76) - nox uv now uses
--only-groupinstead of--no-devsince the intention behind our usage is to only install the group the nox session needs.--only-groupis more appropriate since it's possible that the dev group is not the default group. Also DRY refactor uv calls in nox. (#77) - Noxfile and nox GH action updates
- Use uv's --exact and --frozen to help ensure environments contain only expected packages
- noxfile: enhance pytest() and uv_sync() functions
- pytest: only include junit xml for CircleCI
- pytest: remove
--cov-config=.coveragercbecause it's the default - GitHub action: use separate jobs and a matrix to parallelize the runs
- GitHub action: use Coppy's GH actions to DRY the config; drop dependency on ubuntu-mive
- GitHub action: add codecov integration (#82)
- Change mise task comment headers (discussion) (#83)
- Update pre-commit versions