fastrelease


Namefastrelease JSON
Version 0.0.17 PyPI version JSON
download
home_pagehttps://github.com/fastai/fastrelease/tree/master/
SummarySimplified releases using GitHub Issues
upload_time2020-10-19 22:59:11
maintainer
docs_urlNone
authorJeremy Howard
requires_python>=3.4
licenseApache Software License 2.0
keywords nbdev release github
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # fastrelease
> Auto-generated tagged releases, and release notes (from GitHub issues).


`fastrelease` provides two commands that you can run from your shell:

- `nbdev_changelog`: creates a CHANGELOG.md file from closed and labeled GitHub issues
- `nbdev_tag_release`: tags and creates a release in GitHub for the current version.

Be sure to check out the full documentation at [fastrelease.fast.ai](https://fastrelease.fast.ai/). Here's a brief demonstration of how to use `fastrelease`. This demo first creates an issue using the [`gh`](https://cli.github.com/) command line tool, and then closes it using `git`; you can also use GitHub's web interface for both of these tasks.

<a href="images/intro.svg"><img src="https://raw.githubusercontent.com/fastai/fastrelease/master/images/intro.svg" width="900px" /></a>

## Install

`fastrelease` has only one small prerequisite (`fastcore`) and will run on Python 3.6 or later. You can install from pip:

`pip install fastrelease`

...or conda:

`conda install -c fastai fastrelease`

## How to use

### Set up

First, create a `settings.ini` file with the following contents (replacing the values as described below):

```
[DEFAULT]
lib_name = fastrelease
user = fastai
version = 0.0.1
```

Set `lib_name` to the name of GitHub repo, `user` to the owner of that repo, and `version` to the version number of your library. (Note that if you use [nbdev](https://nbdev.fast.ai) then you'll already have this information, so you don't need to do anything further to set it up.)

You'll need to get a GitHub [personal access token](https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token) if you haven't already. To do so, [click here](https://github.com/settings/tokens/new) and enter "fastrelease" in the "Note" section, and click the `repo` checkbox.

Then click "Generate Token" at the bottom of the screen, and copy the token (the long string of letters and numbers shown). You can easily do that by clicking the little clipboard icon next to the token.

<img alt="Copying your token" width="743" caption="Copying your token" src="https://raw.githubusercontent.com/fastai/fastrelease/master/images/att_00001.png">

Paste that token into a file called `token` into the root of your repo. You can run the following in your terminal (`cd` to the root of your repo first) to create that file:

    echo XXX > token

Replace *XXX* above with the token you copied. Also, ensure that this file isn't added to git, by running this in your terminal:

    echo token >> .gitignore

### Creating release notes

Now you're ready to create your release notes. These are created in a file called `CHANGELOG.md`. Here's an example of what it creates: [nbdev CHANGELOG](https://github.com/fastai/nbdev/blob/master/CHANGELOG.md).

All issues with the label **bug**, **enhancement**, or **breaking** that have been closed in your repo since your last release will be added to the top of this file. If you haven't made any releases before, then all issues with those labels will be included.

Therefore, before you create or update `CHANGELOG.md`, go to your GitHub issues page, remove `is:open` from the filter, and label any issues you want included with one of the labels above. When you've done that, you can create or update your release notes by running in your terminal:

    fastrelease_changelog

The titles and bodies of each issue will be added. Open `CHANGELOG.md` in your editor and make any edits that you want, and then commit the file to your repo (remember to `git add` it!)

### Tagging a release

You should now tag a release. This will create a tag in GitHub with your current version number in `settings.ini`, and will then make it into a release, using your latest release notes as the description of the release:

    fastrelease_release

After you run this, be sure to increment your version number in `settings.ini`. You can either edit it manually, or if you use nbdev it can be done for you by running:

    nbdev_bump_version

### Doing both (creating release notes, and tagging a release)

To complete both of the steps above, run:

```
fastrelease
```

See the screencast above for a demonstration of this.




            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/fastai/fastrelease/tree/master/",
    "name": "fastrelease",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.4",
    "maintainer_email": "",
    "keywords": "nbdev release github",
    "author": "Jeremy Howard",
    "author_email": "info@fast.ai",
    "download_url": "https://files.pythonhosted.org/packages/b4/b5/041354b0e6782f35e344a22e14faeade62ac032c8b4284729f358e5a8e0a/fastrelease-0.0.17.tar.gz",
    "platform": "",
    "description": "# fastrelease\n> Auto-generated tagged releases, and release notes (from GitHub issues).\n\n\n`fastrelease` provides two commands that you can run from your shell:\n\n- `nbdev_changelog`: creates a CHANGELOG.md file from closed and labeled GitHub issues\n- `nbdev_tag_release`: tags and creates a release in GitHub for the current version.\n\nBe sure to check out the full documentation at [fastrelease.fast.ai](https://fastrelease.fast.ai/). Here's a brief demonstration of how to use `fastrelease`. This demo first creates an issue using the [`gh`](https://cli.github.com/) command line tool, and then closes it using `git`; you can also use GitHub's web interface for both of these tasks.\n\n<a href=\"images/intro.svg\"><img src=\"https://raw.githubusercontent.com/fastai/fastrelease/master/images/intro.svg\" width=\"900px\" /></a>\n\n## Install\n\n`fastrelease` has only one small prerequisite (`fastcore`) and will run on Python 3.6 or later. You can install from pip:\n\n`pip install fastrelease`\n\n...or conda:\n\n`conda install -c fastai fastrelease`\n\n## How to use\n\n### Set up\n\nFirst, create a `settings.ini` file with the following contents (replacing the values as described below):\n\n```\n[DEFAULT]\nlib_name = fastrelease\nuser = fastai\nversion = 0.0.1\n```\n\nSet `lib_name` to the name of GitHub repo, `user` to the owner of that repo, and `version` to the version number of your library. (Note that if you use [nbdev](https://nbdev.fast.ai) then you'll already have this information, so you don't need to do anything further to set it up.)\n\nYou'll need to get a GitHub [personal access token](https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token) if you haven't already. To do so, [click here](https://github.com/settings/tokens/new) and enter \"fastrelease\" in the \"Note\" section, and click the `repo` checkbox.\n\nThen click \"Generate Token\" at the bottom of the screen, and copy the token (the long string of letters and numbers shown). You can easily do that by clicking the little clipboard icon next to the token.\n\n<img alt=\"Copying your token\" width=\"743\" caption=\"Copying your token\" src=\"https://raw.githubusercontent.com/fastai/fastrelease/master/images/att_00001.png\">\n\nPaste that token into a file called `token` into the root of your repo. You can run the following in your terminal (`cd` to the root of your repo first) to create that file:\n\n    echo XXX > token\n\nReplace *XXX* above with the token you copied. Also, ensure that this file isn't added to git, by running this in your terminal:\n\n    echo token >> .gitignore\n\n### Creating release notes\n\nNow you're ready to create your release notes. These are created in a file called `CHANGELOG.md`. Here's an example of what it creates: [nbdev CHANGELOG](https://github.com/fastai/nbdev/blob/master/CHANGELOG.md).\n\nAll issues with the label **bug**, **enhancement**, or **breaking** that have been closed in your repo since your last release will be added to the top of this file. If you haven't made any releases before, then all issues with those labels will be included.\n\nTherefore, before you create or update `CHANGELOG.md`, go to your GitHub issues page, remove `is:open` from the filter, and label any issues you want included with one of the labels above. When you've done that, you can create or update your release notes by running in your terminal:\n\n    fastrelease_changelog\n\nThe titles and bodies of each issue will be added. Open `CHANGELOG.md` in your editor and make any edits that you want, and then commit the file to your repo (remember to `git add` it!)\n\n### Tagging a release\n\nYou should now tag a release. This will create a tag in GitHub with your current version number in `settings.ini`, and will then make it into a release, using your latest release notes as the description of the release:\n\n    fastrelease_release\n\nAfter you run this, be sure to increment your version number in `settings.ini`. You can either edit it manually, or if you use nbdev it can be done for you by running:\n\n    nbdev_bump_version\n\n### Doing both (creating release notes, and tagging a release)\n\nTo complete both of the steps above, run:\n\n```\nfastrelease\n```\n\nSee the screencast above for a demonstration of this.\n\n\n\n",
    "bugtrack_url": null,
    "license": "Apache Software License 2.0",
    "summary": "Simplified releases using GitHub Issues",
    "version": "0.0.17",
    "split_keywords": [
        "nbdev",
        "release",
        "github"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "d7d454812029a0bdd257b32cd53c15e4",
                "sha256": "bc0bd84e9b6575ee993562acf34aa88a6430b3ff2f4c6d1022ab2c37002e3f2e"
            },
            "downloads": -1,
            "filename": "fastrelease-0.0.17-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "d7d454812029a0bdd257b32cd53c15e4",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.4",
            "size": 16076,
            "upload_time": "2020-10-19T22:59:09",
            "upload_time_iso_8601": "2020-10-19T22:59:09.649557Z",
            "url": "https://files.pythonhosted.org/packages/d4/54/52660d4836f0ad900c6568db07db2dacecc29949530bb35c464452936f8f/fastrelease-0.0.17-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "aee1f40542be5abc25a65f253e757b9f",
                "sha256": "acac690706425756d80b8513388b5091697a9058169416d1bb0d248a660b1faa"
            },
            "downloads": -1,
            "filename": "fastrelease-0.0.17.tar.gz",
            "has_sig": false,
            "md5_digest": "aee1f40542be5abc25a65f253e757b9f",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.4",
            "size": 13444,
            "upload_time": "2020-10-19T22:59:11",
            "upload_time_iso_8601": "2020-10-19T22:59:11.106531Z",
            "url": "https://files.pythonhosted.org/packages/b4/b5/041354b0e6782f35e344a22e14faeade62ac032c8b4284729f358e5a8e0a/fastrelease-0.0.17.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2020-10-19 22:59:11",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "lcname": "fastrelease"
}
        
Elapsed time: 0.17850s