Skip to content

Commit c1e5e20

Browse files
committed
1 parent 29edf77 commit c1e5e20

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ on:
99
workflow_dispatch:
1010
inputs:
1111
version:
12-
description: PyPI project version (e.g. 0.1.0 - no 'v')
12+
description: PyPI project version (e.g. v0.1.0)
1313
required: false
1414

1515
env:
1616
# Common versions
1717
PYTHON_VERSION: '3.11.5'
1818

19-
# The PyPi project version to push. The default is 0.0.0-gitdate-gitsha.
19+
# The PyPi project version to push. The default is v0.0.0+gitdate-gitsha.
2020
PYPI_VERSION: ${{ inputs.version }}
2121

2222
jobs:
@@ -70,12 +70,12 @@ jobs:
7070
run: pipx install hatch==1.7.0
7171

7272
# If a version wasn't explicitly passed as a workflow_dispatch input we
73-
# default to version v0.0.0-<git-commit-date>-<git-short-sha>, for example
74-
# v0.0.0-20231101115142-1091066df799. This is a simple implementation of
73+
# default to version v0.0.0+<git-commit-date>-<git-short-sha>, for example
74+
# v0.0.0+20231101115142-1091066df799. This is a simple implementation of
7575
# Go's pseudo-versions: https://go.dev/ref/mod#pseudo-versions.
7676
- name: Set Default PyPI Project Version
7777
if: env.PYPI_VERSION == ''
78-
run: echo "PYPI_VERSION=0.0.0-$(date -d@$(git show -s --format=%ct) +%Y%m%d%H%M%S)-$(git rev-parse --short=12 HEAD)" >> $GITHUB_ENV
78+
run: echo "PYPI_VERSION=v0.0.0+$(date -d@$(git show -s --format=%ct) +%Y%m%d%H%M%S)-$(git rev-parse --short=12 HEAD)" >> $GITHUB_ENV
7979

8080
- name: Set PyPI Project Version
8181
run: hatch version ${{ env.PYPI_VERSION }}

crossplane/function/__version__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15+
"""The version of function-sdk-python."""
16+
1517
# This is set at build time, using "hatch version"
16-
__version__ = "0.0.0"
18+
__version__ = "0.0.0"

pyproject.toml

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

55
[project]
6-
name = "function-sdk-python"
6+
name = "crossplane-function-sdk-python"
77
description = 'The Python SDK for Crossplane composition functions'
88
readme = "README.md"
99
requires-python = ">=3.11"
@@ -31,8 +31,7 @@ Source = "https://github.com/crossplane/function-sdk-python"
3131

3232
[tool.hatch.version]
3333
path = "crossplane/function/__version__.py"
34-
scheme = "semver"
35-
validate-bump = false # Allow going from 0.0.0-x to 0.0.0-y.
34+
validate-bump = false # Allow going from 0.0.0.dev0+x to 0.0.0.dev0+y.
3635

3736
[tool.hatch.envs.default]
3837
type = "virtual"

0 commit comments

Comments
 (0)