forked from MaterializeInc/kubernetes-stubs
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build for any version of kubernetes-client-python
- Loading branch information
Showing
5 changed files
with
50 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
dist | ||
__pycache__ | ||
venv/ | ||
|
||
kubernetes-client-python/ | ||
kubernetes-stubs/ | ||
kubernetes_ext/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
set -e | ||
|
||
VERSION=$1 | ||
echo 'version:' $VERSION | ||
|
||
# clean up | ||
rm -rf kubernetes-client-python \ | ||
kubernetes-stubs \ | ||
kubernetes_ext \ | ||
dist | ||
|
||
# install | ||
pip install --upgrade pip wheel setuptools | ||
pip install -r scripts/requirements.txt | ||
|
||
mkdir -p kubernetes-client-python/scripts | ||
pushd kubernetes-client-python/scripts | ||
wget https://github.com/kubernetes-client/python/raw/v${VERSION}/scripts/swagger.json | ||
popd | ||
|
||
poetry run python codegen | ||
|
||
./bin/fmt | ||
|
||
# Is there any better way to update version from command line? | ||
toml set --toml-path pyproject.toml tool.poetry.version "${VERSION}.dev0" | ||
|
||
poetry build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
poetry==1.1.7 | ||
|
||
black~=21.6b0 | ||
isort~=5.9.2 | ||
inflection~=0.5.1 | ||
click<8.1 | ||
|
||
toml-cli |