Skip to content

Commit 70be1f8

Browse files
authored
Merge pull request #179 from ing-bank/develop
Semantic release CI
2 parents 70917d2 + 840ea18 commit 70be1f8

File tree

10 files changed

+32
-134
lines changed

10 files changed

+32
-134
lines changed

.github/workflows/pypi.yml

Lines changed: 0 additions & 45 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
# Creates a draft release when a new tag is pushed
2-
name: Release
1+
name: Semantic Release
32

43
on:
54
push:
6-
tags:
7-
- "v*.*.*"
5+
branches:
6+
- master
87

98
jobs:
10-
build:
9+
release:
1110
runs-on: ubuntu-latest
11+
concurrency: release
12+
1213
steps:
13-
- name: Checkout
14-
uses: actions/checkout@v2
15-
- name: Get the version
16-
id: get_version
17-
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
18-
- name: Release
19-
uses: softprops/action-gh-release@v1
20-
with:
21-
name: "popmon ${{ steps.get_version.outputs.VERSION }}"
22-
body: "Release notes are available [here](https://github.com/ing-bank/popmon/blob/master/CHANGELOG.md)."
23-
draft: true
14+
- uses: actions/checkout@v2
15+
with:
16+
fetch-depth: 0
17+
18+
- name: Python Semantic Release
19+
uses: relekang/python-semantic-release@master
20+
with:
21+
github_token: ${{ secrets.GITHUB_TOKEN }}
22+
repository_username: __token__
23+
repository_password: ${{ secrets.PYPI_TOKEN }}

.readthedocs.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
# See: https://docs.readthedocs.io/en/latest/yaml-config.html
2-
# .readthedocs.yml
1+
# See: https://docs.readthedocs.io/en/latest/config-file/v2.html
2+
version: 2
33

44
build:
55
image: latest
66

77
python:
8-
version: 3.8
9-
setup_py_install: true
8+
version: '3.8'
109
install:
1110
- requirements: docs/requirements.txt

.versionrc.json

Lines changed: 0 additions & 16 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Release notes
22

3+
<!--next-version-placeholder-->
4+
35
## [v0.4.4](https://github.com/ing-bank/popmon/compare/v0.4.3...v0.4.4) (2021-10-22)
46

57

bump.py

Lines changed: 0 additions & 37 deletions
This file was deleted.

package.json

Lines changed: 0 additions & 13 deletions
This file was deleted.

popmon/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
"""THIS FILE IS AUTO-GENERATED BY SETUP.PY."""
22

3-
version = "0.5.0"
3+
version = "0.4.4"

pyproject.toml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,10 @@ markers = ["spark"]
77
"spark.executor.instances" = 1
88
"master" = "local[*]"
99
"spark.driver.host" = "192.168.1.78"
10-
"spark.sql.catalogImplementation" = "in-memory"
10+
"spark.sql.catalogImplementation" = "in-memory"
11+
12+
[tool.semantic_release]
13+
version_variable = [
14+
"setup.py:__version__",
15+
"popmon/version.py:version",
16+
]

setup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
from setuptools import find_packages, setup
22

3+
__version__ = "0.4.4"
4+
35
with open("requirements.txt") as f:
46
REQUIREMENTS = f.read().splitlines()
57

@@ -15,7 +17,7 @@ def setup_package() -> None:
1517
"""
1618
setup(
1719
name="popmon",
18-
version="0.4.4",
20+
version=__version__,
1921
url="https://github.com/ing-bank/popmon",
2022
license="MIT",
2123
author="ING Wholesale Banking Advanced Analytics",

0 commit comments

Comments
 (0)