-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
Python: Rye - Package Manager #410
Comments
Rye: Python ๆฐ็ๅ ็ฎก็ๅทฅๅ ทRye ้กน็ฎ็ฎไป:
Python็คพๅบ็ฎๅๅทฒๆๆนๆก:
ๆไฝฟ็จ็ๆนๆก:
|
Rye ไฝฟ็จๆ็จ:Rye ๅฎ่ฃ +้ ็ฝฎ:Rye ๅฎ่ฃ :curl -sSf https://rye-up.com/get | bash Rye ้ ็ฝฎ็ฏๅขๅ้:
Rye +
|
้ ็ฝฎๆไปถ:ๅ จๅฑ:
[[sources]]
name = "company-internal"
url = "https://company.internal/simple/" ้กน็ฎๅ :
[[tool.rye.sources]]
name = "company-internal"
url = "https://company.internal/simple/" toolchainsrye pin cpython@3.11.4
rye toolchain list
rye toolchain fetch cpython@3.8.5
rye toolchain remove cpython@3.8.5
|
python + rust ๆไปถ:rye init my-project --build-system maturin
cd maturin
rye add --dev pip
rye sync |
ๅๅธๅ :ๆๅปบ:rye build
rye build --wheel --out target
rye build --clean
ๅๅธ:rye publish
rye publish dist/example-0.1.0.tar.gz
rye publish --token <your_token> --yes |
ๅฎ่ฃ ๆฅๅฟ:task: [install:rye] curl -sSf https://rye-up.com/get | bash
This script will automatically download and install rye (latest) for you.
######################################################################## 100.0%
Welcome to Rye!
This installer will install rye to /Users/dev/.rye
This path can be changed by exporting the RYE_HOME environment variable.
Details:
Rye Version: 0.13.0
Platform: macos (aarch64)
Continue? yes
Installed binary to /Users/dev/.rye/shims/rye
Bootstrapping rye internals
Downloading cpython@3.11.5
Checking checksum
success: Downloaded cpython@3.11.5
Upgrading pip
Installing internal dependencies
Updated self-python installation at /Users/dev/.rye/self
The rye directory /Users/dev/.rye/shims was not detected on PATH.
It is highly recommended that you add it.
Add this at the end of your .profile, .zprofile or similar:
source "$HOME/.rye/env"
Note: after adding rye to your path, restart your shell for it to take effect.
For more information read https://mitsuhiko.github.io/rye/guide/installation
All done!
โฏ rye --version
rye 0.13.0
commit: 0.13.0 (8e011231e 2023-08-29)
platform: macos (aarch64)
self-python: cpython@3.11
symlink support: true
|
1 |
1 similar comment
1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
๐ Abstract:
๐ฏ Related:
The text was updated successfully, but these errors were encountered: