Commit d8455516 authored by chrysn's avatar chrysn

release process changes to `git archive`

while previous tar balls were built using `setup.py sdist`, in future
they will be created using `git archive`. this avoids differences
between the tar ball and the last commit (with which the debian branch
is merged).
parent 62105934
README
arandr
setup.py
screenlayout/__init__.py
screenlayout/auxiliary.py
screenlayout/demo.py
screenlayout/gui.py
screenlayout/metacity.py
screenlayout/snap.py
screenlayout/widget.py
screenlayout/xrandr.py
COPYING
TODO
screenlayout/data/gpl-3.txt
data/arandr.desktop
data/arandr.1
data/arandr.1.txt
data/po/de.po
......@@ -2,4 +2,7 @@ checklist before release:
* set version in `setup.py` and `screenlayout/gui.py`
* update README for new file names (be sure to catch all)
* `git tag $VERSION`
* `git archive $VERSION | gzip > ../arandr-$VERSION.tar.gz`
* `pristine-tar commit ../arandr-$VERSION.tar.gz`
* update website to reflect new README
#!/usr/bin/env python
from distutils.core import setup
import os, subprocess, glob, gzip
import os
import subprocess
import glob
import gzip
from distutils.core import setup
from distutils.dep_util import newer
from distutils.log import info
from distutils.log import info, warn
from distutils.cmd import Command
from distutils.command.build import build as _build
from distutils.command.install_data import install_data as _install_data
from distutils.command.install import install as _install
from distutils.command.sdist import sdist as _sdist
class build_trans(Command):
description = 'Compile .po files into .mo files'
......@@ -60,11 +65,18 @@ class install_data(_install_data):
_install_data.run(self)
class sdist(_sdist):
def run(self):
warn("WARNING: Usually, arandr's source tarballs are generated from `git archive`!")
_sdist.run(self)
setup(name = "arandr",
version = "0.1.2",
description = u"Screen layout editor for xrandr 1.2 (Another XRandR gui)",
description = u"Screen layout editor for xrandr (Another XRandR gui)",
author = u"chrysn",
author_email = "chrysn@fsfe.org",
url = "http://christian.amsuess.com/tools/arandr/",
packages = ['screenlayout'],
license = u'GNU GPL 3',
package_data = {
......@@ -77,6 +89,7 @@ setup(name = "arandr",
'build_man': build_man,
'build': build,
'install_data': install_data,
'sdist': sdist,
},
data_files = [
('share/applications', ['data/arandr.desktop']),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment