Skip to content

Commit

Permalink
Upload the wheel to the new release instead of including it in the repo
Browse files Browse the repository at this point in the history
  • Loading branch information
alvinlindstam committed Jun 13, 2019
1 parent 1bd358b commit d4ecca0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
build-release:
python3 setup.py bdist_wheel --dist-dir wheels
python3 setup.py bdist_wheel
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ This module exposes the necessary API to create a worker which starts polling me
We can install the library through github by writing the dependency in `requirements.txt` as:

```
https://raw.githubusercontent.com/epidemicsound/aws-sqs-worker/master/wheels/aws_sqs_worker-0.0.1-py3-none-any.whl
https://github.com/epidemicsound/aws-sqs-worker/releases/download/v0.0.1/aws_sqs_worker-0.0.1-py3-none-any.whl
```

Replace 0.0.1 with the desired version!
Replace 0.0.1 with the desired version, on both places in the url!

If using pipenv, you can also run `pipenv install https://raw.githubusercontent.com/epidemicsound/aws-sqs-worker/master/wheels/aws_sqs_worker-0.0.1-py3-none-any.whl`.
If using pipenv, you can also run `pipenv install https://github.com/epidemicsound/aws-sqs-worker/releases/download/v0.0.1/aws_sqs_worker-0.0.1-py3-none-any.whl`.

## Steps necessary to create a worker for the process:

Expand Down Expand Up @@ -57,8 +57,10 @@ Use semantic versioning for this library. When bumping the version, please updat
* setup.py
* this readme

Make sure you generate a new wheel (after bumping the version) by running `make build-release`.
Merge into master.

Make sure that the new wheel is named `aws_sqs_worker-<version>-py3-none-any.whl` and is in the `wheels` folder..
Generate a new wheel (after bumping the version and being on the new master) by running `make build-release`.

Include the wheel in git.
Make sure that there is a new wheel named `aws_sqs_worker-<version>-py3-none-any.whl` and is in the `dist` folder.

Create a github release and upload the wheel file to the release.

0 comments on commit d4ecca0

Please sign in to comment.