Codebase list python-cffi-py2 / c820452
Create a source package for Python 2 module Sophie Brun 3 years ago
16 changed file(s) with 49 addition(s) and 196 deletion(s). Raw diff Collapse all Expand all
0 import sys, glob, os;WHEEL_DIR = "/usr/share/cffi-wheels";sys.path[:] = glob.glob(os.path.join(WHEEL_DIR, "*.whl")) + sys.path
0 python-cffi-py2 (1.14.0-2kali1) kali-dev; urgency=medium
1
2 * Build Python 2 package only, for offsec courses
3 We use Python wheels to keep as few Python2 packages as possible in Kali.
4
5 -- Sophie Brun <[email protected]> Wed, 27 May 2020 16:54:50 +0200
6
07 python-cffi (1.14.0-1) unstable; urgency=medium
18
29 * New upstream release.
0 Source: python-cffi
0 Source: python-cffi-py2
11 Section: python
22 Priority: optional
3 Maintainer: Debian Python Modules Team <[email protected]>
4 Uploaders: Stefano Rivera <[email protected]>
3 Maintainer: Kali Developers <[email protected]>
54 Build-Depends:
65 debhelper-compat (= 12),
76 dh-python,
87 libffi-dev,
98 python-all-dbg,
109 python-all-dev,
11 python-py,
12 python-pycparser,
13 python-pytest,
14 python-setuptools,
15 python3-all-dbg,
16 python3-all-dev,
17 python3-py,
18 python3-pycparser,
19 python3-pytest,
20 python3-setuptools,
21 python3-sphinx,
2210 virtualenv
2311 Standards-Version: 4.5.0
2412 Homepage: http://cffi.readthedocs.org/
25 Vcs-Git: https://salsa.debian.org/python-team/modules/python-cffi.git
26 Vcs-Browser: https://salsa.debian.org/python-team/modules/python-cffi
13 Vcs-Git: https://gitlab.com/kalilinux/packages/python-cffi.git
14 Vcs-Browser: https://gitlab.com/kalilinux/packages/python-cffi
2715 Rules-Requires-Root: no
2816
2917 Package: python-cffi
3321 python-cffi-backend (>= ${source:Version}),
3422 ${misc:Depends},
3523 ${python:Depends}
36 Suggests: python-dev
3724 Description: Foreign Function Interface for Python calling C code
3825 Convenient and reliable way of calling C code from Python.
3926 .
7663 other approaches, that only support the ABI level.
7764 .
7865 This package contains the debug version of the python-cffi backend.
79
80 Package: python3-cffi
81 Architecture: all
82 Depends:
83 python3-cffi-backend (<< ${source:Version}+c),
84 python3-cffi-backend (>= ${source:Version}),
85 ${misc:Depends},
86 ${python3:Depends}
87 Suggests: python3-dev
88 Description: Foreign Function Interface for Python 3 calling C code
89 Convenient and reliable way of calling C code from Python 3.
90 .
91 The aim of this project is to provide a convenient and reliable way of calling
92 C code from Python. It keeps Python logic in Python, and minimises the C
93 required. It is able to work at either the C API or ABI level, unlike most
94 other approaches, that only support the ABI level.
95 .
96 This package contains the necessary build and runtime support for cffi
97 modules.
98
99 Package: python3-cffi-backend
100 Architecture: any
101 Depends: ${misc:Depends}, ${python3:Depends}, ${shlibs:Depends}
102 Provides: ${cffi:Provides}
103 Description: Foreign Function Interface for Python 3 calling C code - runtime
104 Convenient and reliable way of calling C code from Python 3.
105 .
106 The aim of this project is to provide a convenient and reliable way of calling
107 C code from Python. It keeps Python logic in Python, and minimises the C
108 required. It is able to work at either the C API or ABI level, unlike most
109 other approaches, that only support the ABI level.
110 .
111 This package contains the runtime support for pre-built cffi modules.
112
113 Package: python3-cffi-backend-dbg
114 Architecture: any
115 Section: debug
116 Depends:
117 python3-cffi-backend (= ${binary:Version}),
118 ${misc:Depends},
119 ${python3:Depends},
120 ${shlibs:Depends}
121 Description: Foreign Function Interface for Python 3 calling C code (Debug version)
122 Convenient and reliable way of calling C code from Python 3.
123 .
124 The aim of this project is to provide a convenient and reliable way of calling
125 C code from Python. It keeps Python logic in Python, and minimises the C
126 required. It is able to work at either the C API or ABI level, unlike most
127 other approaches, that only support the ABI level.
128 .
129 This package contains the debug version of the python3-cffi backend.
130
131 Package: python-cffi-doc
132 Architecture: all
133 Section: doc
134 Depends: ${misc:Depends}, ${sphinxdoc:Depends}
135 Description: Foreign Function Interface for Python calling C code - documentation
136 Convenient and reliable way of calling C code from Python.
137 .
138 The aim of this project is to provide a convenient and reliable way of calling
139 C code from Python. It keeps Python logic in Python, and minimises the C
140 required. It is able to work at either the C API or ABI level, unlike most
141 other approaches, that only support the ABI level.
142 .
143 This package contains the developer documentation for cffi.
0 #!/usr/bin/python3
0 #!/usr/bin/python2
11
22 import re
33
2626
2727 versions = backend_supported_versions()
2828 target = target_version()
29 for pkg in ('python-cffi', 'python3-cffi'):
29 for pkg in ('python-cffi'):
3030 subst = {
3131 'pkg': pkg,
3232 'min': versions[0],
+0
-17
debian/python-cffi-doc.doc-base less more
0 Document: python-cffi-doc
1 Title: cffi Foreign Function Interface for Python calling C code
2 Abstract: Convenient and reliable way of calling C code from Python.
3 The aim of this project is to provide a convenient and reliable way of calling
4 C code from Python. It keeps Python logic in Python, and minimises the C
5 required. It is able to work at either the C API or ABI level, unlike most
6 other approaches, that only support the ABI level.
7 Author: Armin Rigo
8 Section: Programming/Python
9
10 Format: HTML
11 Index: /usr/share/doc/python-cffi-doc/html/index.html
12 Files: /usr/share/doc/python-cffi-doc/html/*.html
13
14 Format: text
15 Index: /usr/share/doc/python-cffi-doc/rst/index.rst.txt
16 Files: /usr/share/doc/python-cffi-doc/rst/*.txt
+0
-1
debian/python-cffi-doc.docs less more
0 doc/build/html
+0
-5
debian/python-cffi-doc.links less more
0 /usr/share/doc/python-cffi-doc/html/ /usr/share/doc/python-cffi/html
1 /usr/share/doc/python-cffi-doc/html/ /usr/share/doc/python3-cffi/html
2 /usr/share/doc/python-cffi-doc/html/_sources /usr/share/doc/python-cffi-doc/rst
3 /usr/share/doc/python-cffi-doc/html/_sources /usr/share/doc/python-cffi/rst
4 /usr/share/doc/python-cffi-doc/html/_sources /usr/share/doc/python3-cffi/rst
0 debian/cffi-wheels.pth usr/lib/python2.7/dist-packages
00 #!/usr/bin/make -f
11
2 export PYTHONPATH=$(CURDIR)/debian/python2-wheels/setuptools-44.1.0-py2.py3-none-any.whl:$(CURDIR)/debian/python2-wheels/py-1.8.1-py2.py3-none-any.whl
3
24 export PYBUILD_DESTDIR_python2=debian/python-cffi
3 export PYBUILD_DESTDIR_python3=debian/python3-cffi
45 export PYBUILD_EXT_DESTDIR_python2=debian/python-cffi-backend
5 export PYBUILD_EXT_DESTDIR_python3=debian/python3-cffi-backend
66 export PYBUILD_EXT_DESTDIR_python2-dbg=debian/python-cffi-backend-dbg
7 export PYBUILD_EXT_DESTDIR_python3-dbg=debian/python3-cffi-backend-dbg
87
98 export VIRTUALENV_DOWNLOAD=no
109
1110 %:
12 dh $@ --with python2,python3,sphinxdoc --buildsystem pybuild
13
14 override_dh_auto_build-indep:
15 dh_auto_build --indep
16 python3 -m sphinx -b html -d doc/build/doctrees doc/source doc/build/html
11 dh $@ --with python2 --buildsystem pybuild
1712
1813 override_dh_auto_test:
19 PYBUILD_SYSTEM=custom \
20 PYBUILD_TEST_ARGS="{interpreter} -m pytest c/ testing/" \
21 dh_auto_test
14 # don't run the tests: it requires too many python modules
2215
23 override_dh_install:
24 debian/gen-backend-versions.py
25 dh_install
26
27 override_dh_installdocs-indep:
28 dh_installdocs -p python-cffi-doc --doc-main-package python-cffi-doc
29 dh_installdocs --indep -N python-cffi-doc
16 #override_dh_install:
17 # debian/gen-backend-versions.py
18 # dh_install
3019
3120 override_dh_installchangelogs:
3221 dh_installchangelogs doc/source/whatsnew.rst
3423 override_dh_strip:
3524 dh_strip -p python-cffi-backend -p python-cffi-backend-dbg \
3625 --dbg-package=python-cffi-backend-dbg
37 dh_strip -p python3-cffi-backend -p python3-cffi-backend-dbg \
38 --dbg-package=python3-cffi-backend-dbg
3926 dh_strip --remaining-packages
4027
4128 override_dh_clean:
0 debian/python2-wheels/py-1.8.1-py2.py3-none-any.whl
1 debian/python2-wheels/setuptools-44.1.0-py2.py3-none-any.whl
0 #!/bin/sh
1
2 set -e
3
4 test_install_python2() {
5
6 echo "Testing python2 package"
7 for py in $(pyversions -r 2>/dev/null) ; do
8 cd "$AUTOPKGTEST_TMP" ;
9 echo "Testing with $py:" ;
10 $py -c "import cffi; print(cffi)" ;
11 done
12
13 }
14
15 ###################################
16 # Main
17 ###################################
18
19 for function in "$@"; do
20 $function
21 done
0 Tests: unittests
1 Depends:
2 build-essential,
3 python-all-dbg,
4 python-all-dev,
5 python-cffi,
6 python-cffi-backend-dbg,
7 python-py,
8 python-pytest,
9 python-setuptools,
10 virtualenv
11
12 Tests: unittests3
13 Depends:
14 build-essential,
15 python3-all-dbg,
16 python3-all-dev,
17 python3-cffi,
18 python3-cffi-backend-dbg,
19 python3-py,
20 python3-pytest,
21 python3-setuptools,
22 virtualenv
0 Test-Command: debian/tests/basic-test.sh test_install_python2
1 Depends: @
2 Restrictions: allow-stderr, superficial
+0
-23
debian/tests/unittests less more
0 #!/bin/sh
1 set -efu
2
3 pythons="$(pyversions -s)"
4 cp -a c testing "$AUTOPKGTEST_TMP"
5
6 # Not appropriate:
7 rm "$AUTOPKGTEST_TMP"/testing/cffi0/test_version.py
8 rm "$AUTOPKGTEST_TMP"/testing/cffi1/test_parse_c_type.py
9
10 # Temporary hack until cffi defaults to calling virtualenv with --never-download
11 export VIRTUALENV_DOWNLOAD=no
12
13 # Delete any stale __pycache__s
14 find "$AUTOPKGTEST_TMP" -name '__pycache__' -print0 | xargs -0 rm -rf
15
16 cd "$AUTOPKGTEST_TMP"
17 for py in $pythons; do
18 echo "======= $py ======="
19 $py -m pytest --tb=native c testing
20 echo "======= $py-dbg ======="
21 $py-dbg -m pytest --tb=native c testing 2>&1
22 done
+0
-23
debian/tests/unittests3 less more
0 #!/bin/sh
1 set -efu
2
3 pythons="$(py3versions -s)"
4 cp -a c testing "$AUTOPKGTEST_TMP"
5
6 # Not appropriate:
7 rm "$AUTOPKGTEST_TMP"/testing/cffi0/test_version.py
8 rm "$AUTOPKGTEST_TMP"/testing/cffi1/test_parse_c_type.py
9
10 # Temporary hack until cffi defaults to calling virtualenv with --never-download
11 export VIRTUALENV_DOWNLOAD=no
12
13 # Delete any stale __pycache__s
14 find "$AUTOPKGTEST_TMP" -name '__pycache__' -print0 | xargs -0 rm -rf
15
16 cd "$AUTOPKGTEST_TMP"
17 for py in $pythons; do
18 echo "======= $py ======="
19 $py -m pytest --tb=native c testing
20 echo "======= $py-dbg ======="
21 $py-dbg -m pytest --tb=native c testing 2>&1
22 done