Skip to content

Commit

Permalink
Merge pull request #580 from ged-lab/fix/release-checklist14Q3
Browse files Browse the repository at this point in the history
catching up with recent changes
  • Loading branch information
mr-c committed Dec 8, 2014
2 parents 366d339 + 57ba15c commit 72b2d4a
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 13 deletions.
7 changes: 7 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
2014-12-07 Michael R. Crusoe <[email protected]>

* Makefile: add sandbox scripts to the pylint_report.txt target
* doc/dev/coding-guidelines-and-review.txt: Add question about command
line API to the checklist
* doc/dev/release.txt: refresh release procedure

2014-12-05 Michael R. Crusoe <[email protected]>

* CITATIONS,khmer/khmer_args.py: update citations for Qingpeng's paper
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ pylint: $(PYSOURCES) $(wildcard tests/*.py)
pylint_report.txt: ${PYSOURCES} $(wildcard tests/*.py)
pylint --msg-template="{path}:{line}: [{msg_id}({symbol}), {obj}] {msg}" \
setup.py khmer/[!_]*.py khmer/__init__.py scripts/*.py tests \
> pylint_report.txt || true
sandbox/*.py > pylint_report.txt || true

diff_pylint_report: pylint_report.txt
diff-quality --violations=pylint pylint_report.txt
Expand Down
6 changes: 5 additions & 1 deletion doc/dev/coding-guidelines-and-review.txt
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,11 @@ ready for review::
- [ ] If it introduces new functionality in scripts/ is it tested?
Check for code coverage.
- [ ] Is it well formatted? Look at `make pep8`, `make diff_pylint_report`,
`make cppcheck`, and `make doc` output. Use `make format` and manual fixing as needed.
`make cppcheck`, and `make doc` output. Use `make format` and manual
fixing as needed.
- [ ] Did it change the command-line interface? Only additions are allowed
without a major version increment. Changing file formats also requires a
major version number increment.
- [ ] Is it documented in the ChangeLog?
- [ ] Was a spellchecker run on the source code and documentation after
changes were made?
Expand Down
31 changes: 20 additions & 11 deletions doc/dev/release.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ release makers, following this checklist by MRC.

#. (Optional) Check for updates to versioneer::

pip install versioneer
pip install --upgrade versioneer
versioneer-installer

git diff
Expand Down Expand Up @@ -77,37 +77,45 @@ release makers, following this checklist by MRC.
source bin/activate
git clone --depth 1 --branch v${new_version}-${rc} https://github.com/ged-lab/khmer.git
cd khmer
make install-dependencies
make install
nosetests khmer --attr '!known_failing'
make test
normalize-by-median.py --version # double-check version number
normalize-by-median.py --version 2>&1 | grep ${new_version}-${rc} && \
echo 1st manual version check passed
cd ..
nosetests khmer --attr '!known_failing'


# Secondly we test via pip

cd ../../testenv2
cd ../testenv2
source bin/activate
pip install -U setuptools==3.4.1
pip install -e git+https://github.com/ged-lab/khmer.git@v${new_version}-${rc}#egg=khmer
cd src/khmer
make install-dependencies
make dist
make install
nosetests khmer --attr '!known_failing'
make test
normalize-by-median.py --version # double-check version number
normalize-by-median.py --version 2>&1 | grep ${new_version}-${rc} && \
echo 2nd manual version check passed
cp dist/khmer*tar.gz ../../../testenv3/

cd ../..
nosetests khmer --attr '!known_failing'

# Is the distribution in testenv2 complete enough to build another
# functional distribution?

cd ../../../testenv3/
cd ../testenv3/
source bin/activate
pip install -U setuptools==3.4.1
pip install khmer*tar.gz
nosetests khmer --attr '!known_failing'
pip install nose
tar xzf khmer*tar.gz
cd khmer*
make dist
make test
pushd .. ; nosetests khmer --attr '!known_failing' ; popd

#. Publish the new release on the testing PyPI server. You will need
to change your PyPI credentials as documented here:
Expand All @@ -127,9 +135,10 @@ release makers, following this checklist by MRC.
pip install screed nose
pip install -i https://testpypi.python.org/pypi --pre --no-clean khmer
nosetests khmer --attr '!known_failing'
normalize-by-median.py --version 2>&1 | awk ' { print $2 } '
normalize-by-median.py --version 2>&1 | grep ${new_version}-${rc} && \
echo 3rd manual version check passed
cd build/khmer
./setup.py nosetests
make test

#. Do any final testing (BaTLab and/or acceptance tests).

Expand Down

0 comments on commit 72b2d4a

Please sign in to comment.