-
Notifications
You must be signed in to change notification settings - Fork 362
rfc: Migrate most configs from setup.py to pyproject.toml #5962
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
PaulYuuu
wants to merge
1
commit into
avocado-framework:master
Choose a base branch
from
PaulYuuu:pyproject
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -30,17 +30,17 @@ jobs: | |
| with: | ||
| python-version: ${{ matrix.python-version }} | ||
| - name: Installing Avocado | ||
| run: python3 setup.py install --user | ||
| run: python3 -m pip install --user -e . | ||
| - name: Installing plugins | ||
| run: | | ||
| python3 setup.py plugin --install=golang --user | ||
| python3 setup.py plugin --install=html --user | ||
| python3 setup.py plugin --install=result_upload --user | ||
| python3 setup.py plugin --install=resultsdb --user | ||
| python3 setup.py plugin --install=robot --user | ||
| python3 setup.py plugin --install=varianter_cit --user | ||
| python3 setup.py plugin --install=varianter_pict --user | ||
| python3 setup.py plugin --install=varianter_yaml_to_mux --user | ||
| python3 -m pip install ./optional_plugins/golang --user | ||
| python3 -m pip install ./optional_plugins/html --user | ||
| python3 -m pip install ./optional_plugins/result_upload --user | ||
| python3 -m pip install ./optional_plugins/resultsdb --user | ||
| python3 -m pip install ./optional_plugins/robot --user | ||
| python3 -m pip install ./optional_plugins/varianter_cit --user | ||
| python3 -m pip install ./optional_plugins/varianter_pict --user | ||
| python3 -m pip install ./optional_plugins/varianter_yaml_to_mux --user | ||
| - name: Avocado version | ||
|
Comment on lines
+33
to
44
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ensure PATH includes user base bin for --user installs. Commands installed to ~/.local/bin may not be on PATH; avocado may not be found. Add after Python setup (once per job using --user): - name: Add user base bin to PATH
run: echo "$(python3 -m site --user-base)/bin" >> "$GITHUB_PATH"Also applies to: 115-116 🤖 Prompt for AI Agents |
||
| run: avocado --version | ||
| - name: Avocado smoketest | ||
|
|
@@ -70,17 +70,17 @@ jobs: | |
| with: | ||
| python-version: ${{ matrix.python-version }} | ||
| - name: Installing Avocado | ||
| run: python3 setup.py install | ||
| run: python3 -m pip install . | ||
| - name: Installing plugins | ||
| run: | | ||
| python3 setup.py plugin --install=golang | ||
| python3 setup.py plugin --install=html | ||
| python3 setup.py plugin --install=result_upload | ||
| python3 setup.py plugin --install=resultsdb | ||
| python3 setup.py plugin --install=robot | ||
| python3 setup.py plugin --install=varianter_cit | ||
| python3 setup.py plugin --install=varianter_pict | ||
| python3 setup.py plugin --install=varianter_yaml_to_mux | ||
| python3 -m pip install ./optional_plugins/golang | ||
| python3 -m pip install ./optional_plugins/html | ||
| python3 -m pip install ./optional_plugins/result_upload | ||
| python3 -m pip install ./optional_plugins/resultsdb | ||
| python3 -m pip install ./optional_plugins/robot | ||
| python3 -m pip install ./optional_plugins/varianter_cit | ||
| python3 -m pip install ./optional_plugins/varianter_pict | ||
| python3 -m pip install ./optional_plugins/varianter_yaml_to_mux | ||
| - name: Avocado version | ||
| run: avocado --version | ||
| - name: Avocado smoketest | ||
|
|
@@ -112,17 +112,17 @@ jobs: | |
| - name: Install dependencies | ||
| run: pip3 install -r requirements-dev.txt | ||
| - name: Installing Avocado in develop mode | ||
| run: python3 setup.py develop --user | ||
| run: python3 -m pip install --user -e . | ||
| - name: Avocado version | ||
| run: avocado --version | ||
| - name: Avocado smoketest | ||
| run: avocado run examples/tests/passtest.py | ||
| - name: Avocado build manpage | ||
| run: python3 setup.py man | ||
| run: make man | ||
| - name: Tree static check, unittests and fast functional tests | ||
| run: python3 setup.py test | ||
| run: python3 -m selftests.check | ||
| - name: Uninstall avocado | ||
| run: python3 setup.py develop --user --uninstall | ||
| run: python3 -m pip uninstall -y avocado-framework | ||
| - run: echo "🥑 This job's status is ${{ job.status }}." | ||
|
|
||
|
|
||
|
|
@@ -148,17 +148,17 @@ jobs: | |
| - name: Install dependencies | ||
| run: pip3 install -r requirements-dev.txt | ||
| - name: Installing Avocado in develop mode | ||
| run: python3 setup.py develop | ||
| run: python3 -m pip install -e . | ||
| - name: Avocado version | ||
| run: avocado --version | ||
| - name: Avocado smoketest | ||
| run: avocado run examples/tests/passtest.py | ||
| - name: Avocado build manpage | ||
| run: python3 setup.py man | ||
| run: make man | ||
| - name: Tree static check, unittests and fast functional tests | ||
| run: python3 setup.py test | ||
| run: python3 -m selftests.check | ||
| - name: Uninstall avocado | ||
| run: python3 setup.py develop --uninstall | ||
| run: python3 -m pip uninstall -y avocado-framework | ||
| - run: echo "🥑 This job's status is ${{ job.status }}." | ||
|
|
||
|
|
||
|
|
@@ -178,20 +178,20 @@ jobs: | |
| sudo apt-get install -y python3-virtualenv | ||
| - name: virtualenv | ||
| run: | | ||
| python3 -m venv env | ||
| source env/bin/activate | ||
| python3 setup.py install | ||
| python3 setup.py plugin --install=golang | ||
| python3 setup.py plugin --install=html | ||
| python3 setup.py plugin --install=result_upload | ||
| python3 setup.py plugin --install=resultsdb | ||
| python3 setup.py plugin --install=robot | ||
| python3 setup.py plugin --install=varianter_cit | ||
| python3 setup.py plugin --install=varianter_pict | ||
| python3 setup.py plugin --install=varianter_yaml_to_mux | ||
| avocado --version | ||
| avocado run examples/tests/passtest.py | ||
| deactivate | ||
| python3 -m venv env | ||
| source env/bin/activate | ||
| python3 -m pip install . | ||
| python3 -m pip install ./optional_plugins/golang | ||
| python3 -m pip install ./optional_plugins/html | ||
| python3 -m pip install ./optional_plugins/result_upload | ||
| python3 -m pip install ./optional_plugins/resultsdb | ||
| python3 -m pip install ./optional_plugins/robot | ||
| python3 -m pip install ./optional_plugins/varianter_cit | ||
| python3 -m pip install ./optional_plugins/varianter_pict | ||
| python3 -m pip install ./optional_plugins/varianter_yaml_to_mux | ||
| avocado --version | ||
| avocado run examples/tests/passtest.py | ||
| deactivate | ||
| - run: echo "🥑 This job's status is ${{ job.status }}." | ||
|
|
||
| devel-virtualenv-installation: | ||
|
|
@@ -213,9 +213,9 @@ jobs: | |
| python3 -m venv env | ||
| source env/bin/activate | ||
| pip install -r requirements-dev.txt | ||
| python3 setup.py develop | ||
| python3 -m pip install -e . | ||
| avocado --version | ||
| avocado run examples/tests/passtest.py | ||
| python3 setup.py test --skip static-checks | ||
| python3 -m selftests.check --skip=static-checks | ||
| deactivate | ||
| - run: echo "🥑 This job's status is ${{ job.status }}." | ||
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Critical typo in module name.
The command contains a typo:
selftets.checkshould beselftests.check. This will cause the workflow to fail with a module not found error.Apply this diff:
📝 Committable suggestion
🤖 Prompt for AI Agents