@@ -4,6 +4,7 @@ This middleware is used by Knative Functions to expose a Function written in
44Python as a network service.
55
66## Contents
7+
78```
89.
910├── cmd
@@ -43,7 +44,7 @@ library is used when integrate with Functions, and can be useful during dev.
4344- install dependencies with ` poetry install `
4445- activate the virtual environment managed by poetry via ` poetry shell `
4546 Note that in some environments this command may cause collissions with
46- configured keyboard shortcuts. If there are problems, you can instead
47+ configured keyboard shortcuts. If there are problems, you can instead
4748 source the environment variables directly with:
4849 ` source $(poetry env info --path)/bin/activate `
4950- run the example via ` poetry run python cmd/fhttp/main.py `
@@ -54,8 +55,8 @@ library is used when integrate with Functions, and can be useful during dev.
5455A nice method of development using git worktrees:
5556
5657p. From a personal fork, create a new worktree for the bug, feature or chore
57- named appropriately (eg. "feature-a")
58- ` git worktree add feature-a `
58+ named appropriately (eg. "feature-a")
59+ ` git worktree add feature-a `
5960
60612 . Implement the code changes and commit.
6162
@@ -80,35 +81,38 @@ is pushed (which triggers production release).
8081
8182To test, in a test project ensure the it adds the test package as an
8283explicit source in pyproject.toml:
84+
8385```
8486[[tool.poetry.source]]
8587name = "test-pypi"
8688url = "https://test.pypi.org/simple/"
8789priority = "explicit"
8890```
91+
8992Then update the dependency to explicitly pull the new version which is only
90- available on TestPyPI. For example to test a hypothetical unreleased version
93+ available on TestPyPI. For example to test a hypothetical unreleased version
91940.1.2:
95+
9296```
9397[tool.poetry.dependencies]
9498func_python = {version = "0.1.2", source = "test-pypi"}
9599```
100+
96101Run ` poetry install ` to install the unreleased version from Test PyPI
97102
98103Note: do not check in this change.
99104
100-
101105## Releasing
102106
103107NOTE: This process is currently undergoing minor tweaks, and thus contains
104- several manual steps. Once the process is codified, it can be more highly
108+ several manual steps. Once the process is codified, it can be more highly
105109automated.
106110
1071111 . Create a new branch "release-x.y" from an up-to-date main
108112 When incrementing, follow Semantic Versioning standard. eg:
109- - Bug fixes: ++ patch version
110- - Features: ++ minor version
111- - Breaking Changes: ++ major version
113+ - Bug fixes: ++ patch version
114+ - Features: ++ minor version
115+ - Breaking Changes: ++ major version
112116
1131172 . Update pyproject.toml with the new version.
114118
@@ -134,17 +138,16 @@ automated.
134138
13513910 . Update the GitHub release's notes to be the changelog section's contents .
136140
137-
138141### Potential improvements
139142
140143Update to using the suffix "rcX" so as not to confuse folks pulling tags list
141- from the git repo. Without this suffix, a simple listing of the latest
144+ from the git repo. Without this suffix, a simple listing of the latest
142145tags from the repo would show a potentially unreleased version as the latest.
143146
144147With the use of these release-candidate tags, the use of TestPyPI may be
145148unnecessary.
146149
147150Perhaps push the RC tag to the PR's commit and test prior to merging the
148151PR to main, such that a potentially broken version is not kept in the main
149- branch's history. For example, if v0.1.2rc1 failed, its commit will not be
152+ branch's history. For example, if v0.1.2rc1 failed, its commit will not be
150153part of the main branch.
0 commit comments