Comments (14)
Hey, Can I pick this?
from huak.
That happened because I was trying to discard my commit since it was not in sync with your master upstream. Wasn't expecting that to happen. I thought it should just discard the commit
from huak.
There are a few ways to do this, each varying in difficulty and robustness. Since the goal for the initial poc-like alpha is to just get the structure right, make it modular, and selectively choose features to "Go Rust" with:
a. Just use the Venv
to parse the version string from the stdout (or potentially use RustPython
).
b. Use PyPI API to get metadata before adding to the toml and installing.
from huak.
Sure!
from huak.
Hey just a heads up I'm starting to lean towards just setting up some PyPI integration (#34). That would be useful for this and #11.
from huak.
I am making a call to pypi to retrieve the file info. When the user runs cargo add typer
, a call is made to https://pypi.org/pypi/typer/json.
I am able to deserialize the response to local struct, but I am only trying to figure how to retrieve the latest version of the package, and then know where to download the package.
from huak.
Nice! Love it.
Can we do this in something like huak::package::metadata
or something?
from huak.
I'm not opposed to doing huak::package::manifest
either.
from huak.
ok then
from huak.
Hi @cnpryer Does add
add the package and version to the toml file. I am leveraging what happens with the install command after getting the metadata/manifest
from huak.
I am leveraging what happens with the install command after getting the metadata/manifest
hmm what do you mean by this? add
should add the installed package to the pyproject. --dev
should add it under dev-dependencies.
from huak.
Hey I'm happy to help out with this! Feel free to submit a draft PR. I can check it out.
If not this has been on my agenda for a bit and would be related to #34. I could hop on this soon.
from huak.
I am leveraging the implementation already in install
command. I will create a draft PR so you get an idea of what I am referring to
from huak.
Hey! Thanks again for helping! I see you closed your PR. Would you like for me to take this?
from huak.
Related Issues (20)
- Allow init command to install project dependencies
- Storing project dev dependencies outside of core metadata
- Add lazy dependency installation for commands HOT 1
- Initialize projects with toolchains
- Refactor ops options
- Improve *VersionLike* to `Channel`
- Requirement compatibility in toolchains HOT 1
- Manage downloads for toolchain more efficiently
- Rust API Naming Guidelines
- Fallback to toolchain for dev commands HOT 1
- All tests are failing HOT 6
- Huak activate changes the shell I'm using HOT 1
- `huak python list` doesn't recognize installed toolchains
- Use cargo-dist HOT 1
- Proxy toolchains from Huak's top-level bin directory HOT 1
- Use `uv`
- Use Oranda
- Improve huak-python-manager tooling
- (v0.0.8-alpha2) Stack overflow in ops::fix::tests::fix HOT 2
- Error during install dependencies: `huak install` HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from huak.