Skip to content

Commit

Permalink
python
Browse files Browse the repository at this point in the history
  • Loading branch information
pierskarsenbarg committed Aug 5, 2024
1 parent d7527eb commit d9a2d41
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,11 @@ tasks:
- pulumi package gen-sdk ./bin/{{.PROVIDER}} --language python
- cp README.md {{.SDK_DIR}}/python/
- |
cd {{.SDK_DIR}}/python/ && \
python3 setup.py clean --all 2>/dev/null && \
rm -rf ./bin/ ../python.bin/ && cp -R . ../python.bin && mv ../python.bin ./bin && \
sed -i.bak -e 's/^VERSION = .*/VERSION = "{{.PYTHON_VERSION}}"/g' -e 's/^PLUGIN_VERSION = .*/PLUGIN_VERSION = "{{.VERSION}}"/g' ./bin/setup.py && \
rm ./bin/setup.py.bak
cd {{.SDK_DIR}}/python/
# python3 setup.py clean --all 2>/dev/null && \
# rm -rf ./bin/ ../python.bin/ && cp -R . ../python.bin && mv ../python.bin ./bin && \
# sed -i.bak -e 's/^VERSION = .*/VERSION = "{{.PYTHON_VERSION}}"/g' -e 's/^PLUGIN_VERSION = .*/PLUGIN_VERSION = "{{.VERSION}}"/g' ./bin/setup.py && \
# rm ./bin/setup.py.bak
# cd ./bin && python3 setup.py build sdist
vars:
PYTHON_VERSION:
Expand Down

0 comments on commit d9a2d41

Please sign in to comment.