removed SUFFIX from scrapy name package

This commit is contained in:
agusc 2015-06-15 14:39:10 -03:00
parent f958fb9d62
commit 140f58251b
4 changed files with 6 additions and 45 deletions

View File

@ -8,8 +8,9 @@ test:
-s3cmd sync -P htmlcov/ s3://static.scrapy.org/coverage-scrapy-$(BRANCH)/
build:
test $(BRANCH) != master || git describe >scrapy/VERSION
python extras/makedeb.py build
test $(BRANCH) != master || git describe --tags | sed -r 's/([0-9]+.[0-9]*.[0-9]*)(rc|dev)(.*)/\1~\2\3/' >scrapy/VERSION
debchange -m -D unstable --force-distribution -v `python setup.py --version`+`date +%s` "Automatic build"
debuild -us -uc -b
clean:
git checkout debian scrapy/VERSION

2
debian/changelog vendored
View File

@ -1,4 +1,4 @@
scrapy-SUFFIX (0.11) unstable; urgency=low
scrapy (0.11) unstable; urgency=low
* Initial release.

4
debian/control vendored
View File

@ -1,4 +1,4 @@
Source: scrapy-SUFFIX
Source: scrapy
Section: python
Priority: optional
Maintainer: Scrapinghub Team <info@scrapinghub.com>
@ -6,7 +6,7 @@ Build-Depends: debhelper (>= 7.0.50), python (>=2.7), python-twisted, python-w3l
Standards-Version: 3.8.4
Homepage: http://scrapy.org/
Package: scrapy-SUFFIX
Package: scrapy
Architecture: all
Depends: ${python:Depends}, python-lxml, python-twisted, python-openssl,
python-w3lib (>= 1.8.0), python-queuelib, python-cssselect (>= 0.9), python-six (>=1.5.2)

View File

@ -1,40 +0,0 @@
import sys, os, glob, shutil
from subprocess import check_call
from scrapy import version_info
def build(suffix):
for ifn in glob.glob("debian/scrapy.*"):
s = open(ifn).read()
s = s.replace('SUFFIX', suffix)
pre, suf = ifn.split('.', 1)
ofn = "%s-%s.%s" % (pre, suffix, suf)
with open(ofn, 'w') as of:
of.write(s)
for ifn in ['debian/control', 'debian/changelog']:
s = open(ifn).read()
s = s.replace('SUFFIX', suffix)
with open(ifn, 'w') as of:
of.write(s)
check_call('debchange -m -D unstable --force-distribution -v $(python setup.py --version)+$(date +%s) "Automatic build"', \
shell=True)
check_call('debuild -us -uc -b', shell=True)
def clean(suffix):
for f in glob.glob("debian/python-scrapy%s*" % suffix):
if os.path.isdir(f):
shutil.rmtree(f)
else:
os.remove(f)
def main():
cmd = sys.argv[1]
suffix = '%s.%s' % version_info[:2]
if cmd == 'build':
build(suffix)
elif cmd == 'clean':
clean(suffix)
if __name__ == '__main__':
main()