Add support for python3, and fix a few packaging mistakes. Closes: #909598.
MartÃn Ferrari
5 years ago
5 | 5 |
dh-python,
|
6 | 6 |
python-all,
|
7 | 7 |
python-docutils,
|
|
8 |
python-flask,
|
8 | 9 |
python-setuptools,
|
9 | |
python-sphinx,
|
|
10 |
python3-all,
|
|
11 |
python3-flask,
|
|
12 |
python3-setuptools,
|
|
13 |
python3-sphinx,
|
10 | 14 |
Standards-Version: 4.2.1
|
11 | 15 |
Vcs-Browser: https://salsa.debian.org/debian/python-flask-httpauth
|
12 | 16 |
Vcs-Git: https://salsa.debian.org/debian/python-flask-httpauth.git
|
|
18 | 22 |
${python:Depends},
|
19 | 23 |
${sphinxdoc:Depends},
|
20 | 24 |
Provides: ${python:Provides},
|
21 | |
Description: Basic and Digest HTTP authentication for Flask routes
|
|
25 |
Description: Basic and Digest HTTP authentication for Flask routes (Python 2)
|
22 | 26 |
Flask-HTTPAuth is a simple extension that provides Basic and Digest HTTP
|
23 | 27 |
authentication for Flask routes.
|
|
28 |
.
|
|
29 |
This package installs the library for Python 2.
|
|
30 |
|
|
31 |
Package: python3-flask-httpauth
|
|
32 |
Architecture: all
|
|
33 |
Depends: ${misc:Depends},
|
|
34 |
${python3:Depends},
|
|
35 |
${sphinxdoc:Depends},
|
|
36 |
Provides: ${python:Provides},
|
|
37 |
Description: Basic and Digest HTTP authentication for Flask routes (Python 3)
|
|
38 |
Flask-HTTPAuth is a simple extension that provides Basic and Digest HTTP
|
|
39 |
authentication for Flask routes.
|
|
40 |
.
|
|
41 |
This package installs the library for Python 3.
|
0 | 0 |
#!/usr/bin/make -f
|
1 | 1 |
|
|
2 |
export PYBUILD_NAME = flask-httpauth
|
|
3 |
|
2 | 4 |
%:
|
3 | |
dh $@ --with python2,sphinxdoc --buildsystem=python_distutils
|
|
5 |
dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild
|
4 | 6 |
|
|
7 |
override_dh_auto_build: export http_proxy=127.0.0.1:9
|
|
8 |
override_dh_auto_build: export https_proxy=127.0.0.1:9
|
5 | 9 |
override_dh_auto_build:
|
6 | 10 |
dh_auto_build
|
7 | |
PYTHONPATH=. http_proxy='127.0.0.1:9' sphinx-build -N -bhtml docs/ build/html # HTML generator
|
8 | |
PYTHONPATH=. http_proxy='127.0.0.1:9' sphinx-build -N -bman docs/ build/man # Manpage generator
|
9 | |
|
10 | |
override_dh_auto_clean:
|
11 | |
rm -rf build/html build/man
|
12 | |
dh_auto_clean
|
|
11 |
PYTHONPATH=. python3 -m sphinx -N -bhtml docs/ build/html # HTML generator
|
|
12 |
PYTHONPATH=. python3 -m sphinx -N -bman docs/ build/man # Manpage generator
|