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 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
1515env :
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
2222jobs :
@@ -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 }}
Original file line number Diff line number Diff line change 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"
Original file line number Diff line number Diff line change 11[build-system ]
2- requires = [" hatchling" , " hatch-semver " ]
2+ requires = [" hatchling" ]
33build-backend = " hatchling.build"
44
55[project ]
6- name = " function-sdk-python"
6+ name = " crossplane- function-sdk-python"
77description = ' The Python SDK for Crossplane composition functions'
88readme = " README.md"
99requires-python = " >=3.11"
@@ -31,8 +31,7 @@ Source = "https://github.com/crossplane/function-sdk-python"
3131
3232[tool .hatch .version ]
3333path = " 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 ]
3837type = " virtual"
You can’t perform that action at this time.
0 commit comments