Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .circleci/validation-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ jobs:
# https://circleci.com/gh/mozilla/metric-config-parser/edit#env-vars
# For more on twine, see:
# https://twine.readthedocs.io/en/latest/
twine upload --skip-existing dist/*
# twine upload --skip-existing dist/*
nothing-to-do:
executor: metric-config-parser-executor
steps:
Expand Down
3 changes: 3 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@


fixes #
23 changes: 12 additions & 11 deletions .github/workflows/deploy-metric-config-parser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
branches:
- main
paths:
- 'lib/metric-config-parser/*.yaml'
- 'lib/metric-config-parser/pyproject.toml'

permissions:
contents: read
Expand All @@ -18,22 +18,25 @@ jobs:
uses: ./.github/workflows/changed-files.yml
with:
path_filter: |
lib/metric-config-parser/*.yaml
lib/metric-config-parser/pyproject.toml

check-version-change:
runs-on: ubuntu-latest
needs: changed
permissions:
contents: read
outputs:
proceed: ${{ steps.version_change.outputs.proceed }}
if: needs.changed.outputs.any_changed == 'true'
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v5
with:
fetch-depth: 0
- id: version_change
name: Check for package version change in last commit before proceeding.
working-directory: ~/project/lib/metric-config-parser
run: |
if git diff main HEAD~1 pyproject.toml | grep 'version'
if git diff origin/main HEAD~1 -- ./lib/metric-config-parser/pyproject.toml | grep '\+version'
then
echo "Found changes to package version dir, proceeding with deployment."
echo "proceed=true" >> "GITHUB_OUTPUT"
Expand All @@ -50,27 +53,25 @@ jobs:
if: needs.check-version-change.outputs.proceed == 'true'
steps:
- name: Checkout
uses: actions/checkout@v4
with:
path: ~/project
uses: actions/checkout@v5
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: "3.10"
cache: 'pip'
- name: Install deployment tools
working-directory: ~/project/lib/metric-config-parser
working-directory: ./lib/metric-config-parser
run: |
python3 -m pip install --upgrade pip build setuptools wheel
- name: Create the distribution files
working-directory: ~/project/lib/metric-config-parser
working-directory: ./lib/metric-config-parser
run: |
python3.10 -m build --sdist
- name: Upload distribution
uses: actions/upload-artifact@v4
with:
name: release-dist
path: ~/project/lib/metric-config-parser/dist
path: ./lib/metric-config-parser/dist

deploy-metric-config-parser:
runs-on: ubuntu-latest
Expand Down
4 changes: 2 additions & 2 deletions lib/metric-config-parser/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[build-system]
requires = ["setuptools", "pytest-runner"]
requires = ["pytest-runner", "setuptools"]
build-backend = "setuptools.build_meta"

[project]
name = "mozilla-metric-config-parser"
version = "2025.8.1"
version = "2025.8.2"
authors = [{ name = "Mozilla Corporation", email = "[email protected]" }]
description = "Parses metric configuration files."
readme = "README.md"
Expand Down