Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes required to run python3-pytest natively #242

Open
dthomas-sensonix opened this issue Jun 3, 2020 · 2 comments
Open

Changes required to run python3-pytest natively #242

dthomas-sensonix opened this issue Jun 3, 2020 · 2 comments

Comments

@dthomas-sensonix
Copy link

I am working on an embedded device using the warrior branch of meta-openembedded. I've written a few Python modules and I wanted to incorporate the pytest results into the Yocto build (i.e. fail the build if pytest failed). My experience was that I needed to change python3-pytest to run it natively for the testing. The changes were pulled from meta-sca.

I am running the tests using the following code in my recipes:

DEPENDS += "python3-pytest-native python3-pip-native"
do_run_testsuite(){
    pip3 install ${WORKDIR}/git
    python3 -m pytest -v ${WORKDIR}/git/tests
}
addtask do_run_testsuite before do_install after do_configure

To get this to work, I had to add the following to the python3-pytest recipe:

DEPENDS += "\
            ${PYTHON_PN}-attrs-native \
            ${PYTHON_PN}-pluggy-native \
            ${PYTHON_PN}-py-native \
            ${PYTHON_PN}-six-native \
           "

I then had to modify the recipes for python3-attrs and python3-pluggy to include so they could be run natively:

BBCLASSEXTEND = "native"

I see that python3-attrs had been changed to support running natively in master, but python3-pluggy does not have this change.

What should change in python3-pytest to support running it natively? I pulled the DEPENDS change from meta-sca, but I do not have enough knowledge here to suggest the final change. Thanks.

@kraj
Copy link
Contributor

kraj commented Jun 3, 2020

propose changes for python3-pluggy and also for python3-pytest

@dthomas-sensonix
Copy link
Author

The proposed changes for python3-pluggy would be to add:

BBCLASSEXTEND = "native nativesdk"

to the bottom of python-pluggy.inc.

My previous comment shows what I added to python3-pytest_5.4.2.bb (or python3-pytest_3.4.2.bb in Warrior), but I cannot speak to what would be the best change. I can only say those changes allowed me to run pytest natively.

kraj pushed a commit to YoeDistro/meta-openembedded that referenced this issue Aug 6, 2021
Release 4.2.1 - 2021-08-02

Support setting socketio_path to the root URL openembedded#242 (commit)
Use the gevent selector to avoid 1024 file handle limitation of select#228 (commit)
Pass reason when closing a WebSocket connection (commit)
Improved project structure (commit)
Remove executable permissions from files that lack shebang lines openembedded#240 (commit) (thanks Ben Beasley!)

Signed-off-by: Zheng Ruoqin <[email protected]>
Signed-off-by: Khem Raj <[email protected]>
kraj pushed a commit to YoeDistro/meta-openembedded that referenced this issue Aug 7, 2021
Release 4.2.1 - 2021-08-02

Support setting socketio_path to the root URL openembedded#242 (commit)
Use the gevent selector to avoid 1024 file handle limitation of select#228 (commit)
Pass reason when closing a WebSocket connection (commit)
Improved project structure (commit)
Remove executable permissions from files that lack shebang lines openembedded#240 (commit) (thanks Ben Beasley!)

Signed-off-by: Zheng Ruoqin <[email protected]>
Signed-off-by: Khem Raj <[email protected]>
kraj pushed a commit to YoeDistro/meta-openembedded that referenced this issue Aug 7, 2021
Release 4.2.1 - 2021-08-02

Support setting socketio_path to the root URL openembedded#242 (commit)
Use the gevent selector to avoid 1024 file handle limitation of select#228 (commit)
Pass reason when closing a WebSocket connection (commit)
Improved project structure (commit)
Remove executable permissions from files that lack shebang lines openembedded#240 (commit) (thanks Ben Beasley!)

Signed-off-by: Zheng Ruoqin <[email protected]>
Signed-off-by: Khem Raj <[email protected]>
kraj pushed a commit to YoeDistro/meta-openembedded that referenced this issue Aug 7, 2021
Release 4.2.1 - 2021-08-02

Support setting socketio_path to the root URL openembedded#242 (commit)
Use the gevent selector to avoid 1024 file handle limitation of select#228 (commit)
Pass reason when closing a WebSocket connection (commit)
Improved project structure (commit)
Remove executable permissions from files that lack shebang lines openembedded#240 (commit) (thanks Ben Beasley!)

Signed-off-by: Zheng Ruoqin <[email protected]>
Signed-off-by: Khem Raj <[email protected]>
kraj pushed a commit to YoeDistro/meta-openembedded that referenced this issue Aug 8, 2021
Release 4.2.1 - 2021-08-02

