From 4b1cf209d9e132440bc9cfed30c693ecbfab6c30 Mon Sep 17 00:00:00 2001 From: Robert Collins Date: Sun, 24 Aug 2014 18:00:49 +1200 Subject: Fixes for release process. --- README | 6 +++--- setup.py | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/README b/README index 668dca6..dab8be7 100644 --- a/README +++ b/README @@ -462,9 +462,9 @@ Releases ======== * Update versions in configure.ac and python/subunit/__init__.py. -* Update Makefile in the root or do an inplace configure to get an updated Makefile. * Update NEWS. -* Make PyPI and regular tarball releases. Upload the regular one to LP, the - PyPI one to PyPI. +* Do a make distcheck, which will update Makefile etc. +* Do a PyPI release: PYTHONPATH=../../python python ../../setup.py sdist upload -s +* Upload the regular one to LP. * Push a tagged commit. diff --git a/setup.py b/setup.py index 5a05002..8bc7921 100755 --- a/setup.py +++ b/setup.py @@ -1,4 +1,5 @@ #!/usr/bin/env python +import os.path try: # If the user has setuptools / distribute installed, use it from setuptools import setup @@ -33,6 +34,7 @@ VERSION = ( or "0.0") +os.chdir(os.path.dirname(__file__)) setup( name='python-subunit', version=VERSION, -- cgit v1.2.1