Skip to content

Commit

Permalink
Resolved missmatch between versions on build.
Browse files Browse the repository at this point in the history
  • Loading branch information
hmosousa committed Nov 19, 2023
1 parent ba1baec commit 686f7f9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 28 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install build
- name: Extract tag name
id: tag
run: echo ::set-output name=TAG_NAME::$(echo $GITHUB_REF | cut -d / -f 3)
- name: Build package
run: python -m build
- name: Publish package
Expand Down
18 changes: 5 additions & 13 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from setuptools import find_packages, setup
import subprocess
import os
from pathlib import Path
from setuptools import find_packages, setup

PWD = Path(__file__).parent.resolve()

Expand All @@ -19,10 +18,11 @@
v, i, s = version.split("-")
version = v + "+" + i + ".git." + s

# assert os.path.isfile("tieval/version.py")
version_path = PWD / "tieval" / "VERSION"
version_path.write_text(f"{version}\n", encoding="utf-8")

if not version:
version = version_path.read_text(encoding="utf-8").strip()
else:
version_path.write_text(f"{version}\n", encoding="utf-8")

setup(
name="tieval",
Expand Down Expand Up @@ -54,12 +54,4 @@
'Programming Language :: Python :: 3.10',
],
python_requires=">=3.8",
extras_requires={
"dev": [
"py_test>=3.7",
"check-manifest",
"twine"
]
},

)
12 changes: 0 additions & 12 deletions tieval/version.py

This file was deleted.

0 comments on commit 686f7f9

Please sign in to comment.