Giter Club home page Giter Club logo

Comments (14)

0101coding avatar 0101coding commented on August 23, 2024 1

Hey, Can I pick this?

from huak.

0101coding avatar 0101coding commented on August 23, 2024 1

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.

cnpryer avatar cnpryer commented on August 23, 2024

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.

cnpryer avatar cnpryer commented on August 23, 2024

Sure!

from huak.

cnpryer avatar cnpryer commented on August 23, 2024

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.

0101coding avatar 0101coding commented on August 23, 2024

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.

cnpryer avatar cnpryer commented on August 23, 2024

Nice! Love it.

Can we do this in something like huak::package::metadata or something?

from huak.

cnpryer avatar cnpryer commented on August 23, 2024

I'm not opposed to doing huak::package::manifest either.

from huak.

0101coding avatar 0101coding commented on August 23, 2024

ok then

from huak.

0101coding avatar 0101coding commented on August 23, 2024

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.

cnpryer avatar cnpryer commented on August 23, 2024

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.

cnpryer avatar cnpryer commented on August 23, 2024

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.

0101coding avatar 0101coding commented on August 23, 2024

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.

cnpryer avatar cnpryer commented on August 23, 2024

Hey! Thanks again for helping! I see you closed your PR. Would you like for me to take this?

from huak.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.