Skip to content

Commit

Permalink
bump: anta v0.5.0 (#158)
Browse files Browse the repository at this point in the history
* ci: Enable pypi upload

* bump: version v0.5.0

---------

Co-authored-by: Thomas Grimonet <[email protected]>
  • Loading branch information
titom73 and titom73 authored Mar 31, 2023
1 parent 4df1644 commit 4528133
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 36 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 0.3.0
current_version = 0.5.0
commit = True
tag = True
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\-(?P<release>[a-z]+))?
Expand Down
54 changes: 21 additions & 33 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,47 +6,35 @@ on:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+' # Push events to matching v*, i.e. v1.0, v20.15.10
jobs:
# release:
# name: Create Github Release
# runs-on: ubuntu-latest
# steps:
# - name: Checkout code
# uses: actions/checkout@v3
# with:
# fetch-depth: 0

# - name: Generate Changelog
# run: |
# echo "MUST BE IMPLEMENTED"

# pypi:
# name: Publish version to Pypi servers
# runs-on: ubuntu-latest
# needs: [release]
# steps:
# - name: Checkout code
# uses: actions/checkout@v2
pypi:
name: Publish version to Pypi servers
runs-on: ubuntu-latest
needs: [release]
steps:
- name: Checkout code
uses: actions/checkout@v3

# - name: Install dependencies
# run: |
# python -m pip install --upgrade pip
# pip install setuptools wheel build
# - name: Build package
# run: |
# python -m build
# - name: Publish package to TestPyPI
# uses: pypa/gh-action-pypi-publish@release/v1
# with:
# user: __token__
# password: ${{ secrets.PYPI_API_TOKEN }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel build
- name: Build package
run: |
python -m build
- name: Publish package to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}

docker:
name: Docker Image Build
runs-on: ubuntu-latest
needs: [pypi]
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Docker meta for TAG
id: meta
Expand All @@ -65,7 +53,7 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v2
uses: docker/build-push-action@v4
with:
context: .
file: Dockerfile
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "anta"
version = "v0.4.0"
version = "v0.5.0"
readme = "README.md"
authors = [{ name = "Khelil Sator", email = "[email protected]" }]
maintainers = [
Expand Down Expand Up @@ -117,7 +117,7 @@ warn_untyped_fields = true
legacy_tox_ini = """
[tox]
min_version = 4.0
envlist =
envlist =
clean,
py{38,39,310},
lint,
Expand Down

0 comments on commit 4528133

Please sign in to comment.