GeezerVison is showing github.com — fix: Fixed 0.54.1 version to publish it to pypi · Marcus-Rosti/feast@8ae05d1
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: pyproject.toml +6-5Lines changed: 6 additions & 5 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -3,16 +3,17 @@ name = "feast" |
3 | 3 | description = "Python SDK for Feast" |
4 | 4 | readme = "README.md" |
5 | 5 | 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" |
7 | 9 | classifiers = [ |
8 | | - "License :: OSI Approved :: Apache Software License", |
9 | 10 | "Programming Language :: Python", |
10 | 11 | "Programming Language :: Python :: 3", |
11 | 12 | "Programming Language :: Python :: 3.10" |
12 | 13 | ] |
13 | | -dynamic = [ |
14 | | - "version", |
15 | | -] |
| 14 | +# dynamic = [ |
| 15 | +# "version", |
| 16 | +# ] |
16 | 17 | dependencies = [ |
17 | 18 | "click>=7.0.0,<9.0.0", |
18 | 19 | "colorama>=0.3.9,<1", |
|
Collapse file
Copy file name to clipboardExpand all lines: setup.py +5-11Lines changed: 5 additions & 11 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
302 | 302 | with open(README_FILE, "r", encoding="utf8") as f: |
303 | 303 | LONG_DESCRIPTION = f.read() |
304 | 304 |
|
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" |
311 | 307 |
|
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 |
317 | 310 |
|
318 | 311 | PYTHON_CODE_PREFIX = "sdk/python" |
319 | 312 |
|
320 | 313 |
|
321 | 314 | setup( |
322 | 315 | name=NAME, |
| 316 | + version=FIXED_VERSION if FIXED_VERSION else None, |
323 | 317 | author=AUTHOR, |
324 | 318 | description=DESCRIPTION, |
325 | 319 | long_description=LONG_DESCRIPTION, |
|