1
0
mirror of https://gitlab.com/libvirt/libvirt-python.git synced 2025-07-20 12:59:21 +03:00
Commit Graph

133 Commits

Author SHA1 Message Date
88067eda52 setup: replace distutils.dir_util.remove_tree with shutils
The distutils.dir_util.remove_tree method has no compelling benefit
over using the standard python shutils module.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2022-04-21 12:34:06 +01:00
9d4b183b4e setup: replace distutils.spawn with subprocess
The distutils.spawn method has no compelling benefit over using the
standard python subprocess module.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2022-04-21 12:34:06 +01:00
7d14f77224 setup: replace distutils.spawn.find_executable with shutils
The distutils.spawn.find_executable method has no compelling benefit
over using the standard python shutils module.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2022-04-21 12:34:06 +01:00
49f0b4c16f setup: introduce an explicit check for pkg-config operation
Instead of searching for the pkg-config binary manually, just try to run
it and catch the exception raised if it isn't found. Use the --version
flag as a way to validate that it is at least somewhat functional.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2022-04-21 12:34:06 +01:00
a965c91c6f setup: stop inheriting from 'clean' command
The default 'clean' command impl deletes only intermediate files from
the 'build' directory. We've overridden it to delete everything. There
is no benefit in inheriting from the default impl, given our subclass
will delete everything.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2022-04-21 12:34:06 +01:00
6ea035b0e3 setup: drop the 'rpm' command
This duplicates funtionality already provided by the 'bdist_rpm'
command.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2022-04-21 12:34:06 +01:00
fdd2034c1d Post-release version bump to 8.3.0
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
2022-04-01 12:30:58 +02:00
a80412bf8c Post-release version bump to 8.2.0
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
2022-03-01 10:16:39 +01:00
c19804df59 Post-release version bump to 8.1.0
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
2022-01-14 15:17:49 +01:00
2d36853d57 Post-release version bump to 8.0.0
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
2021-12-01 10:53:47 +01:00
a4eed6751b Post-release version bump to 7.10.0
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
2021-11-01 13:23:27 +01:00
aa0286fa6c Post-release version bump to 7.9.0
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
2021-10-01 10:40:13 +02:00
dd5e2d796e Post-release version bump to 7.8.0
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
2021-09-01 13:47:00 +02:00
3ec079df29 Post-release version bump to 7.7.0
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
2021-08-02 12:28:43 +02:00
f18d6b038e Post-release version bump to 7.6.0
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
2021-07-01 15:44:56 +02:00
7df337cad2 Post-release version bump to 7.5.0
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
2021-06-01 12:08:38 +02:00
23ea62992f Post-release version bump to 7.4.0
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
2021-05-27 12:33:31 +00:00
38bb83e914 Don't run sanity checks by default
The sanity check scripts verify that the binding covers all APIs in the
libvirt library/headers being built against. This is primarily there for
libvirt maintainers to identify when there are gaps in API coverage.

This is not something downstream consumers of libvirt-python should be
running themselves, so we shouldn't added it to tests by default.

In addition if people are working on branches or submitting merge
requests for python changes, we shouldn't block their work for failed
API coverage sanity tests, if the python binding otherwise builds fine
and passes regular unit tests.

Thus, we introduce a new gitlab job "api-coverage" with some conditions:

 - If pushing to a branch, the job is treated as non-fatal
 - For regular scheduled builds, it is mandatory
 - Don't run in any other scenarios

This job uses the artifacts from the centos-8-git-build job and re-runs
the test suite, requesting the sanity tests to be run too.

This will achieve the result of letting us see missing API coverage
in nightly builds, without blocking other contributions.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2021-04-09 16:40:42 +01:00
a376a2abb0 setup: use pytest instead of nose to run the test suite
The software we use for running tests - nose - has been
deprecated in favor of nose2.

We don't use anything nose-specific, just unittest.TestCase,
which pytest can handle just fine.