Support setting socketio_path to the root URL openembedded#242 (commit)
Use the gevent selector to avoid 1024 file handle limitation of select#228 (commit)
Pass reason when closing a WebSocket connection (commit)
Improved project structure (commit)
Remove executable permissions from files that lack shebang lines openembedded#240 (commit) (thanks Ben Beasley!)

Signed-off-by: Zheng Ruoqin <[email protected]>
Signed-off-by: Khem Raj <[email protected]>
kraj pushed a commit to YoeDistro/meta-openembedded that referenced this issue Aug 9, 2021
Release 4.2.1 - 2021-08-02

Support setting socketio_path to the root URL openembedded#242 (commit)
Use the gevent selector to avoid 1024 file handle limitation of select#228 (commit)
Pass reason when closing a WebSocket connection (commit)
Improved project structure (commit)
Remove executable permissions from files that lack shebang lines openembedded#240 (commit) (thanks Ben Beasley!)

Signed-off-by: Zheng Ruoqin <[email protected]>
Signed-off-by: Khem Raj <[email protected]>
kraj pushed a commit to YoeDistro/meta-openembedded that referenced this issue Aug 9, 2021
Release 4.2.1 - 2021-08-02

Support setting socketio_path to the root URL openembedded#242 (commit)
Use the gevent selector to avoid 1024 file handle limitation of select#228 (commit)
Pass reason when closing a WebSocket connection (commit)
Improved project structure (commit)
Remove executable permissions from files that lack shebang lines openembedded#240 (commit) (thanks Ben Beasley!)

Signed-off-by: Zheng Ruoqin <[email protected]>
Signed-off-by: Khem Raj <[email protected]>
jpuhlman pushed a commit to MontaVista-OpenSourceTechnology/meta-openembedded that referenced this issue Aug 11, 2021
Release 4.2.1 - 2021-08-02

Support setting socketio_path to the root URL openembedded#242 (commit)
Use the gevent selector to avoid 1024 file handle limitation of select#228 (commit)
Pass reason when closing a WebSocket connection (commit)
Improved project structure (commit)
Remove executable permissions from files that lack shebang lines openembedded#240 (commit) (thanks Ben Beasley!)

Signed-off-by: Zheng Ruoqin <[email protected]>
Signed-off-by: Khem Raj <[email protected]>
kraj pushed a commit to YoeDistro/meta-openembedded that referenced this issue Aug 11, 2021
Release 4.2.1 - 2021-08-02

Support setting socketio_path to the root URL openembedded#242 (commit)
Use the gevent selector to avoid 1024 file handle limitation of select#228 (commit)
Pass reason when closing a WebSocket connection (commit)
Improved project structure (commit)
Remove executable permissions from files that lack shebang lines openembedded#240 (commit) (thanks Ben Beasley!)

Signed-off-by: Zheng Ruoqin <[email protected]>
Signed-off-by: Khem Raj <[email protected]>
kraj pushed a commit to YoeDistro/meta-openembedded that referenced this issue Aug 11, 2021
Release 4.2.1 - 2021-08-02

Support setting socketio_path to the root URL openembedded#242 (commit)
Use the gevent selector to avoid 1024 file handle limitation of select#228 (commit)
Pass reason when closing a WebSocket connection (commit)
Improved project structure (commit)
Remove executable permissions from files that lack shebang lines openembedded#240 (commit) (thanks Ben Beasley!)

Signed-off-by: Zheng Ruoqin <[email protected]>
Signed-off-by: Khem Raj <[email protected]>
kraj pushed a commit to YoeDistro/meta-openembedded that referenced this issue Aug 11, 2021
Release 4.2.1 - 2021-08-02

Support setting socketio_path to the root URL openembedded#242 (commit)
Use the gevent selector to avoid 1024 file handle limitation of select#228 (commit)
Pass reason when closing a WebSocket connection (commit)
Improved project structure (commit)
Remove executable permissions from files that lack shebang lines openembedded#240 (commit) (thanks Ben Beasley!)

Signed-off-by: Zheng Ruoqin <[email protected]>
Signed-off-by: Khem Raj <[email protected]>
kraj pushed a commit to YoeDistro/meta-openembedded that referenced this issue Aug 11, 2021
Release 4.2.1 - 2021-08-02

Support setting socketio_path to the root URL openembedded#242 (commit)
Use the gevent selector to avoid 1024 file handle limitation of select#228 (commit)
Pass reason when closing a WebSocket connection (commit)
Improved project structure (commit)
Remove executable permissions from files that lack shebang lines openembedded#240 (commit) (thanks Ben Beasley!)

Signed-off-by: Zheng Ruoqin <[email protected]>
Signed-off-by: Khem Raj <[email protected]>
kraj pushed a commit to YoeDistro/meta-openembedded that referenced this issue Aug 12, 2021
Release 4.2.1 - 2021-08-02

Support setting socketio_path to the root URL openembedded#242 (commit)
Use the gevent selector to avoid 1024 file handle limitation of select#228 (commit)
Pass reason when closing a WebSocket connection (commit)
Improved project structure (commit)
Remove executable permissions from files that lack shebang lines openembedded#240 (commit) (thanks Ben Beasley!)

Signed-off-by: Zheng Ruoqin <[email protected]>
Signed-off-by: Khem Raj <[email protected]>
kraj pushed a commit to YoeDistro/meta-openembedded that referenced this issue Aug 12, 2021
Release 4.2.1 - 2021-08-02

Support setting socketio_path to the root URL openembedded#242 (commit)
Use the gevent selector to avoid 1024 file handle limitation of select#228 (commit)
Pass reason when closing a WebSocket connection (commit)
Improved project structure (commit)
Remove executable permissions from files that lack shebang lines openembedded#240 (commit) (thanks Ben Beasley!)

Signed-off-by: Zheng Ruoqin <[email protected]>
Signed-off-by: Khem Raj <[email protected]>
kraj pushed a commit to YoeDistro/meta-openembedded that referenced this issue Aug 13, 2021
Release 4.2.1 - 2021-08-02

Support setting socketio_path to the root URL openembedded#242 (commit)
Use the gevent selector to avoid 1024 file handle limitation of select#228 (commit)
Pass reason when closing a WebSocket connection (commit)
Improved project structure (commit)
Remove executable permissions from files that lack shebang lines openembedded#240 (commit) (thanks Ben Beasley!)

Signed-off-by: Zheng Ruoqin <[email protected]>
Signed-off-by: Khem Raj <[email protected]>
kraj pushed a commit to YoeDistro/meta-openembedded that referenced this issue Aug 13, 2021
Release 4.2.1 - 2021-08-02

Support setting socketio_path to the root URL openembedded#242 (commit)
Use the gevent selector to avoid 1024 file handle limitation of select#228 (commit)
Pass reason when closing a WebSocket connection (commit)
Improved project structure (commit)
Remove executable permissions from files that lack shebang lines openembedded#240 (commit) (thanks Ben Beasley!)

Signed-off-by: Zheng Ruoqin <[email protected]>
Signed-off-by: Khem Raj <[email protected]>
kraj pushed a commit to YoeDistro/meta-openembedded that referenced this issue Aug 13, 2021
Release 4.2.1 - 2021-08-02

Support setting socketio_path to the root URL openembedded#242 (commit)
Use the gevent selector to avoid 1024 file handle limitation of select#228 (commit)
Pass reason when closing a WebSocket connection (commit)
Improved project structure (commit)
Remove executable permissions from files that lack shebang lines openembedded#240 (commit) (thanks Ben Beasley!)

Signed-off-by: Zheng Ruoqin <[email protected]>
Signed-off-by: Khem Raj <[email protected]>
kraj pushed a commit to YoeDistro/meta-openembedded that referenced this issue Aug 13, 2021
Release 4.2.1 - 2021-08-02

Support setting socketio_path to the root URL openembedded#242 (commit)
Use the gevent selector to avoid 1024 file handle limitation of select#228 (commit)
Pass reason when closing a WebSocket connection (commit)
Improved project structure (commit)
Remove executable permissions from files that lack shebang lines openembedded#240 (commit) (thanks Ben Beasley!)

Signed-off-by: Zheng Ruoqin <[email protected]>
Signed-off-by: Khem Raj <[email protected]>
kraj pushed a commit to YoeDistro/meta-openembedded that referenced this issue Aug 15, 2021
Release 4.2.1 - 2021-08-02

Support setting socketio_path to the root URL openembedded#242 (commit)
Use the gevent selector to avoid 1024 file handle limitation of select#228 (commit)
Pass reason when closing a WebSocket connection (commit)
Improved project structure (commit)
Remove executable permissions from files that lack shebang lines openembedded#240 (commit) (thanks Ben Beasley!)

Signed-off-by: Zheng Ruoqin <[email protected]>
Signed-off-by: Khem Raj <[email protected]>
kraj pushed a commit to YoeDistro/meta-openembedded that referenced this issue Aug 15, 2021
Release 4.2.1 - 2021-08-02

Support setting socketio_path to the root URL openembedded#242 (commit)
Use the gevent selector to avoid 1024 file handle limitation of select#228 (commit)
Pass reason when closing a WebSocket connection (commit)
Improved project structure (commit)
Remove executable permissions from files that lack shebang lines openembedded#240 (commit) (thanks Ben Beasley!)

Signed-off-by: Zheng Ruoqin <[email protected]>
Signed-off-by: Khem Raj <[email protected]>
halstead pushed a commit that referenced this issue Aug 16, 2021
Release 4.2.1 - 2021-08-02

Support setting socketio_path to the root URL #242 (commit)
Use the gevent selector to avoid 1024 file handle limitation of select#228 (commit)
Pass reason when closing a WebSocket connection (commit)
Improved project structure (commit)
Remove executable permissions from files that lack shebang lines #240 (commit) (thanks Ben Beasley!)

Signed-off-by: Zheng Ruoqin <[email protected]>
Signed-off-by: Khem Raj <[email protected]>
Signed-off-by: Trevor Gamblin <[email protected]>
kraj pushed a commit to YoeDistro/meta-openembedded that referenced this issue Feb 22, 2022
refresh patches for 0.104:
0001-Makefile-do-not-use-Werror.patch
0001-don-t-fail-if-GLOB_BRACE-is-not-defined.patch

0001-parse-nm-fix-32bit-format-string.patch
removed since it's included in 0.104

Changelog:
=========
Enable embedded-switch-mode setting on SmartNICs (openembedded#253)
Permit multiple patterns for the driver globs in match (openembedded#202), LP#1918421
Improve routing capabilities (openembedded#248), LP#1892272, LP#1805038
Support additional link offload options for networkd (openembedded#225) (openembedded#242), LP#1771740
Consolidate enum-to-string arrays (openembedded#230)
Handle differing ip6-privacy default value for NetworkManager (openembedded#263)
YAML state tracking (--state rootdir) for DBus API and netplan try (openembedded#231), LP#1943120
Support ConfigureWithoutCarrier (ignore-carrier) for networkd (openembedded#215)
Move primary git branch master to main
Documentation improvements (openembedded#226)
Compatibility for glib-2.70 (openembedded#235)
Cleanup Makefile, install only public headers
Improve test reliability & enable integration testing CI for autopkgtests
Netplan get to use the libnetplan parser (openembedded#252)
libnetplan:
- introduce the notion of NetplanState (openembedded#232)
- use an explicit parser context (openembedded#233)
- expose coherent generator APIs (openembedded#239)
- improve overall error handling (openembedded#234)
- consolidation of YAML parsing into the library (openembedded#241, openembedded#249, openembedded#250, openembedded#251)
Restrict the symbol export to a determined public API (openembedded#227)
- WARNING: We dropped some internal symbols from the API that we know
  have no external consumers (that we are aware of)
- 0.103: _serialize_yaml, contains_netdef_type, tmp, validate_default_route_consistency
- 0.102: cur_filename, netplan_netdef_new
- 0.100: address_option_handlers, is_hostname, validate_ovs_target, wireguard_peer_handlers
- 0.99: current_file, is_ip4_address, is_ip6_address, missing_id,
  missing_ids_found, parser_error, validate_backend_rules, validate_netdef_grammar,
  yaml_error

Signed-off-by: Wang Mingyu <[email protected]>
Signed-off-by: Khem Raj <[email protected]>
halstead pushed a commit that referenced this issue Feb 23, 2022
refresh patches for 0.104:
0001-Makefile-do-not-use-Werror.patch
0001-don-t-fail-if-GLOB_BRACE-is-not-defined.patch

0001-parse-nm-fix-32bit-format-string.patch
removed since it's included in 0.104

Changelog:
=========
Enable embedded-switch-mode setting on SmartNICs (#253)
Permit multiple patterns for the driver globs in match (#202), LP#1918421
Improve routing capabilities (#248), LP#1892272, LP#1805038
Support additional link offload options for networkd (#225) (#242), LP#1771740
Consolidate enum-to-string arrays (#230)
Handle differing ip6-privacy default value for NetworkManager (#263)
YAML state tracking (--state rootdir) for DBus API and netplan try (#231), LP#1943120
Support ConfigureWithoutCarrier (ignore-carrier) for networkd (#215)
Move primary git branch master to main
Documentation improvements (#226)
Compatibility for glib-2.70 (#235)
Cleanup Makefile, install only public headers
Improve test reliability & enable integration testing CI for autopkgtests
Netplan get to use the libnetplan parser (#252)
libnetplan:
- introduce the notion of NetplanState (#232)
- use an explicit parser context (#233)
- expose coherent generator APIs (#239)
- improve overall error handling (#234)
- consolidation of YAML parsing into the library (#241, #249, #250, #251)
Restrict the symbol export to a determined public API (#227)
- WARNING: We dropped some internal symbols from the API that we know
  have no external consumers (that we are aware of)
- 0.103: _serialize_yaml, contains_netdef_type, tmp, validate_default_route_consistency
- 0.102: cur_filename, netplan_netdef_new
- 0.100: address_option_handlers, is_hostname, validate_ovs_target, wireguard_peer_handlers
- 0.99: current_file, is_ip4_address, is_ip6_address, missing_id,
  missing_ids_found, parser_error, validate_backend_rules, validate_netdef_grammar,
  yaml_error

Signed-off-by: Wang Mingyu <[email protected]>
Signed-off-by: Khem Raj <[email protected]>
kraj pushed a commit to YoeDistro/meta-openembedded that referenced this issue Sep 22, 2023
Changelog
=========
Added:
Add hash capabilities to OUI (openembedded#225, amitmi704)

Fixed:
Backwards incompatible: Handle RFC 6164 IPv6 addresses (don't reserve first IP
address in point-to-point subnets) ($267, Damien Claisse)
Technically backwards incompatible: Fix for is_loopback behaviour – consider
IPNetwork('::1/128') to be loopback (openembedded#222, openembedded#223, niels)
Include tutorials in source distributions (openembedded#215, Louis Sautier)
Fix a documentation typo (openembedded#242, Wouter)
Fix print syntax in the documentation to be Python 3 compatible (openembedded#221, François Magimel)
Fix the Sphinx syntax in the documentation (openembedded#220, François Magimel)

Other:
Update the databases (openembedded#266, Jakub Stasiak)
Deprecate Python 3.6 (openembedded#263, Jakub Stasiak)
Eliminate unnecessary evals (openembedded#228, KOLANICH)

Signed-off-by: Derek Straka <[email protected]>
Signed-off-by: Khem Raj <[email protected]>
kraj added a commit to YoeDistro/meta-openembedded that referenced this issue Jul 28, 2024
	* Fix building documentation in build directory.
	  Thanks Michael Tokarev
	* Updated the configure script for split openssl directories.
	* Fix for windows compile; asctime_r compat, search for inet_ntop
	  in ws2_32, avoid double decl of inet_ntop, check for symlink call,
	  include config.h in edns.c, have socket compare use correct
	  signedness, add -u repo option to makewin.sh, fix quoting in
	  makewin.sh and check return value of bind and connect in net.c
	  for failure instead of a socket type. And fix to install .exe files.
	* Fix to compile with OpenSSL 3.2. Update acx_nlnetlabs.m4 to 48.
	* Fix to compile DLLs, and pick out of the lib64 dir, and include
	  libssp-0.dll and ldns-config.
	* bugfix openembedded#237: Resolver uses nameserver commented out in
	  /etc/resolv.conf. Thanks grembo.
	* Added RESINFO rrtype.
	* Added WALLET rrtype.
	* PR openembedded#241: Fix coverity cited problems. Thanks Enji Cooper.
	* PR openembedded#233: Several Python SWIG issues. Thanks Florian Weimer.
	* PR openembedded#231: const ldns_rdf * typemap fixes to support swig-4.2.0
	  Thanks William S Fulton
	* PR openembedded#227: keys.c: fix build with libressl >= 3.8.1
	  Thanks Fabrice Fontaine
	* PR openembedded#224: Portable executable progs don't underlink to libldns
	  Thanks Ørjan Malde
	* PR openembedded#216: Update declaration for function with no argument
	  Thanks Ed Maste
	* PR openembedded#214: fix the build in FreeBSD's base system
	  Thanks Pierre Pronchery and Dag-Erling Smørgrav
	* PR openembedded#206: improve 'next-label' algorithm in ldns-walk
	  Thanks Jelte Jansen
	* PR openembedded#205: Add functions to extract RFC 8914 extended errors
	  Thanks Roland van Rijswijk-Deij
	* PR openembedded#203: Expand CI: Cygwin, BSDs, musl libc, 32-bit, and big-endian
	  Thanks Felipe Gasper
	* PR openembedded#191: 16-unit-tests-edns: Fix leak & warnings
	  Thanks Felipe Gasper
	* Added NXNAME rrtype.
	* PR openembedded#242: Openssl no engine improved support openembedded#242
	  Thanks Petr Menšík

Detailed Changes [1]

Fix buildpaths QA errors while here

[1] NLnetLabs/ldns@1.8.3...1.8.4

Signed-off-by: Khem Raj <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants