Skip to content

Commit 4608b55

Browse files
fix: Resolve version manually (#143)
[*] Updating some dependencies - exceptiongroup 1.2.1 -> 1.2.2 - importlib-metadata 7.1.0 -> 8.0.0 - packaging 24.0 -> 24.1 - zipp 3.19.1 -> 3.19.2 [*] revert: Manually define version This fixes #141 where compiling python with nuitka with --standalone flag causes runtime errors with importlib.metadata. This patch also removes the now unneeded importlib-metadata dependency Thanks to Abdullah Albanna <[email protected]> who raised this issue and helped out in debugging. [*] Bump version v2.0.4 -> v2.0.5 --- Fixes #141 Co-authored-by: Abdullah Albanna <[email protected]> Signed-off-by: AlexNg <[email protected]>
2 parents 6e950a7 + 7eba41c commit 4608b55

File tree

12 files changed

+37
-72
lines changed

12 files changed

+37
-72
lines changed

CITATION.cff

+5-5
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ identifiers:
99
value: 10.5281/zenodo.10799219
1010
description: This is the collection of archived snapshots of all versions of thread.
1111
- type: url
12-
value: https://github.com/python-thread/thread/releases/tag/v2.0.4
13-
description: The GitHub release URL of tag v2.0.4.
12+
value: https://github.com/python-thread/thread/releases/tag/v2.0.5
13+
description: The GitHub release URL of tag v2.0.5.
1414
- type: url
15-
value: https://pypi.org/project/thread/2.0.4
16-
description: The PyPI release URL of tag v2.0.4.
15+
value: https://pypi.org/project/thread/2.0.5
16+
description: The PyPI release URL of tag v2.0.5.
1717
cff-version: 1.2.0
1818
date-released: 2024-03-07
1919
keywords:
@@ -32,5 +32,5 @@ repository-code: https://github.com/python-thread/thread
3232
repository-artifact: https://pypi.org/project/thread
3333
title: thread
3434
type: software
35-
version: 2.0.4
35+
version: 2.0.5
3636
url: https://thread.ngjx.org

docs/src/pages/_meta.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"type": "menu",
1616
"items": {
1717
"latest-release": {
18-
"title": "2.0.4 Latest Release",
18+
"title": "2.0.5 Latest Release",
1919
"href": "/docs/latest"
2020
},
2121
"v1-release": {

docs/src/pages/docs/_meta.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010
"timestamp": false
1111
}
1212
},
13-
"latest": "v2.0.4 Latest",
13+
"latest": "v2.0.5 Latest",
1414
"v1": "v1.1.1"
1515
}

docs/src/pages/docs/index.mdx

+12-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ This is a list of all the available releases.
6969
>
7070
<div className="flex flex-row items-center gap-2">
7171
<ExternalLinkIcon className="w-6 h-6" />
72-
<Text className="text-lg font-bold">Latest v2.0.4</Text>
72+
<Text className="text-lg font-bold">Latest v2.0.5</Text>
7373
</div>
7474
<Text className="text-sm font-light text-left ml-4">
7575
This is the latest ***stable*** release.
@@ -110,6 +110,17 @@ This is a list of all the available releases.
110110
</div>
111111
<StatusBadge variant="dev">dev</StatusBadge>
112112
</Link>
113+
<Link
114+
target="_blank"
115+
href="/github/v2.0.5"
116+
className="flex flex-row w-full justify-between px-4 py-2 rounded-md items-center text-sm font-light hover:bg-neutral-100/40 dark:hover:bg-neutral-800/20 transition-all"
117+
>
118+
<div className="flex flex-col justify-between">
119+
<h1 className="font-normal text-lg">Release v2.0.5</h1>
120+
<p>14 July 2024</p>
121+
</div>
122+
<StatusBadge variant="stable">stable</StatusBadge>
123+
</Link>
113124
<Link
114125
target="_blank"
115126
href="/github/v2.0.4"

docs/src/pages/docs/latest/index.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ import { Cards, Card } from "nextra/components";
1111

1212
This is `thread`, a Python library which extends Python's built-in `threading` library.
1313

14-
## Thread v2.0.4
14+
## Thread v2.0.5
1515

16-
You are viewing the documentation for the `v2.0.4` release.<br />
16+
You are viewing the documentation for the `v2.0.5` release.<br />
1717
This is the most recent stable release of `thread`.
1818

1919
## Quick Start

docs/src/pages/index.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Thread v2.0.4
2+
title: Thread v2.0.5
33
---
44

55
import Link from "next/link";
@@ -71,7 +71,7 @@ export function Feature({
7171
<span className="bg-clip-text text-transparent bg-gradient-to-r from-pink-500 to-violet-500">
7272
<span>Thread</span>
7373
</span>
74-
<span>&nbsp;- v2.0.4</span>
74+
<span>&nbsp;- v2.0.5</span>
7575
</h1>
7676
<div className="text-center">
7777
<PackageManager />

docs/theme.config.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const Head = () => {
5050
const { route } = useRouter();
5151

5252
const pageTitle =
53-
route === "/" || !title ? "Thread v2.0.4" : `${title} | Thread v2.0.4`;
53+
route === "/" || !title ? "Thread v2.0.5" : `${title} | Thread v2.0.5`;
5454
const socialImage = "https://thread.ngjx.org/socialcard-white.jpg";
5555

5656
return (
@@ -125,7 +125,7 @@ const config: DocsThemeConfig = {
125125
const { asPath } = useRouter();
126126
if (asPath !== "/") {
127127
return {
128-
titleTemplate: "%s | Thread v2.0.4",
128+
titleTemplate: "%s | Thread v2.0.5",
129129
};
130130
}
131131
},

poetry.lock

+8-42
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "thread"
3-
version = "2.0.4"
3+
version = "2.0.5"
44
description = "Threading module extension"
55
authors = ["Alex <[email protected]>"]
66
license = "BSD-3-Clause"
@@ -30,7 +30,7 @@ classifiers = [
3030

3131
[tool.poetry.urls]
3232
Homepage = "https://thread.ngjx.org"
33-
Documentation = "https://thread.ngjx.org/docs/v2.0.4"
33+
Documentation = "https://thread.ngjx.org/docs/v2.0.5"
3434
Source = "https://github.com/python-thread/thread"
3535
Download = "https://pypi.org/project/thread/#files"
3636
"Release Notes" = "https://github.com/python-thread/thread/releases"
@@ -42,7 +42,6 @@ thread = "thread.__main__:app"
4242
[tool.poetry.dependencies]
4343
python = "^3.9"
4444
typing-extensions = "^4.9.0"
45-
importlib-metadata = { version = ">=4.4", python = "<3.10" }
4645

4746
[tool.poetry.group.dev.dependencies]
4847
pytest = ">=7.4.3,<9.0.0"

src/thread/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""
22
## Thread Library
3-
Documentation at https://thread.ngjx.org/docs/2.0.4
3+
Documentation at https://thread.ngjx.org/docs/2.0.5
44
55
66
---

src/thread/utils/meta.py

-9
This file was deleted.

src/thread/version.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
1-
from .utils.meta import metadata
2-
3-
__version__ = metadata.version('thread')
1+
__version__ = '2.0.5'
42
__all__ = ['__version__']

0 commit comments

Comments
 (0)