Switch to using pytest, which we already use for libvirt-dbus.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
2021-04-07 17:09:54 +02:00
98b9db087f setup: drop have_libvirtaio
This function says we have libvirtaio on Python >= 3.3,
however we already mandate Python >= 3.5 at the start of the file.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
2021-04-07 16:25:45 +02:00
5e96c84a37 Post-release version bump to 7.3.0
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
2021-04-01 12:22:45 +02:00
7e75a36b06 Post-release version bump to 7.2.0
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
2021-03-01 11:59:46 +01:00
53065adece Post-release version bump to 7.1.0
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
2021-01-15 09:54:11 +01:00
f49e204c28 Post-release version bump to 7.0.0
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
2020-12-01 09:55:41 +01:00
991ecb5de8 Avoid truncating python version number when running sanity test
The current code assumes the version number string will be only three
characters long, which fails with "3.10".

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2020-11-12 13:34:14 +00:00
2822e23156 Post-release version bump to 6.10.0
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
2020-11-02 11:19:00 +01:00
379a65bd68 Post-release version bump to 6.9.0
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
2020-10-01 09:54:11 +02:00
a1f2c432a8 Post-release version bump to 6.8.0
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
2020-09-01 09:10:48 +02:00
2966ed6085 Post-release version bump to 6.7.0
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
2020-08-03 00:23:16 +02:00
bf049af8f9 Post-release version bump to 6.6.0
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
2020-07-23 00:43:16 +02:00
2ccc481c31 setup: post-release version bump to 6.5.0
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2020-06-08 16:43:39 +01:00
11805dd7a6 setup: post-release version bump to 6.4.0
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2020-05-05 12:08:51 +01:00
4c7fc59e0a Release of libvirt-python 6.3.0
* setup.py: updated for the release

Signed-off-by: Daniel Veillard <veillard@redhat.com>
2020-05-05 08:52:25 +02:00
4252e827e0 setup: require python >= 3.5 to build
Python 3.5 is the oldest Python version available across our supported
build platforms.

Reviewed-by: Philipp Hahn <hahn@univention.de>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2020-04-22 11:05:11 +01:00
85c5243497 Release of libvirt-python 6.2.0
* setup.py: bumped version to 6.2.0

Signed-off-by: Daniel Veillard <veillard@redhat.com>
2020-04-02 21:26:41 +02:00
af65786ef5 Release of libvirt-python 6.1.0
* setup.py : updated for release

Signed-off-by: Daniel Veillard <veillard@redhat.com>
2020-03-03 14:53:15 +01:00
ae8e5b1de6 Release of libvirt-python-6.0.0
* setup.py: updated for the release

Signed-off-by: Daniel Veillard <veillard@redhat.com>
2020-01-15 16:23:53 +01:00
5efdfd042c setup: Accept 'nosetests3' as nosetests binary
This is the name used on Ubuntu.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
2019-12-09 16:14:10 +01:00
b22e4f2441 Drop support for python 2
python2 will be end of life by the time of the next
libvirt release. All our supported build targets, including
CentOS7, have a python3 build available.

Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2019-12-04 12:14:51 +00:00
e3fa4f22d5 Release of libvirt-python 5.10.0
* setup.py: update for release

Signed-off-by: Daniel Veillard <veillard@redhat.com>
2019-12-02 20:50:24 +01:00
1236ff5386 Release of libvirt-python 5.9.0
* setup.py: update for release

Signed-off-by: Daniel Veillard <veillard@redhat.com>
2019-11-06 15:42:37 +01:00
70ad5acdfd Release of libvirt-python 5.8.0
* setup.py: updated version

Signed-off-by: Daniel Veillard <veillard@redhat.com>
2019-10-05 09:55:23 +02:00
162df20172 Release of libvirt-python 5.7.0
Signed-off-by: Daniel Veillard <veillard@redhat.com>
2019-09-03 17:30:40 +02:00
d3e647e20b Release of libvirt-python-5.6.0
* setup.py: updated for new release

Signed-off-by: Daniel Veillard <veillard@redhat.com>
2019-08-05 19:21:45 +02:00
ed2e7e79e5 Release of libvirt-python 5.5.0
* setup.py: update for release

Signed-off-by: Daniel Veillard <veillard@redhat.com>
2019-07-02 22:48:04 +02:00
56aca89b03 Release of Libvirt-python 5.4.0
Signed-off-by: Daniel Veillard <veillard@redhat.com>
2019-06-03 17:07:33 +02:00
8c682830a5 Release of libvirt-python 5.3.0
* setup.py: bumped release version

Signed-off-by: Daniel Veillard <veillard@redhat.com>
2019-05-04 20:19:34 +02:00
67dcc18908 Release of libvirt-python 5.2.0
* setup.py: bumped release version up

Signed-off-by: Daniel Veillard <veillard@redhat.com>
2019-04-03 09:46:40 +02:00
54e430448e Release of libvirt-python 5.1.0
* setup.py: updated for release

Signed-off-by: Daniel Veillard <veillard@redhat.com>
2019-03-04 11:42:24 +01:00
6c80cf5415 Release of libvirt-python 5.0.0
* setup.py: updated for release

Signed-off-by: Daniel Veillard <veillard@redhat.com>
2019-01-15 20:34:03 +01:00