Skip to content

Commit

Permalink
Bump version to 0.1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
CamLamb committed Jul 25, 2023
1 parent e070271 commit f78c377
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 1 deletion.
9 changes: 9 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,12 @@ migrate:

makemigrations:
$(manage) makemigrations

build-package:
poetry build

push-pypi-test:
poetry publish -r test-pypi

push-pypi:
poetry publish
37 changes: 37 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
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 = "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 <[email protected]>", "marcelkornblum <[email protected]>"]
license = "MIT"
Expand Down

0 comments on commit f78c377

Please sign in to comment.