Skip to content

Commit

Permalink
release version v0.9.6
Browse files Browse the repository at this point in the history
- introduce version tags
  • Loading branch information
KarelVesely84 committed Jun 16, 2023
1 parent 44595b1 commit a208fba
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 9 deletions.
33 changes: 29 additions & 4 deletions make_package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,41 @@

exit 0

# Use conda for releasing:
# `unset PYTHONHOME; conda create --prefix /mnt/matylda5/iveselyk/CONDA_ENVS/kaldi-io-for-python_release python=3.9`
# `unset PYTHONHOME; conda activate /mnt/matylda5/iveselyk/CONDA_ENVS/kaldi-io-for-python_release`

# Step 0: upgrade python packages:
#python2 -m pip install --upgrade pip
#python2 -m pip install --user --upgrade setuptools wheel twine
python3 -m pip install --upgrade pip
python3 -m pip install --user --upgrade setuptools wheel twine

# Step 1: 'increase' version in 'setup.py'.
# commit, push

# Step 1a: add tag with the 'increased' version:
#
# `git tag v0.9.6` # create the tag
# `git push origin v0.9.6` # export it to remote
#
# Adding tag ex-post:
# `git tag v0.9.5 <sha>`
#
# Read the <sha> from the tag:
# `git show v0.9.6`
#
# Remove tag:
# `git push --delete origin v0.9.6` (remote)
# `git tag -d v0.9.6` (local)
#
# see: https://git-scm.com/book/en/v2/Git-Basics-Tagging


# Step 2: make packages,
rm dist/*
#python2 setup.py bdist_wheel # this would create python2 package,
python3 setup.py sdist bdist_wheel
python2 setup.py bdist_wheel # create python2 package,
python3 setup.py sdist bdist_wheel # create python3 package,

ll dist/
# -rw-r--r-- 1 iveselyk speech 13839 Feb 26 13:55 kaldi_io-0.9.2-py3-none-any.whl
Expand All @@ -22,9 +45,11 @@ ll dist/
# Step 2.1: check the README.md format,
python3 -m twine check dist/*

# Hint: skip to 'Step 8' to skip sandboxing on 'test.pypi.org'

{ # TEST_DEPLOYMENT_ON test.pypi.org,
### SANDBOX DEPLOYMENT ###
# Hint: skip to 'Step 8' to skip sandboxing on 'test.pypi.org'
{
# TEST_DEPLOYMENT_ON test.pypi.org,
# Step 3: upload the packages (test site),
python3 -m twine upload --verbose --repository-url https://test.pypi.org/legacy/ dist/*

Expand Down
6 changes: 1 addition & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,9 @@
with open("README.md", "r", encoding='utf-8') as fh:
long_description = fh.read()

# Python 2 (override)
import sys
if sys.version_info[0] < 3: long_description = "" # avoid syntax errors (markdown is broken in python2)

setuptools.setup(
name='kaldi_io',
version='0.9.5',
version='0.9.6',
author='Karel Vesely',
description='Glue code connecting Kaldi data and Python.',
long_description=long_description,
Expand Down

0 comments on commit a208fba

Please sign in to comment.