Skip to content

Commit

Permalink
PyPI release preparation adapted to universal source code.
Browse files Browse the repository at this point in the history
  • Loading branch information
lebigot committed Jun 7, 2020
1 parent cbe28d0 commit c088201
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions 00_prepare_for_PyPI.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@

# This script must be run from its directory.

# WARNING: this script erases any uncertainties-py23 and uncertainties-py27
# found in the current directory.

# Fail the script at the first failed command:
set -e

Expand All @@ -28,29 +25,9 @@ git merge release
git checkout release
git merge master

# The Python 2.3-2.5 version should always be up to date:
git checkout release_python2.3
git merge release

# Default branch for working on the code:
git checkout release

## Getting the Python 2.7+ version:

rm -rf uncertainties-py27
git archive --output /tmp/u.tar release uncertainties
tar -C /tmp -xf /tmp/u.tar
mv /tmp/uncertainties uncertainties-py27
echo "Python 2.7+ version imported"

## Getting the Python 2.3 version:

rm -rf uncertainties-py23
git archive --output /tmp/u.tar release_python2.3 uncertainties
tar -C /tmp -xf /tmp/u.tar
mv /tmp/uncertainties uncertainties-py23
echo "Python 2.3 version imported"

# Packaging. We include wheels because it makes it easier to install,
# in some cases (https://github.com/lebigot/uncertainties/pull/108,
# https://discourse.slicer.org/t/problems-installing-lmfit-python-package/9210/6):
Expand Down

0 comments on commit c088201

Please sign in to comment.