Skip to main content

irelease

Python PyPI Version License Downloads Donate Bitcoin

  • irelease is Python package that will help to irelease your python package on both github and pypi. A new release of your package is created by taking the following steps:
    1. Extract the version from the init.py file
    2. Remove old build directories such as dist, build and x.egg-info
    3. Git pull (to make sure all is up to date)
    4. Get latest release version at github
    5. 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 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 -r requirements
pip install irelease

Alternatively, install irelease from the GitHub source:

git clone https://github.com/erdogant/irelease.git
cd irelease
python setup.py install

irelease arguments

Go to the directory where the package is you want to release and run irelease by:

$ python irelease.py

The following arguments are availble to use the irelease package:

# Github name
irelease -u <githubname>

# Package name your want to release
irelease -p <packagename>

# Removing local builds:
# 1: Yes
# 0: No
irelease -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
irelease -v 5

# Twine path for to irelease at pypi. This is automatically determined if standard installation is performed.
irelease -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
    └── ...

irelease bnlearn as an example:

    bnlearn/
    ├── bnlearn/
    │   ├── __init__.py
    │   ├── bnlearn.py
    ├── .gitignore
    ├── LICENSE
    ├── README.md
    ├── requirements.txt
    ├── setup.py

# Run to irelease your package:
$ bnlearn>python irelease.py
$ bnlearn>python C:\Users\Erdogan\Miniconda3\envs\env_IMAGE\Lib\site-packages\irelease\irelease.py

# Package can be specified:
$ \bnlearn>python irelease -p bnlearn

# Username can be specified:
$ bnlearn>python irelease.py -u erdogant

# Cleaning of previous builds in directory can be disabled
$ bnlearn>python irelease.py -c 0

You need to do one final edit on github:

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}},
}

Maintainers

Contribute

  • Contributions are welcome.

Licence

See LICENSE for details.

Donation

  • This work is created and maintained in my free time. Contributions of any kind are appreciated. Sponsering is also possible.

Release files for irelease 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for irelease 0.1.3
File Size Uploaded
irelease-0.1.3.tar.gz 7.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for irelease 0.1.3
File Interpreter ABI Platform
irelease-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 16.8 kB

Release files / irelease-0.1.3.tar.gz

Download URL irelease-0.1.3.tar.gz
Size 7.9 kB
Tags Source
SHA-256 checksum
How to use checksums
c14386014f3d00111c285dc34e577ecadcdaddc5dd9817d619a28e0da1bb600c
BLAKE2b-256 checksum
How to use checksums
5b383937f398998e810bdb87c91532f3a13b568191b35c7c5a892ed09b7d32f3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0.post20200127 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.6.10

Release files / irelease-0.1.3-py3-none-any.whl

Download URL irelease-0.1.3-py3-none-any.whl
Size 8.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ccf6d25e9ecfae70f3bd7d26c720bfb8d18fe5829a84bb10d4d744816140693b
BLAKE2b-256 checksum
How to use checksums
351bae6bd11ee36f8a72aa42ede6d138fd8c92aea68c3952775575904b02a11b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0.post20200127 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.6.10

Release history Release notifications | RSS feed

1.4.0

2 release files

1.3.4

2 release files

1.3.3

2 release files

1.3.2

2 release files

1.3.1

2 release files

1.3.0

2 release files

1.2.0

2 release files

1.1.5

2 release files

1.1.4

2 release files

1.1.3

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.1.10

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page