Skip to content

Commit 3ce06f9

Browse files
committed
[RELEASE] - Release version 0.18.0
1 parent 873319c commit 3ce06f9

File tree

4 files changed

+24
-15
lines changed

4 files changed

+24
-15
lines changed
Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,46 @@
11
name: Publish Python distribution to PyPI
22

3-
on: push
3+
on:
4+
push:
5+
tags: [ '*' ]
46

57
jobs:
68
build-n-publish:
79
name: Build and publish Python distributions to PyPI
810
runs-on: ubuntu-latest
911
steps:
10-
- uses: actions/checkout@master
12+
- name: Checkout code
13+
uses: actions/checkout@v4
1114
with:
12-
ref: main
15+
fetch-depth: 0 # Needed for setuptools_scm
1316

1417
- name: Set up Python 3.14
15-
uses: actions/setup-python@v6
18+
uses: actions/setup-python@v5
1619
with:
1720
python-version: '3.14'
1821

19-
- name: Install dependencies
22+
- name: Install build dependencies
2023
run: |
2124
python -m pip install --upgrade pip
25+
pip install build twine
26+
27+
- name: Install project with test dependencies
28+
run: |
29+
pip install -e .[dev]
2230
2331
- name: Run tests
2432
run: |
25-
pip install pytest
26-
pytest
33+
pytest tests/ -v --tb=short
34+
35+
- name: Build distribution packages
36+
run: |
37+
python -m build
2738
28-
- name: Build a binary wheel and a source tarball
39+
- name: Check distribution packages
2940
run: |
30-
pip install wheel setuptools
31-
python setup.py sdist bdist_wheel
41+
twine check dist/*
3242
3343
- name: Publish distribution to PyPI
34-
if: startsWith(github.ref, 'refs/tags')
35-
uses: pypa/gh-action-pypi-publish@master
44+
uses: pypa/gh-action-pypi-publish@release/v1
3645
with:
3746
password: ${{ secrets.ADOBE_BOT_PYPI_TOKEN }}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
A hierarchical config using yaml in Python.
99

10-
Latest version is: 0.17.0
10+
Latest version is: 0.18.0
1111

1212
> **⚠️ Breaking Changes in v0.18.0**
1313
> This version includes breaking changes. See [MIGRATION_GUIDE.md](MIGRATION_GUIDE.md) for migration instructions.

himl/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def get_parser(parser=None):
7979
parser.add_argument('--list-merge-strategy', dest='merge_list_strategy', type=ListMergeStrategy,
8080
choices=list(ListMergeStrategy), default='append_unique',
8181
help='override default merge strategy for list')
82-
parser.add_argument('--version', action='version', version='%(prog)s v{version}'.format(version="0.17.0"),
82+
parser.add_argument('--version', action='version', version='%(prog)s v{version}'.format(version="0.18.0"),
8383
help='print himl version')
8484
return parser
8585

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ Documentation = "https://github.com/adobe/himl#readme"
6969
write_to = "himl/_version.py"
7070

7171
[tool.bumpversion]
72-
current_version = "0.17.0"
72+
current_version = "0.18.0"
7373
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
7474
serialize = ["{major}.{minor}.{patch}"]
7575
search = "{current_version}"

0 commit comments

Comments
 (0)