Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump deps #242

Merged
merged 3 commits into from
Dec 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
91 changes: 61 additions & 30 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ tomli = { version = ">=1.2", python = "<3.11" }
mypy = "^1.9.0"
pyright = "^1.1.389"
pytest = "^8.2.2"
ruff = "^0.3.4"
ruff = "^0.8.1"
typing-extensions = "^4.12.2"

types-cffi = "^1.16.0.20240106"
Expand Down
2 changes: 1 addition & 1 deletion ruyi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,6 @@ class NuitkaVersion(typing.NamedTuple):
no_annotations: bool
module: bool
main: str
onefile_argv0: str | None
original_argv0: str | None

__compiled__: NuitkaVersion
6 changes: 3 additions & 3 deletions ruyi/utils/nuitka.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ def get_argv0() -> str:
import ruyi

try:
if ruyi.__compiled__.onefile_argv0 is not None:
return ruyi.__compiled__.onefile_argv0
if ruyi.__compiled__.original_argv0 is not None:
return ruyi.__compiled__.original_argv0
except AttributeError:
# Either we're not packaged with Nuitka, or the Nuitka used is
# without our onefile_argv0 patch, in which case we cannot do any
# without our original_argv0 patch, in which case we cannot do any
# better than simply returning sys.argv[0].
pass

Expand Down

This file was deleted.