-
Notifications
You must be signed in to change notification settings - Fork 5
build: switch setup.py to pyproject.toml #16
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
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
0752ba4
build: replace setup.py with PEP 517/518 tooling
alesax 6238684
build: add workflow to test build
igaw a0f663b
nvmetcli: remove python-kmod
igaw 5208a31
build: use 'coverage run nose'
igaw a07e3e5
test_nvmet: fall back to temp sparse files as backing devices
igaw 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
Some comments aren't visible on the classic Files Changed page.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| --- | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
| # | ||
| # Copyright (c) 2026 SUSE Software Solutions | ||
|
|
||
| name: Build | ||
|
|
||
| on: | ||
| push: | ||
| branches: ["**"] | ||
| pull_request: | ||
| branches: ["**"] | ||
|
|
||
| jobs: | ||
| build: | ||
| name: Build sdist & wheel (Python ${{ matrix.python-version }}) | ||
| runs-on: ubuntu-latest | ||
|
|
||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| # Keep in sync with https://devguide.python.org/versions/ | ||
| # (all currently-supported CPython releases). | ||
| python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"] | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | ||
|
|
||
| - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0 | ||
| with: | ||
| python-version: ${{ matrix.python-version }} | ||
|
|
||
| # setup.cfg's [install] section (needed by debian/rules and the rpm | ||
| # spec to place nvmetcli under /usr/sbin) is picked up by pip/distutils | ||
| # from the current working directory on older interpreters, and would | ||
| # otherwise hijack the install location of unrelated tooling below. | ||
| # Run all "pip install" steps outside the checkout to avoid that. | ||
| - name: Install build frontend | ||
| working-directory: ${{ runner.temp }} | ||
| run: python3 -m pip install --upgrade build twine | ||
|
|
||
| - name: Build sdist and wheel | ||
| run: python3 -m build | ||
|
|
||
| - name: Check package metadata | ||
| run: python3 -m twine check dist/* | ||
|
|
||
| - name: Install built wheel | ||
| working-directory: ${{ runner.temp }} | ||
| run: python3 -m pip install "${GITHUB_WORKSPACE}"/dist/*.whl | ||
|
|
||
| - name: Import smoke test | ||
| working-directory: ${{ runner.temp }} | ||
| run: python3 -c "import nvmet; print(nvmet.__file__)" |
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 |
|---|---|---|
|
|
@@ -5,6 +5,7 @@ build/* | |
| dist/* | ||
| *.pyc | ||
| *.pyc | ||
| .coverage | ||
|
|
||
| # generated documentation | ||
| Documentation/*.1 | ||
|
|
||
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
This file was deleted.
Oops, something went wrong.
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 |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| [build-system] | ||
| requires = ["setuptools>=77.0.3"] | ||
| build-backend = "setuptools.build_meta" | ||
|
|
||
| [project] | ||
| name = "nvmetcli" | ||
| version = "0.8" | ||
| description = "NVMe target configuration tool" | ||
| dependencies = ["configshell-fb>=2.0"] | ||
| license = "Apache-2.0" | ||
| license-files = ["LICENSE"] | ||
| requires-python = ">=3.10" | ||
| maintainers = [ | ||
| { name = "Christoph Hellwig", email = "hch@lst.de" }, | ||
| { name = "Daniel Wagner", email = "wagi@monom.org" } | ||
| ] | ||
|
|
||
| [tool.setuptools] | ||
| packages = ["nvmet"] | ||
| script-files = ["nvmetcli"] | ||
|
|
||
| [project.optional-dependencies] | ||
| test = [ | ||
| "nose2", | ||
| "coverage" | ||
| ] | ||
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.
Uh oh!
There was an error while loading. Please reload this page.