Skip to content

Commit

Permalink
features: Apple M1/M2 binaries! + upgrade crcset to use WASM fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
AminRezaei0x443 committed Feb 14, 2023
1 parent b95cfd9 commit cdb5e60
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 6 deletions.
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "rift-framework"
version = "0.9.13"
version = "0.9.14"
description = "The magical Python -> TON Portal"
authors = ["Amin Rezaei <[email protected]>"]
license = "MIT"
Expand All @@ -20,7 +20,7 @@ appdirs = "~1.4.4"
colorful = "~0.5.4"
tqdm = "^4.64.1"
setuptools = "^65.6.3"
rift-tonlib = "^0.0.2"
rift-tonlib = "^0.0.3"
cryptography = "^39.0.0"
pynacl = "^1.5.0"
rich = "^13.3.1"
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ pynacl==1.5.0 ; python_version >= "3.10" and python_version < "4.0"
pyyaml==6.0 ; python_version >= "3.10" and python_version < "4.0"
requests==2.28.2 ; python_version >= "3.10" and python_version < "4"
rich==13.3.1 ; python_version >= "3.10" and python_version < "4.0"
rift-tonlib==0.0.2 ; python_version >= "3.10" and python_version < "4.0"
rift-tonlib==0.0.3 ; python_version >= "3.10" and python_version < "4.0"
setuptools==65.6.3 ; python_version >= "3.10" and python_version < "4.0"
tomlkit==0.11.4 ; python_version >= "3.10" and python_version < "4.0"
tqdm==4.64.1 ; python_version >= "3.10" and python_version < "4.0"
Expand Down
13 changes: 11 additions & 2 deletions rift/runtime/riftlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@


class RiftLibSetup:
version = 2
version = 3
urls = {
"windows": "https://github.com/AminRezaei0x443/ton/releases/download/v0.1.5/rift-lib-win64.dll",
"darwin": "https://github.com/AminRezaei0x443/ton/releases/download/v0.1.5/rift-lib-macOS.dylib",
"darwin-slc": "https://github.com/AminRezaei0x443/ton/releases/download/v0.1.5/rift-lib-macOS-silicon.dylib",
"linux-u18": "https://github.com/AminRezaei0x443/ton/releases/download/v0.1.5/rift-lib-ubuntu-18.04.so",
"linux-u20": "https://github.com/AminRezaei0x443/ton/releases/download/v0.1.5/rift-lib-ubuntu-20.04.so",
"linux-u22": "https://github.com/AminRezaei0x443/ton/releases/download/v0.1.5/rift-lib-ubuntu-22.04.so",
Expand Down Expand Up @@ -54,8 +55,16 @@ def _ubuntu_version(cls) -> int:
@classmethod
def determine_lib(cls) -> str:
s = platform.uname().system.lower()
if s == "windows" or s == "darwin":
if s == "windows":
return cls.urls[s]
if s == "darwin":
proc = platform.processor()
if proc == "i386":
return cls.urls[s]
elif proc == "arm":
return cls.urls[f"{s}-slc"]
else:
raise RuntimeError(f"Unknown processor: {proc}")
uv = cls._ubuntu_version()
if uv == -1:
raise RuntimeError("Unsupported os")
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name="rift-framework",
version="0.9.13",
version="0.9.14",
description="A magical Python3 -> TON portal",
license="MIT",
packages=find_packages(exclude=["test"]),
Expand Down

0 comments on commit cdb5e60

Please sign in to comment.