Page MenuHomeSoftware Heritage

debian packaging of flask-limiter
Closed, MigratedEdits Locked

Description

Homepage is at https://flask-limiter.readthedocs.io/
No ITP/RFP seems to have been filed yet.

Event Timeline

olasd changed the task status from Open to Work in Progress.Jan 11 2017, 5:53 PM
olasd claimed this task.
olasd added a subscriber: olasd.

I will package those.

I started unraveling the dependency tree; need to be packaged:

Packaging is made slightly tedious by the lack of tests in the tarballs published on PyPI, which means we need to go from git if we want tests.

hiro is now in the Debian NEW queue.

Next up: python-limits.

python-limits has a new dependency: rediscluster-py (https://pypi.python.org/pypi/rediscluster).

We'll probably need it for our deployment anyway so time to package it.

hiro and redis-py-cluster passed NEW.

python-limits is in NEW.

python-flask-limiter needs a patch to disable tests depending on a running instance of redis, but should be good to go right after.

Backported to the Software Heritage Debian repository:

  • hiro
  • hiredis
  • python-hiredis
  • redis-py-cluster
  • python-limits
  • flask-restful
  • flask-limiter

Backporting script:

REPOSITORY=http://debian.internal.softwareheritage.org/
DESTHOST=pergamon.internal.softwareheritage.org
DESTDIR=/srv/softwareheritage/repository

# Get package source
dpkg-source -x foo.dsc
# or
apt-get source foo
cd foo-*

# Prepare debian/changelog for backport
dch -l ~bpo8~swh+ "Rebuild for jessie-backports-swh"
dch -r --distribution jessie-backports-swh --force-distribution ""

# Build package
sbuild -As --build-dep-resolver=aptitude --build-failed-commands '%SBUILD_SHELL' \
  --extra-repository "deb [trusted=yes] ${REPOSITORY} jessie main" \
  --extra-repository "deb http://deb.debian.org/debian jessie-backports main" \
  --force-orig-source

# iterate until it builds

# Sign package
debsign ../foo_*swh*.changes

# Upload and publish package
dcmd scp ../foo_*swh*.changes ${DESTHOST}:${DESTDIR}/incoming
ssh ${DESTHOST} reprepro -vb ${DESTDIR} processincoming incoming

python-limits is still in NEW, but all packages have been uploaded to our repository.