Skip to content

Commit

Permalink
Publish new version
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackHC committed Mar 5, 2024
1 parent 0b4a25f commit 2639de5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
13 changes: 11 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,17 @@ clean-build: ## clean build artifacts
.PHONY: publish
publish: ## publish a release to pypi.
@echo "🚀 Publishing: Dry run."
@poetry config pypi-token.pypi $(PYPI_TOKEN)
@poetry publish --dry-run
@echo "🚀 Configuring pypi token."
@PYPI_TOKEN=$$(grep -A 1 pypi ~/.pypirc | tail -n 1 | awk '{print $$3}'); \
if [ -z "$$PYPI_TOKEN" ]; then \
echo "🚀 No PYPI_TOKEN found in ~/.pypirc"; \
exit 1; \
else \
echo "🚀 Found PYPI_TOKEN in ~/.pypirc"; \
fi; \
poetry config pypi-token.pypi $$PYPI_TOKEN;
@echo "🚀 Publishing dry run."
poetry publish --dry-run
@echo "🚀 Publishing."
@poetry publish

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "llm_strategy"
version = "2.1.1"
version = "2.2.0"
description = "Directly Connecting Python to LLMs - Dataclasses & Interfaces <-> LLMs"
authors = ["Andreas Kirsch, Daedalus Lab Ltd <blackhc@gmail.com>"]
repository = "https://github.com/blackhc/llm-strategy"
Expand Down

0 comments on commit 2639de5

Please sign in to comment.