Skip to content

Commit 8ebe458

Browse files
committed
Lets go simple
1 parent 566c347 commit 8ebe458

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

.github/workflows/release_pypi_package.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,7 @@ jobs:
2020
with:
2121
python-version: 3.9
2222

23-
- name: Extract version from github tag, remove v prefix and make it an environment variable
24-
id: extract_version
25-
run: |
26-
VERSION=$(echo ${{ github.ref }} | cut -d'/' -f3)
27-
echo "::set-env name=VERSION::${VERSION#v}"
28-
29-
- name: Build a binary wheel and a source tarball
23+
- name: Build a binary wheel and a source tarball. Get version from github tag (and remove v prefix)
3024
run: python setup.py sdist bdist_wheel
3125

3226
- name: Publish distribution 📦 to PyPI

setup.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
from setuptools import setup, find_packages
2-
import os
32

4-
# get version from env variable
5-
VERSION = os.environ.get("VERSION")
6-
assert VERSION is not None, "VERSION env variable must be set"
3+
4+
VERSION = "0.0.10"
75

86
DESCRIPTION = "Whitebox is an open source E2E ML monitoring platform with edge capabilities that plays nicely with kubernetes"
97
LONG_DESCRIPTION = ""

0 commit comments

Comments
 (0)