From f78c377db7a8286d6d86cb7379aa63400efc3150 Mon Sep 17 00:00:00 2001 From: Cameron Lamb Date: Tue, 25 Jul 2023 16:17:18 +0100 Subject: [PATCH] Bump version to 0.1.4 --- Makefile | 9 +++++++++ README.md | 37 +++++++++++++++++++++++++++++++++++++ pyproject.toml | 2 +- 3 files changed, 47 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index cde631e..04c40ac 100644 --- a/Makefile +++ b/Makefile @@ -20,3 +20,12 @@ migrate: makemigrations: $(manage) makemigrations + +build-package: + poetry build + +push-pypi-test: + poetry publish -r test-pypi + +push-pypi: + poetry publish diff --git a/README.md b/README.md index fdffca1..07f7dbf 100644 --- a/README.md +++ b/README.md @@ -97,3 +97,40 @@ urlpatterns = [ ``` 5. Set up user permissions + +## Pushing to PyPI + +- [PyPI Package](https://pypi.org/project/django-feedback-govuk/) +- [Test PyPI Package](https://test.pypi.org/project/django-feedback-govuk/) + +Running `make build-package` will build the package into the `dist/` directory. + +Running `make push-pypi-test` will push the built package to Test PyPI. + +Running `make push-pypi` will push the built package to PyPI. + +### Setting up poetry for pushing to PyPI + +First you will need to add the test pypy repository to your poetry config: + +``` +poetry config repositories.test-pypi https://test.pypi.org/legacy/ +``` + +Then go to https://test.pypi.org/manage/account/token/ and generate a token. + +Then add it to your poetry config: + +``` +poetry config pypi-token.test-pypi XXXXXXXX +``` + +Then you also need to go to https://pypi.org/manage/account/token/ to generate a token for the real PyPI. + +Then add it to your poetry config: + +``` +poetry config pypi-token.pypi XXXXXXXX +``` + +Now the make commands should work as expected. diff --git a/pyproject.toml b/pyproject.toml index 4a22803..297bc85 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "django-feedback-govuk" -version = "0.1.3" +version = "0.1.4" description = "A Django app to gather and send internal Government staff feedback" authors = ["jafacakes2011 ", "marcelkornblum "] license = "MIT"