diff --git a/.files b/.files
index 4d39824..5751700 100644
Binary files a/.files and b/.files differ
diff --git a/.rev b/.rev
index e502f4b..098c3bb 100644
--- a/.rev
+++ b/.rev
@@ -7,4 +7,12 @@
Python library for testing Ansible roles
1003894
+
+ d90f483d94909dd2100d99c8d146afec
+ 4.0.4
+
+ dimstar_suse
+
+ 1061943
+
diff --git a/molecule-3.6.1.tar.gz b/molecule-3.6.1.tar.gz
deleted file mode 120000
index ca505d9..0000000
--- a/molecule-3.6.1.tar.gz
+++ /dev/null
@@ -1 +0,0 @@
-/ipfs/bafybeibb5itdl2qyqorsnwyuiboaq4msqdpxbel3zzs3ybjssad4k75qcu
\ No newline at end of file
diff --git a/molecule-4.0.4.tar.gz b/molecule-4.0.4.tar.gz
new file mode 120000
index 0000000..2f1a1c3
--- /dev/null
+++ b/molecule-4.0.4.tar.gz
@@ -0,0 +1 @@
+/ipfs/bafybeibulr4cbj6kqniyitswyu4qlverrmp3uvnlfcbke2ys3eysekzvny
\ No newline at end of file
diff --git a/molecule.changes b/molecule.changes
index 8ff74ab..4e93582 100644
--- a/molecule.changes
+++ b/molecule.changes
@@ -1,4 +1,50 @@
-------------------------------------------------------------------
+Sun Jan 29 15:48:17 UTC 2023 - Lukas Müller
+
+- Disable deprecation warnings and tests requiring internet connection.
+- Update to version 4.0.4.
+ Changelog: https://github.com/ansible-community/molecule/releases/tag/v4.0.4
+ * Allow side_effect and verify to have parameters (#3730) @ehartmann
+ * Fix running tox:dockerfile with docker secretservice enabled (#3764) @zeitounator
+ * Add some FQCNs (#3750) @muellerbe
+ * Accept any string for "network_mode" in molecule.json schema (#3725) @fredflev
+ * Fix moved libera channel (#3727) @staticdev
+ * Add "default" as a valid docker "network_mode" in molecule.json schema (#3724) @fredflev
+ * JSON Schema: Allow additionalProperties in ProvisionerConfigOptionsSshConnectionModel (#3721) @fredflev
+ * Help messages when config does not match state file (#3713) @scottalreadytaken
+ * Re-add credentials to Docker registry schema (#3706) @TheLastProject
+ Changes from version 4.0.3:
+ Changelog: https://github.com/ansible-community/molecule/releases/tag/v4.0.3
+ * Add support for cgroupns_mode (#3700) @zhan9san
+ * Platform env expects a dict of vars (#3690) @zeitounator
+ * Support ANSIBLE_COLLECTIONS_PATH environment var (#3681) @nre-ableton
+ * Fix schema (#3687) @jsf9k
+ * Bump ansible-compat from 2.2.0 to 2.2.1 (#3670)
+ Changes from version 4.0.2:
+ Changelog: https://github.com/ansible-community/molecule/releases/tag/v4.0.2
+ * Use FQCN at any point I found (#3680) @muellerbe
+ * Schema fix (#3671) @apatard
+ * Adopt molecule config JSON schema (#3668) @ssbarnea
+ * Replace cerberus with jsonschema for configuration validation (#3638) @zhan9san
+ * Downgrade log level when linking Ansible variables (#3646) @sleiner
+ Changes from version 4.0.1:
+ Changelog: https://github.com/ansible-community/molecule/releases/tag/v4.0.1
+ * Add support for Python 3.11 (#3621) @ssbarnea
+ * Added clarifications about customizing docker images (#3604) @timblaktu
+ * Fix undocumented env vars (#3600) @gardar
+ * Document description for action arguments (verify and side_effect) (#3605) @amarao
+ Changes from version 4.0.0:
+ Full Changelog: https://github.com/ansible-community/molecule/releases/tag/v4.0.0
+ * Removed mol command line alias (#3457) @ssbarnea
+ * Remove ansible and ansible-base extras (#3395) @ssbarnea
+ * Remove support for py36 and py37 (#3436) @ssbarnea
+ * Allow bypassing role name checking (#3549) @zhan9san
+ * Add support for MOLECULE_PLATFORM_NAME (#3416) @zhan9san
+ * Add args for verify and side_effect actions (#3467) @amarao
+ * Enable packit rpm building for Fedora 35 (#3456) @ssbarnea
+ * Remove ansible and ansible-base extras (#3395) @ssbarnea
+
+-------------------------------------------------------------------
Tue Jul 26 21:44:46 UTC 2022 - Lukas Müller
- Disable tests on Leap.
diff --git a/molecule.spec b/molecule.spec
index 4e82f9c..4dfeef3 100644
--- a/molecule.spec
+++ b/molecule.spec
@@ -1,7 +1,7 @@
#
-# spec file for package python-molecule
+# spec file for package molecule
#
-# Copyright (c) 2022 SUSE LLC
+# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -25,53 +25,58 @@
%define pythons python3
Name: molecule
-Version: 3.6.1
+Version: 4.0.4
Release: 0
Summary: Aids in the development and testing of Ansible roles
License: MIT
URL: https://github.com/ansible-community/molecule
Source: https://files.pythonhosted.org/packages/source/m/molecule/molecule-%{version}.tar.gz
Patch0: skip-broken-test.patch
-BuildRequires: python3-rpm-macros
BuildRequires: python3-pip
-BuildRequires: python3-wheel
+BuildRequires: python3-rpm-macros
BuildRequires: python3-setuptools
+BuildRequires: python3-wheel
%if %{with test}
-BuildRequires: ansible
+BuildRequires: ansible-lint
+BuildRequires: python3-ansi2html
+BuildRequires: python3-coverage
+BuildRequires: python3-filelock
+BuildRequires: python3-pexpect
BuildRequires: python3-pytest
+BuildRequires: python3-pytest-html
BuildRequires: python3-pytest-mock
-BuildRequires: python3-pexpect
+BuildRequires: python3-pytest-plus
+BuildRequires: python3-pytest-testinfra
+BuildRequires: python3-pytest-xdist
BuildRequires: python3-yamllint
-BuildRequires: python3-ansible-compat >= 1.0.0
-BuildRequires: python3-Cerberus >= 1.3.2
+# Runtime dependencies of molecule
+BuildRequires: ansible
+BuildRequires: python3
+BuildRequires: python3-Jinja2 >= 2.11.3
+BuildRequires: python3-PyYAML >= 5.1
+BuildRequires: python3-ansible-compat >= 2.2.0
BuildRequires: python3-click >= 8.0
BuildRequires: python3-click-help-colors >= 0.9
BuildRequires: python3-cookiecutter >= 1.7.3
BuildRequires: python3-enrich >= 1.2.7
-BuildRequires: python3-filelock
-BuildRequires: python3-importlib-metadata
-BuildRequires: python3-Jinja2 >= 2.11.3
+BuildRequires: python3-jsonschema >= 4.9.1
BuildRequires: python3-packaging
-BuildRequires: python3-paramiko >= 2.5.0
BuildRequires: python3-pluggy >= 0.7.1
-BuildRequires: python3-PyYAML >= 5.1
BuildRequires: python3-rich >= 9.5.1
%endif
BuildRequires: fdupes
Requires: ansible
Requires: python3
-Requires: python3-ansible-compat >= 1.0.0
-Requires: python3-Cerberus >= 1.3.2
+Requires: python3-Jinja2 >= 2.11.3
+Requires: python3-PyYAML >= 5.1
+Requires: python3-ansible-compat >= 2.2.0
Requires: python3-click >= 8.0
Requires: python3-click-help-colors >= 0.9
Requires: python3-cookiecutter >= 1.7.3
Requires: python3-enrich >= 1.2.7
-Requires: python3-importlib-metadata
-Requires: python3-Jinja2 >= 2.11.3
+Requires: python3-jsonschema >= 4.9.1
Requires: python3-packaging
-Requires: python3-paramiko >= 2.5.0
Requires: python3-pluggy >= 0.7.1
-Requires: python3-PyYAML >= 5.1
Requires: python3-rich >= 9.5.1
BuildArch: noarch
@@ -106,14 +111,12 @@ sed -i '1{\@^#!/usr/bin/python@d}' %{buildroot}%{python3_sitelib}/molecule/test/
%check
%if %{with test}
export PATH="%{buildroot}%{_bindir}:$PATH"
-%pytest
+%pytest -k 'not (test_command_dependency or test_sample_collection)' -W ignore:'There is no current event loop'
%endif
%files
%license LICENSE
%{python3_sitelib}/*
%{_bindir}/molecule
-%{_bindir}/mol
%changelog
-