irelease
release your library by using the command: pyrelease
Introduction
irelease is Python package that will help to release your python package on both github and pypi. A new release of your package is created by taking the following steps:
-
Extract the version from the init.py file
-
Remove old build directories such as dist, build and x.egg-info
-
Git pull (to make sure all is up to date)
-
Get latest release version at github
-
Check if the local (current) version is newer then the latest github release.
a. Make new wheel, build and install package b. Set tag to newest version c. Push to git d. Upload to pypi (credentials for pypi required)
Contents
Installation
- Install irelease from PyPI (recommended). irelease is compatible with Python 3.6+ and runs on Linux, MacOS X and Windows.
- It is distributed under the MIT license.
Quick Start
pip install ireleaseAlternatively, install irelease from the GitHub source:
git clone https://github.com/erdogant/irelease.git
cd irelease
python setup.py installRun irelease
Go to the directory where the package is you want to release and simply run release:
$ pyreleaseThe following arguments are availble:
# Github name
pyrelease -u <githubname>
# Package name your want to release
pyrelease -p <packagename>
# Removing local builds:
# 1: Yes
# 0: No
pyrelease -c 1
# Verbosity messages:
# 0: No messages
# 1: Error only
# 2: Warnings and above
# 3: Regular messages and above
# 4: Debug and above
# 5: Trace and above
pyrelease -v 5
# Twine path for to irelease at pypi. This is automatically determined if standard installation is performed.
pyrelease -t 'C://Users/erdogant/AppData/Roaming/Python/Python36/Scripts/twine.exe'Example:
Your package to-be-published must have the correct structure. At least these files and folders are expected:
<any_dirname>/
├── <package_dir>/
│ ├── __init__.py
│ ├── package_name.py
│ ├── ...
├── .gitignore
├── LICENSE
├── README.md
├── requirements.txt
├── setup.py
└── ...Example: releasing bnlearn package.
bnlearn/
├── bnlearn/
│ ├── __init__.py
│ ├── bnlearn.py
├── .gitignore
├── LICENSE
├── README.md
├── requirements.txt
├── setup.pyGo to your destination dir and run release:
$ pyreleaserelease with your specified arguments
# Package can be specified:
$ bnlearn>pyrelease -p bnlearn
# Username can be specified:
$ bnlearn>pyrelease -u erdogant
# Cleaning of previous builds in directory can be disabled
$ bnlearn>pyrelease -c 0Do not forget to enter some release information on github and mark your release number:
Citation
Please cite irelease in your publications if this is useful for your research. Here is an example BibTeX entry:
@misc{erdogant2020irelease,
title={irelease},
author={Erdogan Taskesen},
year={2019},
howpublished={\url{https://github.com/erdogant/irelease}},
}References
Maintainer
Erdogan Taskesen, github: erdogant Contributions are welcome. This work is created and maintained in my free time. If you wish to buy me a Coffee for this work, it is very appreciated.

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.





