Commit f8804bc3 authored by Thomas Goirand's avatar Thomas Goirand

Remove Python 2 support.

parent 276d1271
python-falcon (1.4.1-1) experimental; urgency=medium
python-falcon (1.4.1-1) unstable; urgency=medium
[ Thomas Goirand ]
* d/control: Set Vcs-* to salsa.debian.org.
......@@ -7,6 +7,7 @@ python-falcon (1.4.1-1) experimental; urgency=medium
* Updating copyright format url.
* Fixed new upstream VCS URL.
* New upstream release (Closes: #930134).
* Remove Python 2 support.
[ Ondřej Nový ]
* Use debhelper-compat instead of debian/compat.
......
......@@ -7,25 +7,16 @@ Uploaders:
Build-Depends:
cython,
cython3,
debhelper-compat (= 9),
debhelper-compat (= 11),
dh-python,
lsb-release,
openstack-pkg-tools (>= 52~),
python-all,
python-all-dev,
python-ddt,
python-mimeparse,
python-nose,
python-requests,
python-setuptools,
python-six,
python-testtools,
python-yaml,
openstack-pkg-tools (>= 99~),
python3-all,
python3-all-dev,
python3-ddt,
python3-mimeparse,
python3-mimeparse (>= 1.5.2),
python3-nose,
python3-pytest,
python3-requests,
python3-setuptools,
python3-six,
......@@ -36,50 +27,14 @@ Vcs-Browser: https://salsa.debian.org/openstack-team/python/python-falcon
Vcs-Git: https://salsa.debian.org/openstack-team/python/python-falcon.git
Homepage: http://falconframework.org
Package: python-falcon
Architecture: any
Depends:
python-mimeparse,
python-six,
${misc:Depends},
${python:Depends},
${shlibs:Depends},
Recommends:
${python:Recommends},
Description: supersonic micro-framework for building cloud APIs - Python 2.x
Falcon is a high-performance Python framework for building cloud APIs. It
encourages the REST architectural style, and tries to do as little as possible
while remaining highly effective.
.
Unlike other Python web frameworks, Falcon won't bottleneck your API's
performance under highly concurrent workloads. Many frameworks max out at
serving simple "hello world" requests at a few thousand req/sec, while Falcon
can easily serve many more on the same hardware.
.
Falcon isn't very opinionated. In other words, the framework leaves a lot of
decisions and implementation details to you.
.
Features:
* Intuitive routing via URI templates and resource classes
* Easy access to headers and bodies through request and response classes
* Idiomatic HTTP error responses via a handy exception base class
* DRY request processing using global, resource, and method hooks
* Snappy unit testing through WSGI helpers and mocks
* 20% speed boost when Cython is available
* Python 2.6, Python 2.7, PyPy and Python 3.3 support
.
This package provides the Python 2.x module.
Package: python3-falcon
Architecture: any
Depends:
python3-mimeparse,
python3-mimeparse (>= 1.5.2),
python3-six,
${misc:Depends},
${python3:Depends},
${shlibs:Depends},
Recommends:
${python3:Recommends},
Description: supersonic micro-framework for building cloud APIs - Python 3.x
Falcon is a high-performance Python framework for building cloud APIs. It
encourages the REST architectural style, and tries to do as little as possible
......
......@@ -8,20 +8,27 @@ include /usr/share/openstack-pkg-tools/pkgos.make
export DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow
%:
dh $@ --buildsystem=python_distutils --with python2,python3
dh $@ --buildsystem=python_distutils --with python3
override_dh_auto_install:
pkgos-dh_auto_install
rm -rf $(CURDIR)/debian/python*-falcon/usr/lib/python*/dist-packages/tests
override_dh_auto_clean:
find . -iname '*.pyc' -delete
for i in $$(find . -type d -iname __pycache__) ; do rm -rf $$i ; done
override_dh_auto_test:
echo "Do nothing..."
override_dh_auto_build:
echo "Do nothing..."
override_dh_auto_install:
pkgos-dh_auto_install --no-py2
ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
nosetests
nosetests3
for i in $(PYTHON3S) ; do \
PYTHONPATH=. PYTHON=python$$i python$$i -m pytest tests ; \
done
endif
override_dh_python2:
dh_python2 --shebang=/usr/bin/python
rm -rf $(CURDIR)/debian/tmp/usr/lib/python*/dist-packages/tests
override_dh_python3:
dh_python3 --shebang=/usr/bin/python3
......
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