# Release process

## To release a new version of **loghub** on PyPI:

* Ensure you have the latest version from upstream and update your fork

        git pull upstream master
        git push origin master

* Clean the repo

        git clean -xfdi

* Update CHANGELOG.md using loghub itself

        loghub spyder-ide/loghub -ilg type:feature "Features " -ilg type:enhancement "Enhancements" -ilg type:bug "Bugs fixed" -ilr "reso:completed" --no-prs -u <user> -m <milestone>

* Update version in `__init__.py` (set release version, remove 'dev0')

* Commit changes

        git add .
        git commit -m "Set release version"

* Create distributions

        python setup.py sdist bdist_wheel

* Upload distributions

        twine upload dist/* -u <username> -p <password>

* Add release tag

        git tag -a vX.X.X -m 'Release version'

* Update `__init__.py` (add 'dev0' and increment minor)

* Commint changes

        git add .
        git commit -m "Restore dev version"

* Push changes
    
        git push upstream master
        git push origin master
        git push --tags


## To release a new version of **loghub** on conda-forge:

* Update recipe on the loghub feedstock: https://github.com/conda-forge/loghub-feedstock

# Release process

## To release a new version of **loghub** on PyPI:

* Ensure you have the latest version from upstream and update your fork

      git pull upstream master
      git push origin master

* Clean the repo

      git clean -xfdi

* Update CHANGELOG.md using loghub itself

      loghub spyder-ide/loghub -ilg type:feature "Features " -ilg type:enhancement "Enhancements" -ilg type:bug "Bugs fixed" -ilr "reso:completed" --no-prs -u <user> -m <milestone>

* Update version in `__init__.py` (set release version, remove 'dev0')

* Commit changes

      git add .
      git commit -m "Set release version"

* Create distributions

      python setup.py sdist bdist_wheel

* Upload distributions

      twine upload dist/* -u <username> -p <password>

* Add release tag

      git tag -a vX.X.X -m 'Release version'

* Update `__init__.py` (add 'dev0' and increment minor)

* Commint changes

      git add .
      git commit -m "Restore dev version"

* Push changes
    
      git push upstream master
      git push origin master
      git push --tags


## To release a new version of **loghub** on conda-forge:

* Update recipe on the loghub feedstock: https://github.com/conda-forge/loghub-feedstock

Remove extra spaces in release instructions
Remove extra spaces in release instructions
