Skip to content

Commit

Permalink
Get ready for release 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rocky committed May 21, 2020
1 parent 1a9ec04 commit 9929455
Show file tree
Hide file tree
Showing 5 changed files with 109 additions and 5 deletions.
10 changes: 10 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
1.0.0 2020-04-20 One-oh!
========================

I gotta say it that the interaction between this and x-python is pretty cool, and the possibiilities for which direction to go in on both projects are numerous and vast.

How did I get here? Well, I was pouring over trace logs to find bugs in x-python, and then realized, hey, I've written a debugger already for Python that could help here.

So here it is. I can die now and my life is complete.

Although commands like `next`, `finish` and breakpoints, aren't there yet, rather than sit on it this, I thought I'd release. This is very usuable as is - release early and often!
7 changes: 2 additions & 5 deletions __pkginfo__.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@
"Programming Language :: Python",
"Topic :: Software Development :: Debuggers",
"Topic :: Software Development :: Libraries :: Python Modules",
"Programming Language :: Python :: 3.2",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5 ",
"Programming Language :: Python :: 3.6 ",
"Programming Language :: Python :: 3.7 ",
Expand All @@ -52,12 +49,12 @@
"columnize >= 0.3.10",
"nose>=1.0.0, <= 1.3.7",
"pyficache >= 1.0.0",
"x-python >= 1.2.0",
"x-python >= 1.2.1",
"trepan3k >= 1.0.0",
]
license = "GPL3"
mailing_list = "python-debugger@googlegroups.com"
modname = "trepanpyx"
modname = "trepanxpy"
py_modules = None
short_desc = "GDB-like Debugger for x-python in the Trepan family"

Expand Down
53 changes: 53 additions & 0 deletions admin-tools/how-to-make-a-release.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<!-- markdown-toc start - Don't edit this section. Run M-x markdown-toc-refresh-toc -->
**Table of Contents**

- [Get latest sources:](#get-latest-sources)
- [Change version in trepanxpy/version.py.](#change-version-in-trepanxpyversionpy)
- [Update ChangeLog:](#update-changelog)
- [Update NEWS.md from ChangeLog. Then:](#update-newsmd-from-changelog-then)
- [Update NEWS.md from master branch](#update-newsmd-from-master-branch)
- [Make packages and check](#make-packages-and-check)
- [Get on PyPy](#get-on-pypy)

<!-- markdown-toc end -->

# Get latest sources:

$ git pull

# Change version in trepanxpy/version.py.

$ emacs trepanxpy/version.py
$ source trepanxpy/version.py
$ echo $VERSION
$ git commit -m"Get ready for release $VERSION" .


# Update ChangeLog:

$ make ChangeLog

# Update NEWS.md from ChangeLog. Then:

$ emacs NEWS.md
$ remake -c check
$ git commit --amend .
$ git push # get CI testing going early

# Update NEWS.md from master branch

$ git commit -m"Get ready for release $VERSION" .

# Make packages and check

$ ./admin-tools/make-dist.sh
$ twine check dist/trepanxpy-$VERSION*

# Get on PyPy

Goto https://github.com/rocky/trepan-xpy/releases/new


$ twine upload dist/trepan[-_]xpy-${VERSION}*

Check on https://pypi.org/project/trepan-xpy/
35 changes: 35 additions & 0 deletions admin-tools/make-dist.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#!/bin/bash
PACKAGE=trepan-xpy

# FIXME put some of the below in a common routine
function finish {
cd $owd
}

cd $(dirname ${BASH_SOURCE[0]})
owd=$(pwd)
trap finish EXIT

if ! source ./pyenv-versions ; then
exit $?
fi

cd ..
source trepanxpy/version.py
echo $VERSION

for pyversion in $PYVERSIONS; do
if ! pyenv local $pyversion ; then
exit $?
fi
# pip bdist_egg create too-general wheels. So
# we narrow that by moving the generated wheel.

# Pick out first two number of version, e.g. 3.5.1 -> 35
first_two=$(echo $pyversion | cut -d'.' -f 1-2 | sed -e 's/\.//')
rm -fr build
python setup.py bdist_egg bdist_wheel
mv -v dist/${PACKAGE}-$VERSION-{py2.py3,py$first_two}-none-any.whl
done

python ./setup.py sdist
9 changes: 9 additions & 0 deletions admin-tools/pyenv-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# -*- shell-script -*-
# Sets PYVERSIONS to be pyenv versions that
# we can use in the master branch.
export PYVERSIONS='3.6.10 3.5.9 3.7.7'
if [[ $0 == ${BASH_SOURCE[0]} ]] ; then
typeset -p PYVERSIONS
echo "Note: this script should be *sourced* rather than run directly through bash"
exit 1
fi

0 comments on commit 9929455

Please sign in to comment.