Skip to content

Commit

Permalink
Bumped version 0.1.0 -> 0.1.1 (#22)
Browse files Browse the repository at this point in the history
* Create python-publish.yml

* upd for bump2version

* Bump version: 0.1.0 → 0.1.1
  • Loading branch information
karolzak authored Jun 5, 2020
1 parent fbfc4f9 commit 6960380
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 2 deletions.
8 changes: 8 additions & 0 deletions .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[bumpversion]
current_version = 0.1.1
commit = True
tag = True

[bumpversion:file:setup.py]

[bumpversion:file:keras_unet/__init__.py]
31 changes: 31 additions & 0 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# This workflows will upload a Python Package using Twine when a release is created
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries

name: Upload Python Package

on:
release:
types: [created]

jobs:
deploy:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPIUSERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPIPW }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
2 changes: 1 addition & 1 deletion keras_unet/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "keras_unet"

__version__ = "0.0.8"
__version__ = "0.1.1"
# TODO add __all__

# from packaging import version # requires 3rd party package
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ setuptools
numpy
matplotlib
tensorflow-cpu
bump2version
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

setup(
name="keras-unet",
version="0.1.0",
version="0.1.1",
description="Helper package with multiple U-Net implementations in Keras as well as useful utility tools helpful when working with image segmentation tasks",
long_description=long_description,
long_description_content_type="text/markdown", # This is important!
Expand Down

0 comments on commit 6960380

Please sign in to comment.