Loading operational +21 −0 Original line number Diff line number Diff line Loading @@ -608,6 +608,27 @@ set.AGENT_STARTUP_ARGS=-Xms256m -Xmx1024m how to make release-rd-api and release-rd not depend on each other? do I need to create more than one pipeline? read more about pipeline design. Concepts in GoCD | GoCD User Documentation https://docs.gocd.org/current/introduction/concepts_in_go.html create two new downstream pipelines to do the release. release-rd-api release-rd need to fix ~/projects/reliable-download/pypi/rd-api/Makefile ~/projects/reliable-download/pypi/rd-client/Makefile to support artifacts in build/ and support debian bookworm and later. well, I can just create package on debian stretch. an older version of readme_renderer can work on older python. - 3rd party storage (i.e. S3) is supported for artifacts. https://go.emacsos.com/go/admin/artifact_stores Loading pypi/rd-api/Makefile +17 −8 Original line number Diff line number Diff line VERSION := $(shell grep 'cliVersion =' ../../lib/RD/CliVersion.hs | cut -d'"' -f2) TWINE := python3 -m twine default: @echo "usage: make [dist|install|upload]" bootstrap: @if ! python3 -c 'import readme_renderer'; then python3 -m pip install --user readme_renderer ; fi @test -f ~/.local/bin/wheel || python3 -m pip install --user wheel @test -f ~/.local/bin/twine || python3 -m pip install --user twine @python3 -c 'import readme_renderer' || python3 -m pip install --user readme_renderer @python3 -c 'import wheel' || python3 -m pip install --user wheel @python3 -c 'import twine' || python3 -m pip install --user twine dist: bootstrap cp -u `stack path --local-install-root`/bin/rd-api rdapi/ if [ -f build/rd-api ]; then \ install build/rd-api rdapi/ ; \ else \ cp -u `stack path --local-install-root`/bin/rd-api rdapi/ ; \ fi rm -rf dist/* python3 setup.py -q bdist_wheel --universal ~/.local/bin/twine check --strict dist/* $(TWINE) check --strict dist/* upload: dist ~/.local/bin/twine upload -u __token__ -p $(RD_API_TWINE_TOKEN) dist/* $(TWINE) upload -u __token__ -p $(RD_API_TWINE_TOKEN) dist/* testupload: dist env TWINE_PASSWORD=XVgnIVGGFjlMRxDV ~/.local/bin/twine upload --repository-url https://test.pypi.org/legacy/ dist/* env TWINE_PASSWORD=XVgnIVGGFjlMRxDV $(TWINE) upload --repository-url https://test.pypi.org/legacy/ dist/* install: dist python3 -m pip install --user dist/rd_api-$(VERSION)-py2.py3-none-any.whl if which pipx; then \ pipx install dist/rd_api-$(VERSION)-py2.py3-none-any.whl ; \ else \ python3 -m pip install --user dist/rd_api-$(VERSION)-py2.py3-none-any.whl ; \ fi .PHONY: default twine dist upload install pypi/rd-client/Makefile +17 −8 Original line number Diff line number Diff line VERSION := $(shell grep 'cliVersion =' ../../lib/RD/CliVersion.hs | cut -d'"' -f2) TWINE := python3 -m twine default: @echo "usage: make [dist|install|upload]" bootstrap: if ! python3 -c 'import readme_renderer'; then python3 -m pip install --user readme_renderer ; fi test -f ~/.local/bin/wheel || python3 -m pip install --user wheel test -f ~/.local/bin/twine || python3 -m pip install --user twine @python3 -c 'import readme_renderer' || python3 -m pip install --user readme_renderer @python3 -c 'import wheel' || python3 -m pip install --user wheel @python3 -c 'import twine' || python3 -m pip install --user twine dist: bootstrap cp -u `stack path --local-install-root`/bin/rd rdclient/ if [ -f build/rd-api ]; then \ install build/rd rdclient/ ; \ else \ cp -u `stack path --local-install-root`/bin/rd rdclient/ ; \ fi rm -rf dist/* python3 setup.py -q bdist_wheel --universal ~/.local/bin/twine check --strict dist/* $(TWINE) check --strict dist/* upload: dist ~/.local/bin/twine upload -u __token__ -p $(RD_CLIENT_TWINE_TOKEN) dist/* $(TWINE) upload -u __token__ -p $(RD_CLIENT_TWINE_TOKEN) dist/* testupload: dist env TWINE_PASSWORD=XVgnIVGGFjlMRxDV ~/.local/bin/twine upload --repository-url https://test.pypi.org/legacy/ dist/* env TWINE_PASSWORD=XVgnIVGGFjlMRxDV $(TWINE) upload --repository-url https://test.pypi.org/legacy/ dist/* install: dist python3 -m pip install --user dist/rd-$(VERSION)-py2.py3-none-any.whl if which pipx; then \ pipx install dist/rd_api-$(VERSION)-py2.py3-none-any.whl ; \ else \ python3 -m pip install --user dist/rd-$(VERSION)-py2.py3-none-any.whl ; \ fi .PHONY: default twine dist upload install Loading
operational +21 −0 Original line number Diff line number Diff line Loading @@ -608,6 +608,27 @@ set.AGENT_STARTUP_ARGS=-Xms256m -Xmx1024m how to make release-rd-api and release-rd not depend on each other? do I need to create more than one pipeline? read more about pipeline design. Concepts in GoCD | GoCD User Documentation https://docs.gocd.org/current/introduction/concepts_in_go.html create two new downstream pipelines to do the release. release-rd-api release-rd need to fix ~/projects/reliable-download/pypi/rd-api/Makefile ~/projects/reliable-download/pypi/rd-client/Makefile to support artifacts in build/ and support debian bookworm and later. well, I can just create package on debian stretch. an older version of readme_renderer can work on older python. - 3rd party storage (i.e. S3) is supported for artifacts. https://go.emacsos.com/go/admin/artifact_stores Loading
pypi/rd-api/Makefile +17 −8 Original line number Diff line number Diff line VERSION := $(shell grep 'cliVersion =' ../../lib/RD/CliVersion.hs | cut -d'"' -f2) TWINE := python3 -m twine default: @echo "usage: make [dist|install|upload]" bootstrap: @if ! python3 -c 'import readme_renderer'; then python3 -m pip install --user readme_renderer ; fi @test -f ~/.local/bin/wheel || python3 -m pip install --user wheel @test -f ~/.local/bin/twine || python3 -m pip install --user twine @python3 -c 'import readme_renderer' || python3 -m pip install --user readme_renderer @python3 -c 'import wheel' || python3 -m pip install --user wheel @python3 -c 'import twine' || python3 -m pip install --user twine dist: bootstrap cp -u `stack path --local-install-root`/bin/rd-api rdapi/ if [ -f build/rd-api ]; then \ install build/rd-api rdapi/ ; \ else \ cp -u `stack path --local-install-root`/bin/rd-api rdapi/ ; \ fi rm -rf dist/* python3 setup.py -q bdist_wheel --universal ~/.local/bin/twine check --strict dist/* $(TWINE) check --strict dist/* upload: dist ~/.local/bin/twine upload -u __token__ -p $(RD_API_TWINE_TOKEN) dist/* $(TWINE) upload -u __token__ -p $(RD_API_TWINE_TOKEN) dist/* testupload: dist env TWINE_PASSWORD=XVgnIVGGFjlMRxDV ~/.local/bin/twine upload --repository-url https://test.pypi.org/legacy/ dist/* env TWINE_PASSWORD=XVgnIVGGFjlMRxDV $(TWINE) upload --repository-url https://test.pypi.org/legacy/ dist/* install: dist python3 -m pip install --user dist/rd_api-$(VERSION)-py2.py3-none-any.whl if which pipx; then \ pipx install dist/rd_api-$(VERSION)-py2.py3-none-any.whl ; \ else \ python3 -m pip install --user dist/rd_api-$(VERSION)-py2.py3-none-any.whl ; \ fi .PHONY: default twine dist upload install
pypi/rd-client/Makefile +17 −8 Original line number Diff line number Diff line VERSION := $(shell grep 'cliVersion =' ../../lib/RD/CliVersion.hs | cut -d'"' -f2) TWINE := python3 -m twine default: @echo "usage: make [dist|install|upload]" bootstrap: if ! python3 -c 'import readme_renderer'; then python3 -m pip install --user readme_renderer ; fi test -f ~/.local/bin/wheel || python3 -m pip install --user wheel test -f ~/.local/bin/twine || python3 -m pip install --user twine @python3 -c 'import readme_renderer' || python3 -m pip install --user readme_renderer @python3 -c 'import wheel' || python3 -m pip install --user wheel @python3 -c 'import twine' || python3 -m pip install --user twine dist: bootstrap cp -u `stack path --local-install-root`/bin/rd rdclient/ if [ -f build/rd-api ]; then \ install build/rd rdclient/ ; \ else \ cp -u `stack path --local-install-root`/bin/rd rdclient/ ; \ fi rm -rf dist/* python3 setup.py -q bdist_wheel --universal ~/.local/bin/twine check --strict dist/* $(TWINE) check --strict dist/* upload: dist ~/.local/bin/twine upload -u __token__ -p $(RD_CLIENT_TWINE_TOKEN) dist/* $(TWINE) upload -u __token__ -p $(RD_CLIENT_TWINE_TOKEN) dist/* testupload: dist env TWINE_PASSWORD=XVgnIVGGFjlMRxDV ~/.local/bin/twine upload --repository-url https://test.pypi.org/legacy/ dist/* env TWINE_PASSWORD=XVgnIVGGFjlMRxDV $(TWINE) upload --repository-url https://test.pypi.org/legacy/ dist/* install: dist python3 -m pip install --user dist/rd-$(VERSION)-py2.py3-none-any.whl if which pipx; then \ pipx install dist/rd_api-$(VERSION)-py2.py3-none-any.whl ; \ else \ python3 -m pip install --user dist/rd-$(VERSION)-py2.py3-none-any.whl ; \ fi .PHONY: default twine dist upload install