Infra updates - #46
Merged
Merged
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #46 +/- ##
===========================================
+ Coverage 72.55% 72.70% +0.15%
===========================================
Files 4 4
Lines 481 480 -1
===========================================
Hits 349 349
+ Misses 132 131 -1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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.
Modernize packaging and CI
Closes #42.
Replaces
setup.pywithpyproject.toml(PEP 517/518) and modernizes the supporting build, test, and CI configuration. Along the way, fixes a few failures caused by newer versions ofclickandpylintso the suite is green again.Packaging (#42)
pyproject.tomlwith thesetuptoolsbuild backend. Migrates all metadata fromsetup.py, declares runtimedependencies, theagioconsole script, and a single consolidateddevextra (the olddevandtestextras are merged, matching the siblingmadooprepo).setup.py.MANIFEST.in: include*.mdso the docs ship in the sdist, and drop a staleinclude testline.check-manifestpasses.CONTRIBUTING.md: edit and greppyproject.tomlinstead ofsetup.py, and build withpython -m buildinstead ofpython setup.py sdist bdist_wheel.Python versions and CI
requires-python = ">=3.10", dropping end-of-life Python versions and matching the floor used inmailmerge.["3.x"](always the latest Python) and the job runstox -e py3. This dropstox-gh-actionsand the hardcoded[gh-actions]version map, so no file needs editing when a new Python is released.tox.ini:envlist = py3; the lint and test commands are unchanged.actions/checkout@v4,actions/setup-python@v5, andcodecov/codecov-action@v4(now passingtokenandslug).Dependency-drift fixes
These are unrelated to packaging but were breaking the suite with current dependency versions:
tests/test_cli.py: dropmix_stderr=False, removed fromCliRunnerin click 8.3 (separate stdout/stderr is now the default).agiocli/api_client.py: useyield frominget_paginated(pylintuse-yield-from).agiocli/__main__.py: addtoo-many-positional-argumentsto the existing pylint disables on the Click subcommands.