topgrade


Nametopgrade JSON
Version 16.0.1 PyPI version JSON
download
home_pageNone
SummaryUpgrade all the things
upload_time2024-10-11 03:01:58
maintainerNone
docs_urlNone
authorRoey Darwish Dror <roey.ghost@gmail.com>, Thomas Schönauer <t.schoenauer@hgs-wt.at>
requires_python>=3.7
licenseGPL-3.0
keywords upgrade update
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <div align="center">
  <h1>
    <img alt="Topgrade" src="doc/topgrade_transparent.png" width="850px">
  </h1>
  
  <a href="https://github.com/topgrade-rs/topgrade/releases"><img alt="GitHub Release" src="https://img.shields.io/github/release/topgrade-rs/topgrade.svg"></a>
  <a href="https://crates.io/crates/topgrade"><img alt="crates.io" src="https://img.shields.io/crates/v/topgrade.svg"></a>
  <a href="https://aur.archlinux.org/packages/topgrade"><img alt="AUR" src="https://img.shields.io/aur/version/topgrade.svg"></a>
  <a href="https://formulae.brew.sh/formula/topgrade"><img alt="Homebrew" src="https://img.shields.io/homebrew/v/topgrade.svg"></a>

  <img alt="Demo" src="doc/topgrade_demo.gif">
</div>


## Introduction

