Projet

Général

Profil

0001-debian-switch-to-Python-3-43753.patch

Frédéric Péters, 09 juin 2020 09:03

Télécharger (5,65 ko)

Voir les différences:

Subject: [PATCH] debian: switch to Python 3 (#43753)

 debian/compat                    |  2 +-
 debian/control                   | 74 ++++++++++++++++----------------
 debian/py3dist-overrides         |  7 +++
 debian/pydist-overrides          |  1 -
 debian/python-passerelle.dirs    |  1 -
 debian/python-passerelle.docs    |  2 -
 debian/python-passerelle.install |  2 -
 debian/rules                     | 10 +++--
 debian/uwsgi.ini                 |  2 +-
 9 files changed, 52 insertions(+), 49 deletions(-)
 create mode 100644 debian/py3dist-overrides
 delete mode 100644 debian/pydist-overrides
 delete mode 100644 debian/python-passerelle.dirs
 delete mode 100644 debian/python-passerelle.docs
 delete mode 100644 debian/python-passerelle.install
debian/compat
1
9
1
10
debian/control
2 2
Section: python
3 3
Priority: optional
4 4
Maintainer: Thomas NOËL <tnoel@entrouvert.com>
5
Build-Depends: debhelper (>= 9.0.0),
6
    python-django,
7
    python-setuptools (>= 0.6b3),
8
    python-all (>= 2.6.6-3),
5
Build-Depends: debhelper (>= 10),
6
    python3-django,
7
    python3-setuptools,
8
    python3-all,
9 9
    dh-python,
10 10
    dh-systemd
11 11
Standards-Version: 3.9.6
12 12
Homepage: https://dev.entrouvert.org/projects/passerelle
13
X-Python-Version: >= 2.7
14 13

  
15
Package: python-passerelle
14
Package: python3-passerelle
16 15
Architecture: all
17
Depends: ${python:Depends},
16
Depends: ${python3:Depends},
18 17
    ${misc:Depends},
19
    python-django (>= 1:1.11),
20
    python-gadjo,
21
    python-django-model-utils,
22
    python-requests,
23
    python-setuptools,
24
    python-suds,
25
    python-cmislib,
26
    python-lxml,
27
    python-dateutil,
28
    python-pyproj,
29
    python-pil,
30
    python-zeep (>= 3.2),
31
    python-jsonschema,
32
    python-unidecode,
33
    python-pyexcel-io,
34
    python-pyexcel-ods,
35
    python-pyexcel-xls,
36
    python-crypto,
37
    python-pycryptodome,
38
    python-feedparser,
39
    python-pdfrw,
40
    python-httplib2,
41
    python-xmlschema
42
Recommends: python-soappy, python-phpserialize
18
    python3-django (>= 1:1.11),
19
    python3-gadjo,
20
    python3-django-model-utils,
21
    python3-requests,
22
    python3-setuptools,
23
    python3-suds,
24
    python3-cmislib,
25
    python3-lxml,
26
    python3-dateutil,
27
    python3-pyproj,
28
    python3-pil,
29
    python3-zeep (>= 3.2),
30
    python3-jsonschema,
31
    python3-unidecode,
32
    python3-pyexcel-io,
33
    python3-pyexcel-ods,
34
    python3-pyexcel-xls,
35
    python3-crypto,
36
    python3-pycryptodome,
37
    python3-feedparser,
38
    python3-pdfrw,
39
    python3-httplib2,
40
    python3-xmlschema
43 41
Description: Uniform access to multiple data sources and services (Python module)
44 42

  
45 43
Package: passerelle
46 44
Architecture: all
47 45
Depends: ${misc:Depends}, adduser,
48
    python-passerelle (= ${binary:Version}),
49
    python-hobo,
50
    python-django-tenant-schemas,
51
    python-psycopg2,
52
    python-memcache,
53
    python-django-mellon,
46
    python3-passerelle (= ${binary:Version}),
47
    python3-hobo,
48
    python3-django-tenant-schemas,
49
    python3-psycopg2,
50
    python3-memcache,
51
    python3-django-mellon,
54 52
    uwsgi,
55
    uwsgi-plugin-python
53
    uwsgi-plugin-python3
56 54
Recommends: nginx, memcached
57 55
Suggests: postgresql
58 56
Description: Uniform access to multiple data sources and services
debian/py3dist-overrides
1
cmislib_maykin python3-cmislib
2
gadjo python3-gadjo
3
pyexcel_io python3-pyexcel-io
4
pyexcel_ods python3-pyexcel-ods
5
pyexcel_xls python3-pyexcel-xls
6
suds_jurko python3-suds
7
xmlschema python3-xmlschema
debian/pydist-overrides
1
django-jsonresponse python-django-jsonresponse
debian/python-passerelle.dirs
1
/usr/lib/passerelle
debian/python-passerelle.docs
1
README
2
LICENSE
debian/python-passerelle.install
1
usr/bin/manage.py /usr/lib/passerelle
2
usr/lib/python2*/*-packages
debian/rules
1 1
#!/usr/bin/make -f
2 2
# -*- makefile -*-
3 3

  
4
# Uncomment this to turn on verbose mode.
5
#export DH_VERBOSE=1
4
export PYBUILD_NAME=passerelle
5
export PYBUILD_DISABLE=test
6 6

  
7 7
%:
8
	dh $@ --with python2,systemd
8
	dh $@ --with python3,systemd --buildsystem=pybuild
9

  
10
override_dh_install:
11
	dh_install
12
	mv $(CURDIR)/debian/python3-passerelle/usr/bin/manage.py $(CURDIR)/debian/passerelle/usr/lib/passerelle/manage.py
debian/uwsgi.ini
2 2
auto-procname = true
3 3
procname-prefix-spaced = passerelle
4 4

  
5
plugin = python
5
plugin = python3
6 6
module = passerelle.wsgi:application
7 7

  
8 8
http-socket = /run/passerelle/passerelle.sock
9
-