Skip to content

Commit df2a9be

Browse files
committed
release v1.0.1
1 parent a197359 commit df2a9be

File tree

4 files changed

+77
-3
lines changed

4 files changed

+77
-3
lines changed

.github/workflows/build.yml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
name: build
2+
3+
on:
4+
push:
5+
tags:
6+
- v*
7+
branches:
8+
- master
9+
pull_request:
10+
branches:
11+
- master
12+
13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
15+
cancel-in-progress: true
16+
17+
defaults:
18+
run:
19+
shell: bash
20+
21+
jobs:
22+
build:
23+
name: Build artifacts
24+
runs-on: ubuntu-latest
25+
26+
steps:
27+
- name: Checkout code
28+
uses: actions/checkout@v4
29+
with:
30+
fetch-depth: 0
31+
32+
- name: Set up Python
33+
uses: actions/setup-python@v5
34+
with:
35+
python-version: '3.12'
36+
37+
- name: Install Hatch
38+
uses: pypa/hatch@install
39+
40+
- name: Build wheel and source distribution
41+
run: hatch build
42+
43+
- name: Upload artifacts
44+
uses: actions/upload-artifact@v4
45+
with:
46+
name: artifacts
47+
path: dist/*
48+
if-no-files-found: error
49+
50+
publish:
51+
name: Publish to PyPI
52+
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
53+
needs: build
54+
runs-on: ubuntu-latest
55+
56+
permissions:
57+
id-token: write
58+
59+
steps:
60+
- name: Download Python artifacts
61+
uses: actions/download-artifact@v4
62+
with:
63+
name: artifacts
64+
path: dist
65+
66+
- name: Push Python artifacts to PyPI
67+
uses: pypa/gh-action-pypi-publish@v1.10.2
68+
with:
69+
skip-existing: true

README.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,11 @@ Changelog
163163

164164
Important changes are emphasized.
165165

166+
1.0.1
167+
^^^^^
168+
169+
- Fix syntax warning on newer versions of Python
170+
166171
1.0.0
167172
^^^^^
168173

binary/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@
2323
"YOBIBYTE", "YOTTABYTE",
2424
"BinaryUnits", "DecimalUnits", "convert_units",
2525
]
26-
__version__ = '1.0.0'
26+
__version__ = '1.0.1'

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[build-system]
2-
requires = ["hatchling"]
2+
requires = ["hatchling", "hatch-vcs"]
33
build-backend = "hatchling.build"
44

55
[project]
@@ -31,7 +31,7 @@ classifiers = [
3131
Homepage = "https://github.com/ofek/binary"
3232

3333
[tool.hatch.version]
34-
path = "binary/__init__.py"
34+
source = "vcs"
3535

3636
[tool.hatch.build.targets.sdist]
3737
include = [

0 commit comments

Comments
 (0)