> **Note**
> This is a fork of [topgrade by r-darwish](https://github.com/r-darwish/topgrade) to keep it maintained.

Keeping your system up to date usually involves invoking multiple package managers.
This results in big, non-portable shell one-liners saved in your shell.
To remedy this, **Topgrade** detects which tools you use and runs the appropriate commands to update them.

## Installation

[![Packaging status](https://repology.org/badge/vertical-allrepos/topgrade.svg)](https://repology.org/project/topgrade/versions)

- Arch Linux: [AUR](https://aur.archlinux.org/packages/topgrade)
- NixOS: [Nixpkgs](https://search.nixos.org/packages?show=topgrade)
- Void Linux: [XBPS](https://voidlinux.org/packages/?arch=x86_64&q=topgrade)
- macOS: [Homebrew](https://formulae.brew.sh/formula/topgrade) or [MacPorts](https://ports.macports.org/port/topgrade/)
- Windows: [Chocolatey][choco], [Scoop][scoop] or [Winget][winget]
- PyPi: [pip](https://pypi.org/project/topgrade/)

[choco]: https://community.chocolatey.org/packages/topgrade
[scoop]: https://scoop.sh/#/apps?q=topgrade
[winget]: https://winstall.app/apps/topgrade-rs.topgrade

Other systems users can either use `cargo install` or the compiled binaries from the release page.
The compiled binaries contain a self-upgrading feature.

## Usage

Just run `topgrade`.

## Configuration 

See `config.example.toml` for an example configuration file.

## Migration and Breaking Changes

Whenever there is a **breaking change**, the major version number will be bumped,
and we will document these changes in the release note, please take a look at 
it when updated to a major release.

> Got a question? Feel free to open an issue or discussion!

### Configuration Path

#### `CONFIG_DIR` on each platform
- **Windows**: `%APPDATA%`
- **macOS** and **other Unix systems**: `${XDG_CONFIG_HOME:-~/.config}`

`topgrade` will look for the configuration file in the following places, in order of priority:

1. `CONFIG_DIR/topgrade.toml`
2. `CONFIG_DIR/topgrade/topgrade.toml`

If the file with higher priority is present, no matter it is valid or not, the other configuration files will be ignored.

On the first run(no configuration file exists), `topgrade` will create a configuration file at `CONFIG_DIR/topgrade.toml` for you.

### Custom Commands

Custom commands can be defined in the config file which can be run before, during, or after the inbuilt commands, as required.
By default, the custom commands are run using a new shell according to the `$SHELL` environment variable on unix (falls back to `sh`) or `pwsh` on windows (falls back to `powershell`).

On unix, if you want to run your command using an interactive shell, for example to source your shell's rc files, you can add `-i` at the start of your custom command.
But note that this requires the command to exit the shell correctly or else the shell will hang indefinitely.

## Remote Execution

You can specify a key called `remote_topgrades` in the configuration file.
This key should contain a list of hostnames that have Topgrade installed on them.
Topgrade will use `ssh` to run `topgrade` on remote hosts before acting locally.
To limit the execution only to specific hosts use the `--remote-host-limit` parameter.

## Contribution

### Problems or missing features?

Open a new issue describing your problem and if possible provide a solution.

### Missing a feature or found an unsupported tool/distro?

Just let us now what you are missing by opening an issue.
For tools, please open an issue describing the tool, which platforms it supports and if possible, give us an example of its usage.

### Want to contribute to the code?

Just fork the repository and start coding.

### Contribution Guidelines

See [CONTRIBUTING.md](https://github.com/topgrade-rs/topgrade/blob/master/CONTRIBUTING.md)

## Roadmap

- [ ] Add a proper testing framework to the code base.
- [ ] Add unit tests for package managers.
- [ ] Split up code into more maintainable parts, eg. putting every linux package manager in a own submodule of linux.rs.


            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "topgrade",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": null,
    "keywords": "upgrade, update",
    "author": "Roey Darwish Dror <roey.ghost@gmail.com>, Thomas Sch\u00f6nauer <t.schoenauer@hgs-wt.at>",
    "author_email": "Roey Darwish Dror <roey.ghost@gmail.com>, Thomas Sch\u00f6nauer <t.schoenauer@hgs-wt.at>",
    "download_url": "https://files.pythonhosted.org/packages/33/d5/6d8c8aef3b905eaea28ad5c0cc8e6a17ef8212282ed2ddde3106e36e75d5/topgrade-16.0.1.tar.gz",
    "platform": null,
    "description": "<div align=\"center\">\n  <h1>\n    <img alt=\"Topgrade\" src=\"doc/topgrade_transparent.png\" width=\"850px\">\n  </h1>\n  \n  <a href=\"https://github.com/topgrade-rs/topgrade/releases\"><img alt=\"GitHub Release\" src=\"https://img.shields.io/github/release/topgrade-rs/topgrade.svg\"></a>\n  <a href=\"https://crates.io/crates/topgrade\"><img alt=\"crates.io\" src=\"https://img.shields.io/crates/v/topgrade.svg\"></a>\n  <a href=\"https://aur.archlinux.org/packages/topgrade\"><img alt=\"AUR\" src=\"https://img.shields.io/aur/version/topgrade.svg\"></a>\n  <a href=\"https://formulae.brew.sh/formula/topgrade\"><img alt=\"Homebrew\" src=\"https://img.shields.io/homebrew/v/topgrade.svg\"></a>\n\n  <img alt=\"Demo\" src=\"doc/topgrade_demo.gif\">\n</div>\n\n\n## Introduction\n\n> **Note**\n> This is a fork of [topgrade by r-darwish](https://github.com/r-darwish/topgrade) to keep it maintained.\n\nKeeping your system up to date usually involves invoking multiple package managers.\nThis results in big, non-portable shell one-liners saved in your shell.\nTo remedy this, **Topgrade** detects which tools you use and runs the appropriate commands to update them.\n\n## Installation\n\n[![Packaging status](https://repology.org/badge/vertical-allrepos/topgrade.svg)](https://repology.org/project/topgrade/versions)\n\n- Arch Linux: [AUR](https://aur.archlinux.org/packages/topgrade)\n- NixOS: [Nixpkgs](https://search.nixos.org/packages?show=topgrade)\n- Void Linux: [XBPS](https://voidlinux.org/packages/?arch=x86_64&q=topgrade)\n- macOS: [Homebrew](https://formulae.brew.sh/formula/topgrade) or [MacPorts](https://ports.macports.org/port/topgrade/)\n- Windows: [Chocolatey][choco], [Scoop][scoop] or [Winget][winget]\n- PyPi: [pip](https://pypi.org/project/topgrade/)\n\n[choco]: https://community.chocolatey.org/packages/topgrade\n[scoop]: https://scoop.sh/#/apps?q=topgrade\n[winget]: https://winstall.app/apps/topgrade-rs.topgrade\n\nOther systems users can either use `cargo install` or the compiled binaries from the release page.\nThe compiled binaries contain a self-upgrading feature.\n\n## Usage\n\nJust run `topgrade`.\n\n## Configuration \n\nSee `config.example.toml` for an example configuration file.\n\n## Migration and Breaking Changes\n\nWhenever there is a **breaking change**, the major version number will be bumped,\nand we will document these changes in the release note, please take a look at \nit when updated to a major release.\n\n> Got a question? Feel free to open an issue or discussion!\n\n### Configuration Path\n\n#### `CONFIG_DIR` on each platform\n- **Windows**: `%APPDATA%`\n- **macOS** and **other Unix systems**: `${XDG_CONFIG_HOME:-~/.config}`\n\n`topgrade` will look for the configuration file in the following places, in order of priority:\n\n1. `CONFIG_DIR/topgrade.toml`\n2. `CONFIG_DIR/topgrade/topgrade.toml`\n\nIf the file with higher priority is present, no matter it is valid or not, the other configuration files will be ignored.\n\nOn the first run(no configuration file exists), `topgrade` will create a configuration file at `CONFIG_DIR/topgrade.toml` for you.\n\n### Custom Commands\n\nCustom commands can be defined in the config file which can be run before, during, or after the inbuilt commands, as required.\nBy default, the custom commands are run using a new shell according to the `$SHELL` environment variable on unix (falls back to `sh`) or `pwsh` on windows (falls back to `powershell`).\n\nOn unix, if you want to run your command using an interactive shell, for example to source your shell's rc files, you can add `-i` at the start of your custom command.\nBut note that this requires the command to exit the shell correctly or else the shell will hang indefinitely.\n\n## Remote Execution\n\nYou can specify a key called `remote_topgrades` in the configuration file.\nThis key should contain a list of hostnames that have Topgrade installed on them.\nTopgrade will use `ssh` to run `topgrade` on remote hosts before acting locally.\nTo limit the execution only to specific hosts use the `--remote-host-limit` parameter.\n\n## Contribution\n\n### Problems or missing features?\n\nOpen a new issue describing your problem and if possible provide a solution.\n\n### Missing a feature or found an unsupported tool/distro?\n\nJust let us now what you are missing by opening an issue.\nFor tools, please open an issue describing the tool, which platforms it supports and if possible, give us an example of its usage.\n\n### Want to contribute to the code?\n\nJust fork the repository and start coding.\n\n### Contribution Guidelines\n\nSee [CONTRIBUTING.md](https://github.com/topgrade-rs/topgrade/blob/master/CONTRIBUTING.md)\n\n## Roadmap\n\n- [ ] Add a proper testing framework to the code base.\n- [ ] Add unit tests for package managers.\n- [ ] Split up code into more maintainable parts, eg. putting every linux package manager in a own submodule of linux.rs.\n\n",
    "bugtrack_url": null,
    "license": "GPL-3.0",
    "summary": "Upgrade all the things",
    "version": "16.0.1",
    "project_urls": {
        "Source Code": "https://github.com/topgrade-rs/topgrade"
    },
    "split_keywords": [
        "upgrade",
        " update"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "0508a9b2765a71713ac1fc25a9902b988498d8a24d4990b2434764d60eedabce",
                "md5": "dbd0fd6335254d7929bcf16a0105c9fa",
                "sha256": "18b728df91ca412f4e16115a0d23642ea780a2540da4c55a43f0f7a43e18f257"
            },
            "downloads": -1,
            "filename": "topgrade-16.0.1-py3-none-macosx_10_12_x86_64.whl",
            "has_sig": false,
            "md5_digest": "dbd0fd6335254d7929bcf16a0105c9fa",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 2625787,
            "upload_time": "2024-10-11T03:01:45",
            "upload_time_iso_8601": "2024-10-11T03:01:45.014895Z",
            "url": "https://files.pythonhosted.org/packages/05/08/a9b2765a71713ac1fc25a9902b988498d8a24d4990b2434764d60eedabce/topgrade-16.0.1-py3-none-macosx_10_12_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "acd2bce7b5885a0cba1ea509e6b035b9b648c8615fc20e154c0b3c28f35473cb",
                "md5": "70ef9797f79fb431dd3234160254ffd5",
                "sha256": "5d91e04edcd0e31e6c1e7f84e86937888e0b7721541d1b273030ff58e5a21c2f"
            },
            "downloads": -1,
            "filename": "topgrade-16.0.1-py3-none-macosx_11_0_arm64.whl",
            "has_sig": false,
            "md5_digest": "70ef9797f79fb431dd3234160254ffd5",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 2423796,
            "upload_time": "2024-10-11T03:01:47",
            "upload_time_iso_8601": "2024-10-11T03:01:47.002260Z",
            "url": "https://files.pythonhosted.org/packages/ac/d2/bce7b5885a0cba1ea509e6b035b9b648c8615fc20e154c0b3c28f35473cb/topgrade-16.0.1-py3-none-macosx_11_0_arm64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "bcb7547e264e940b397a1c9779f2a49d7265a7284e759e90b83465ce28e637d4",
                "md5": "148be3aa073f3caafc633d0fdf907bb6",
                "sha256": "5326bf3427e727088874337ea81e8b0fce917bb4d9c732217268e04540144006"
            },
            "downloads": -1,
            "filename": "topgrade-16.0.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl",
            "has_sig": false,
            "md5_digest": "148be3aa073f3caafc633d0fdf907bb6",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 4217662,
            "upload_time": "2024-10-11T03:01:48",
            "upload_time_iso_8601": "2024-10-11T03:01:48.425605Z",
            "url": "https://files.pythonhosted.org/packages/bc/b7/547e264e940b397a1c9779f2a49d7265a7284e759e90b83465ce28e637d4/topgrade-16.0.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "bef450651847723a24d9cfeb723cdce1c1af80f56bdf15ed4fcd5d69468401df",
                "md5": "feb1e01ffb366e6de0f84f1023311332",
                "sha256": "0ca4f74088b0e1e70ca95126281ddf48613b4e2fc4ed1e2d2cc1768517b683d9"
            },
            "downloads": -1,
            "filename": "topgrade-16.0.1-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl",
            "has_sig": false,
            "md5_digest": "feb1e01ffb366e6de0f84f1023311332",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 4209864,
            "upload_time": "2024-10-11T03:01:50",
            "upload_time_iso_8601": "2024-10-11T03:01:50.247327Z",
            "url": "https://files.pythonhosted.org/packages/be/f4/50651847723a24d9cfeb723cdce1c1af80f56bdf15ed4fcd5d69468401df/topgrade-16.0.1-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "29b100ceb078d44dfd5d64f677acbf93ac44e887ab69aeba9f23adef8ab455ef",
                "md5": "7fb38ed106d015b0b1cb047c1f5d76f9",
                "sha256": "4e94a8feb948838a4ef1a9019caa5debeeb7e2687dd91106dfafcd6af1869428"
            },
            "downloads": -1,
            "filename": "topgrade-16.0.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "has_sig": false,
            "md5_digest": "7fb38ed106d015b0b1cb047c1f5d76f9",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 4281916,
            "upload_time": "2024-10-11T03:01:51",
            "upload_time_iso_8601": "2024-10-11T03:01:51.909220Z",
            "url": "https://files.pythonhosted.org/packages/29/b1/00ceb078d44dfd5d64f677acbf93ac44e887ab69aeba9f23adef8ab455ef/topgrade-16.0.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "2fa987f911d22a6ac794673b50cc71f53f8858ce194742c9944cc2fd51db1766",
                "md5": "8ede50e63e81f34d89a45346fde0da6e",
                "sha256": "c001d6724434233a3daac86155c061bafd54260b55410d7cba8e5ab543000dc4"
            },
            "downloads": -1,
            "filename": "topgrade-16.0.1-py3-none-win32.whl",
            "has_sig": false,
            "md5_digest": "8ede50e63e81f34d89a45346fde0da6e",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 2076254,
            "upload_time": "2024-10-11T03:01:53",
            "upload_time_iso_8601": "2024-10-11T03:01:53.941328Z",
            "url": "https://files.pythonhosted.org/packages/2f/a9/87f911d22a6ac794673b50cc71f53f8858ce194742c9944cc2fd51db1766/topgrade-16.0.1-py3-none-win32.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "46ad8c443e58350df6dcf11594bef1e7bee108714c764152be8ddb4dbc418ea6",
                "md5": "ec20ff0e573bb6a6ef037c9c3551f753",
                "sha256": "d8b57b9c85731e92f2cc46c5194f4a8e2022a52d95ca35a3cad168f8467eadd9"
            },
            "downloads": -1,
            "filename": "topgrade-16.0.1-py3-none-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "ec20ff0e573bb6a6ef037c9c3551f753",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 2320630,
            "upload_time": "2024-10-11T03:01:55",
            "upload_time_iso_8601": "2024-10-11T03:01:55.826079Z",
            "url": "https://files.pythonhosted.org/packages/46/ad/8c443e58350df6dcf11594bef1e7bee108714c764152be8ddb4dbc418ea6/topgrade-16.0.1-py3-none-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "33d56d8c8aef3b905eaea28ad5c0cc8e6a17ef8212282ed2ddde3106e36e75d5",
                "md5": "feb67c06db0e3a796b2e3784cdbde3b6",
                "sha256": "719c7aa268223c116583a1c7d88e1035656e4f44ebdc90ce4be402b036cc92af"
            },
            "downloads": -1,
            "filename": "topgrade-16.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "feb67c06db0e3a796b2e3784cdbde3b6",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 4415129,
            "upload_time": "2024-10-11T03:01:58",
            "upload_time_iso_8601": "2024-10-11T03:01:58.556231Z",
            "url": "https://files.pythonhosted.org/packages/33/d5/6d8c8aef3b905eaea28ad5c0cc8e6a17ef8212282ed2ddde3106e36e75d5/topgrade-16.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-11 03:01:58",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "topgrade-rs",
    "github_project": "topgrade",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "topgrade"
}
        
Elapsed time: 0.35268s