Commit Graph
18 Commits
Author SHA1 Message Date
innocentzero a963d6a2db refact(rustup): Remove clippy warnings
Clippy warnings were not enabled at the time of the previous commits.

Signed-off-by: innocentzero <isfarulhaque@proton.me>
2024-04-02 04:51:15 +05:30
innocentzero c7596f62b7 refact(rustup): Use anyhow::Error
Remove repeated instances of anyhow::Error and make the code sparser.

Signed-off-by: innocentzero <isfarulhaque@proton.me>
2024-04-02 04:51:15 +05:30
innocentzero 4e2ef50df7 fix(rustup): remove standalone components
This patch targets the removal of standalone components that are not
removed as a part of a toolchain. This was previously ignored.

Signed-off-by: innocentzero <isfarulhaque@proton.me>
2024-04-02 04:51:15 +05:30
innocentzero 97b4077b02 feat(rustup): Remove packages
Signed-off-by: innocentzero <isfarulhaque@proton.me>
2024-04-02 04:51:15 +05:30
innocentzero f9528241e7 refact(rustup): Refector install_packages
Signed-off-by: innocentzero <isfarulhaque@proton.me>
2024-04-02 04:51:15 +05:30
innocentzero fbedd6da49 feat(rustup): install packages
Rustup is now able to install toolchains and
components and works with multiple toolchains and
components for each toolchain.

Signed-off-by: innocentzero <isfarulhaque@proton.me>
2024-04-02 04:51:15 +05:30
innocentzero ea2c51620a refact(rustup): fetch installed toolchains and components
Refactor the functions used for fetching installed
components and toolchains.

Signed-off-by: innocentzero <isfarulhaque@proton.me>
2024-04-02 04:51:15 +05:30
innocentzero d4551a6a2b feat(rustup): add rustup as a module 2024-04-02 04:51:15 +05:30
innocentzero 1ad93cec96 refact(package.rs): Expose repo field publicly
Expose repo field publicly for install_packages in
rustup backend to utilize, otherwise very ugly
hacks need to be used to handle toolchains and
components.

Signed-off-by: innocentzero <isfarulhaque@proton.me>
2024-04-02 04:51:15 +05:30
innocentzero ccd108591f feat(rustup): Add rustup as a backend
Adds rustup as a backend for pacdef. Only works on
components listed for now.

Signed-off-by: innocentzero <isfarulhaque@proton.me>
2024-04-02 04:51:15 +05:30
innocentzero e7a10cc0ec fix(python): panic on empty pip_binary in config
Signed-off-by: innocentzero <isfarulhaque@proton.me>
2024-02-15 12:58:50 +05:30
innocentzero 34a428f280 refactor(minor code changes) 2024-01-28 03:11:41 +05:30
innocentzero bf01859f05 fix(Update README)
Added instructions to the README regarding pipx configuration.

Signed-off-by: innocentzero <isfarulhaque@proton.me>
2024-01-28 01:01:22 +05:30
innocentzero fb21691e64 fix(remove collection of dependencies)
https://github.com/steven-omaha/pacdef/pull/50#issuecomment-1912284202

Signed-off-by: innocentzero <isfarulhaque@proton.me>
2024-01-27 23:52:48 +05:30
innocentzero b8cfd9e24f feat(pipx support): Fully supports pipx features
Now able to support packages installed via pipx with the exception of
packages that do not provide a binary themselves. Install those
explicitly via `pipx install --include-deps <package>`.

Signed-off-by: innocentzero <isfarulhaque@proton.me>
2024-01-27 23:35:37 +05:30
innocentzero 2a7c5d5288 FIX refactored switches and output parsing
Removed inlined switches to a separate function for both explicit
installs and all installs and added a match statement to parse the
outputs accordingly.

Signed-off-by: innocentzero <isfarulhaque@proton.me>
2024-01-25 11:52:16 +05:30
innocentzero 242af523b4 FIX iterate through json generated by pipx
While it is now able to iterate through JSON created by pipx, it is
unable to read the JSON with the error `EOF while parsing a value
at line 1 column 0`

Signed-off-by: innocentzero <isfarulhaque@proton.me>
2024-01-24 20:21:05 +05:30
innocentzero 050a844bc2 feat(pipx support): Add support for pipx
This is a series of commits intended to add support for pipx in pacdef.
WIP.

Signed-off-by: innocentzero <isfarulhaque@proton.me>
2024-01-23 20:42:54 +05:30