Skip to content

Commit 8ae05d1

Browse files
committed
fix: Fixed 0.54.1 version to publish it to pypi
Signed-off-by: ntkathole <nikhilkathole2683@gmail.com>
1 parent 8b57796 commit 8ae05d1

File tree

2 files changed

+11
-16
lines changed

2 files changed

+11
-16
lines changed

pyproject.toml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,17 @@ name = "feast"
33
description = "Python SDK for Feast"
44
readme = "README.md"
55
requires-python = ">=3.10.0"
6-
license = {file = "LICENSE"}
6+
license = "Apache-2.0"
7+
# Hardcoded version for v0.54-branch quick fix
8+
version = "0.54.1"
79
classifiers = [
8-
"License :: OSI Approved :: Apache Software License",
910
"Programming Language :: Python",
1011
"Programming Language :: Python :: 3",
1112
"Programming Language :: Python :: 3.10"
1213
]
13-
dynamic = [
14-
"version",
15-
]
14+
# dynamic = [
15+
# "version",
16+
# ]
1617
dependencies = [
1718
"click>=7.0.0,<9.0.0",
1819
"colorama>=0.3.9,<1",

setup.py

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -302,24 +302,18 @@
302302
with open(README_FILE, "r", encoding="utf8") as f:
303303
LONG_DESCRIPTION = f.read()
304304

305-
# Add Support for parsing tags that have a prefix containing '/' (ie 'sdk/go') to setuptools_scm.
306-
# Regex modified from default tag regex in:
307-
# https://github.com/pypa/setuptools_scm/blob/2a1b46d38fb2b8aeac09853e660bcd0d7c1bc7be/src/setuptools_scm/config.py#L9
308-
TAG_REGEX = re.compile(
309-
r"^(?:[\/\w-]+)?(?P<version>[vV]?\d+(?:\.\d+){0,2}[^\+]*)(?:\+.*)?$"
310-
)
305+
# Hardcoded version for v0.54-branch quick fix
306+
FIXED_VERSION = "0.54.1"
311307

312-
# Only set use_scm_version if git executable exists (setting this variable causes pip to use git under the hood)
313-
if shutil.which("git"):
314-
use_scm_version = {"root": ".", "relative_to": __file__, "tag_regex": TAG_REGEX}
315-
else:
316-
use_scm_version = None
308+
# Only set use_scm_version if git executable exists and we're not using a fixed version
309+
use_scm_version = None
317310

318311
PYTHON_CODE_PREFIX = "sdk/python"
319312

320313

321314
setup(
322315
name=NAME,
316+
version=FIXED_VERSION if FIXED_VERSION else None,
323317
author=AUTHOR,
324318
description=DESCRIPTION,
325319
long_description=LONG_DESCRIPTION,

0 commit comments

Comments
 (0)