-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Switch to PEP621 and hatchling * Improve spec file & release workflow * Use hatch scripts * Switch to dynamic version * Merge `python-fmf` with `fmf` Signed-off-by: Cristian Le <[email protected]>
- Loading branch information
Showing
13 changed files
with
185 additions
and
224 deletions.
There are no files selected for viewing
This file contains 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,3 @@ | ||
node: $Format:%H$ | ||
node-date: $Format:%cI$ | ||
describe-name: $Format:%(describe:tags=true,match=*[0-9]*)$ |
This file contains 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 @@ | ||
.git_archival.txt export-subst |
This file contains 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 |
---|---|---|
@@ -1,28 +1,21 @@ | ||
name: release | ||
name: 🚀 Release | ||
|
||
on: | ||
release: | ||
types: [published] | ||
workflow_dispatch: | ||
inputs: | ||
ref: | ||
description: 'Tag to release' | ||
required: true | ||
|
||
jobs: | ||
release: | ||
name: 🚀 Release | ||
runs-on: ubuntu-latest | ||
environment: | ||
name: pypi | ||
url: https://pypi.org/p/fmf | ||
permissions: | ||
id-token: write # For pypi-publish | ||
steps: | ||
- uses: actions/checkout@v2 | ||
if: ${{ github.event_name == 'release' }} | ||
- uses: actions/checkout@v2 | ||
if: ${{ github.event_name == 'workflow_dispatch' }} | ||
with: | ||
ref: ${{ github.event.inputs.ref }} | ||
- name: Create dist | ||
run: make wheel | ||
- uses: actions/checkout@v4 | ||
- name: Build package | ||
run: pipx hatch build | ||
- name: Publish to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.PYPI_API_TOKEN }} |
This file contains 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 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 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 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 |
---|---|---|
@@ -1,14 +1,17 @@ | ||
""" Flexible Metadata Format """ | ||
|
||
# Version is replaced before building the package | ||
__version__ = 'running from the source' | ||
from __future__ import annotations | ||
|
||
import importlib.metadata | ||
|
||
from fmf.base import Tree | ||
from fmf.context import Context | ||
from fmf.utils import filter | ||
|
||
__version__ = importlib.metadata.version("fmf") | ||
|
||
__all__ = [ | ||
"Context", | ||
"Tree", | ||
"filter", | ||
] | ||
|
||
from fmf.base import Tree | ||
from fmf.context import Context | ||
from fmf.utils import filter |
This file contains 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.