File tree Expand file tree Collapse file tree 3 files changed +11
-10
lines changed Expand file tree Collapse file tree 3 files changed +11
-10
lines changed Original file line number Diff line number Diff line change 9
9
workflow_dispatch :
10
10
inputs :
11
11
version :
12
- description : PyPI project version (e.g. 0 .1.0 - no 'v' )
12
+ description : PyPI project version (e.g. v0 .1.0)
13
13
required : false
14
14
15
15
env :
16
16
# Common versions
17
17
PYTHON_VERSION : ' 3.11.5'
18
18
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.
20
20
PYPI_VERSION : ${{ inputs.version }}
21
21
22
22
jobs :
@@ -70,12 +70,12 @@ jobs:
70
70
run : pipx install hatch==1.7.0
71
71
72
72
# 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
75
75
# Go's pseudo-versions: https://go.dev/ref/mod#pseudo-versions.
76
76
- name : Set Default PyPI Project Version
77
77
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
79
79
80
80
- name : Set PyPI Project Version
81
81
run : hatch version ${{ env.PYPI_VERSION }}
Original file line number Diff line number Diff line change 12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
14
15
+ """The version of function-sdk-python."""
16
+
15
17
# This is set at build time, using "hatch version"
16
- __version__ = "0.0.0"
18
+ __version__ = "0.0.0"
Original file line number Diff line number Diff line change 1
1
[build-system ]
2
- requires = [" hatchling" , " hatch-semver " ]
2
+ requires = [" hatchling" ]
3
3
build-backend = " hatchling.build"
4
4
5
5
[project ]
6
- name = " function-sdk-python"
6
+ name = " crossplane- function-sdk-python"
7
7
description = ' The Python SDK for Crossplane composition functions'
8
8
readme = " README.md"
9
9
requires-python = " >=3.11"
@@ -31,8 +31,7 @@ Source = "https://github.com/crossplane/function-sdk-python"
31
31
32
32
[tool .hatch .version ]
33
33
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.
36
35
37
36
[tool .hatch .envs .default ]
38
37
type = " virtual"
You can’t perform that action at this time.
0 commit comments