Skip to content

Commit

Permalink
Add automagic deploy to pypi and versioning with git tags (#77)
Browse files Browse the repository at this point in the history
* Added automagic deployment from travis
* Adding versioneer
* Fixing version prefix
* Exclude versioneer things from Black linting
* Fix some 3.7 incompatabilities
  • Loading branch information
bobthemighty committed Jan 3, 2019
1 parent 34b69fb commit 4354ea5
Show file tree
Hide file tree
Showing 14 changed files with 2,720 additions and 288 deletions.
1 change: 1 addition & 0 deletions .gitattributes
@@ -0,0 +1 @@
photonpump/_version.py export-subst
28 changes: 15 additions & 13 deletions .travis.yml
@@ -1,21 +1,23 @@
sudo: required

language: python

python:
- 3.6

- 3.6
services:
- docker

- docker
before_install:
- docker run -d -p 127.0.0.1:1113:1113 eventstore/eventstore

- docker run -d -p 127.0.0.1:1113:1113 eventstore/eventstore
install:
- "make init"

- make init
script:
- "make travis"

- make travis
after_success:
- codecov
- codecov
deploy:
provider: pypi
user: bobthemighty
on:
tags: true
distributions: sdist bdist_wheel
repo: madedotcom/photon-pump
password:
secure: Zu90Q3qZ+sA1/ZzsNu/2+RTRIojg8UKRoUqVEHlKbCZ2M5fxfBLNa17hf4RybuHSW66YNdUMoEbvCJeJMnRLMTZdwMkCEGyukZsIsHPE75wbu4EEZNQHwn12Ku4bxtHwNoctomkbnxyQvCIwJLOPNZz8o4BWGGyQjDi4ix2V7p4QFaWNHOsFIAJ1ni4nZuYDxhR+ZX/vWWCeEW9VYY8nY49fiC4XsbY9S7ReNkSDVMy05JQ8/2XeBYO3Ky20BlrvbcvpzApvLbbKH6Cp+NcbjqQrmiW4uvfmFnV3J9af+a2m6vBfqGb7ggAjYAT+AKs8AwT1nHAbCbGqJo5OV8B6QZk2rVs7azRXac+kYnshjwi1y5Ldpks8vT1ZRHeCh5BIwlfMPxw6qYxGto492yLjgXW9VlhkmIfBRcENJCgoDTEPjQGRT41VaXZTYkpZsf59l9szFiSho1D3/IRY1ALc7da8LKavqi/C8LmM1OsHkzwGJDSAW7EjBN2GIEcTA9Ht6bPyyy5Wx47gGuFgj0gp7cz9UEP9CriFdVw5xN8Q2pS9qm+UEr+H0PnyoKwZSHHs3+gYPxxEUMqMX2SVXD9nJ1SkkTSqCNVyr0x+jeOrGVSiDVVJ4hjy0enksYHGRkeCCMAdHyYWRGDyeoCswZFJZPYb1Eub54yX8Ns7PecA5dE=
8 changes: 8 additions & 0 deletions CHANGES.md
@@ -1,3 +1,9 @@
## [0.6.0.1] - 2019-01-03
Add automagic deployment to pypi with Travis and Versioneer

## [0.6.0] - 2018-12-21
Added batch size param to subscribe_to method

## [0.6.0-alpha-5] - 2018-11-09
Fixed: CreatePersistentSubscription command was never cleaned up after success

Expand Down Expand Up @@ -28,6 +34,8 @@ Added support for catch-up subscriptions.
- `published_event` reversed order of type and stream


[0.6.0.1]: https://github.com/madedotcom/photon-pump/compare/v0.6.0..v0.6.0.1
[0.6.0]: https://github.com/madedotcom/photon-pump/compare/v0.6.0-alpha-5..v0.6.0
[0.6.0-alpha-5]: https://github.com/madedotcom/photon-pump/compare/v0.6.0-alpha-4..v0.6.0-alpha-5
[0.6.0-alpha-4]: https://github.com/madedotcom/photon-pump/compare/v0.6.0-alpha-2..v0.6.0-alpha-4
[0.6.0-alpha-2]: https://github.com/madedotcom/photon-pump/compare/v0.6.0-alpha-1..v0.6.0-alpha-2
Expand Down
2 changes: 2 additions & 0 deletions MANIFEST.in
Expand Up @@ -4,3 +4,5 @@ include README.md
include CHANGES.md
include requirements.txt
include requirements-test.txt
include versioneer.py
include photonpump/_version.py
5 changes: 3 additions & 2 deletions Makefile
@@ -1,3 +1,4 @@
BLACK_EXCLUSION=photonpump/__init__.py|photonpump/_version.py|versioneer.py
default: fast_tests
travis: init check_lint all_tests

Expand All @@ -12,10 +13,10 @@ all_tests:
pipenv run pytest

lint:
pipenv run black .
pipenv run black . --exclude "${BLACK_EXCLUSION}"

check_lint:
pipenv run black --check .
pipenv run black --check . --exclude "${BLACK_EXCLUSION}"

continous_test:
PYASYNCIODEBUG=1 pipenv run ptw
6 changes: 4 additions & 2 deletions Pipfile
Expand Up @@ -7,9 +7,10 @@ name = "pypi"
pylint = "*"
pre-commit = "*"
black = "*"
idna-ssl = "*"

[dev-packages]
aioresponses = "*"
aioresponses = {editable = true,git = "https://github.com/Derfirm/aioresponses.git",ref = "b3232a759f3420a0c291b66f794711c87eb98c62"}
pytest-asyncio = "*"
colorama = "*"
"flake8" = "*"
Expand All @@ -18,10 +19,11 @@ pytest-watch = "*"
testfixtures = "*"
codecov = "*"
pytest = "*"
photon-pump = {editable = true, path = "."}
photon-pump = {editable = true,path = "."}
pytest-cov = "*"
neovim = "*"
sphinx = "*"
versioneer = "*"

[requires]
python_version = "3.7"
Expand Down

0 comments on commit 4354ea5

Please sign in to comment.