Skip to content
This repository has been archived by the owner on Jun 18, 2020. It is now read-only.

Commit

Permalink
Ensure that the package is created from a clean git repo
Browse files Browse the repository at this point in the history
  • Loading branch information
jdemeyer committed Nov 5, 2018
1 parent ef1df45 commit ae9d5f1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
8 changes: 4 additions & 4 deletions ReleaseInstr.md
Expand Up @@ -22,7 +22,7 @@ in your local `SAGENB_ROOT`.
cd SAGENB_ROOT
git checkout master
git fetch upstream
git rebase upstream/master
git rebase upstream/master
```

1. Edit `Changes` file to highlight the main changes. Edit `setup.py` to
Expand All @@ -39,7 +39,7 @@ in your local `SAGENB_ROOT`.
+ version = '0.10.8.3',
description = 'The Sage Notebook',
license = 'GNU General Public License (GPL) v3+',
author = 'William Stein et al.',
author = 'William Stein et al.',
```

1. Commit the updated version change.
Expand All @@ -63,7 +63,7 @@ in your local `SAGENB_ROOT`.
```sh
cd SAGE_ROOT
echo "<version>" > build/pkgs/sagenb/package-version.txt
./sage --fix-pkg-checksums
./sage --package fix-checksum sagenb
./sage -tp --long --sagenb # test sagenb
make ptestlong # test sage
```
Expand All @@ -78,7 +78,7 @@ in your local `SAGENB_ROOT`.

1. Check that the documentation is installed in ``$SAGE_LOCAL/share/docs/sagenb``
by e.g. opening with a browser the URL ``file://$SAGE_LOCAL/share/docs/sagenb/index.html``.

1. (Optional) Check that the Selenium tests pass.

1. (Optional) If you encounter errors or realize there was a mistake,
Expand Down
10 changes: 8 additions & 2 deletions dist.sh
@@ -1,6 +1,12 @@
#!/usr/bin/env bash

# This script creates a new tarball for SageNB.
rm -rf dist
# This script creates a new tarball for SageNB

# Remove some auto-generated packaging directories
rm -rf dist sagenb.egg-info

# Ensure that we are packaging from a clean git repo
git clean -i -d -x

# Now actually create the package
exec ./setup.py sdist --format=bztar

0 comments on commit ae9d5f1

Please sign in to comment.