2009-09-17 11:46:47 -03:00
|
|
|
#!/bin/sh
|
|
|
|
# Script to make a Scrapy release. To be run from root dir in Scrapy
|
|
|
|
# distribution.
|
|
|
|
|
|
|
|
# clean repo
|
|
|
|
hg purge --all
|
|
|
|
|
|
|
|
# build packages
|
|
|
|
version=$(python -c "import scrapy; print scrapy.__version__")
|
2009-09-17 15:28:36 -03:00
|
|
|
python setup.py sdist
|
|
|
|
# FIXME: bdist_wininst doesn't work on Unix (it doesn't include the data_files)
|
|
|
|
#python setup.py bdist_wininst -t "Scrapy $version" -p "win32"
|
2009-09-17 11:46:47 -03:00
|
|
|
|
|
|
|
# hash and sign
|
|
|
|
cd dist
|
|
|
|
md5sum scrapy-$version* > MD5SUMS
|
|
|
|
sha1sum scrapy-$version* > SHA1SUMS
|
|
|
|
gpg -ba MD5SUMS
|
|
|
|
gpg -ba SHA1SUMS
|
|
|
|
|
|
|
|
# list files created
|
|
|
|
ls -l
|