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

117 Commits

Author SHA1 Message Date
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
c57981ca71 Release of libvirt-python-4.10.0
* setup.py: update to bump release number

Signed-off-by: Daniel Veillard <veillard@redhat.com>
2018-12-03 13:23:07 +01:00
65d63bca20 Release of libvirt-python 4.9.0
* setup.py: update for new release

Signed-off-by: Daniel Veillard <veillard@redhat.com>
2018-11-04 18:15:48 +01:00
b1828e604f Release of libvirt-python 4.8.0
Signed-off-by: Daniel Veillard <veillard@redhat.com>

- setup.py : updated for release
2018-10-01 17:40:35 +02:00
fc4000152e Release of libvirt-python=4.7.0
* setup.py: updated for release

Signed-off-by: Daniel Veillard <veillard@redhat.com>
2018-09-03 19:23:31 +02:00
0159ae02df Release of libvirt-python-4.6.0
* setup.py: updated for release

Signed-off-by: Daniel Veillard <veillard@redhat.com>
2018-08-06 11:42:06 +02:00
74b1e6d3f8 Release of libvirt-python-4.5.0
* setup.py: updated for release

Signed-off-by: Daniel Veillard <veillard@redhat.com>
2018-07-02 22:17:36 +02:00
8099ca5ecb Release of libvirt-python-4.4.0
* setup.py: update for release

Signed-off-by: Daniel Veillard <veillard@redhat.com>
2018-06-04 22:35:30 +02:00
899dc23352 Post-release version bump to 4.3.0
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2018-04-03 14:27:25 +01:00
f9695b9b01 Post-release version bump to 4.2.0
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2018-03-05 15:09:24 +00:00
cdb2dcb4ea Release of libvirt-python 4.1.0
Signed-off-by: Daniel Veillard <veillard@redhat.com>
2018-03-05 11:51:51 +01:00
99ee8a153c Release of libvirt-python-4.0.0 2018-01-19 12:13:29 +01:00
948d77335e Require libvirt native version matching py version by default
Although we're capable of building against any libvirt >= 0.9.11, 99% of the
time we want RPM builds to be done against matching libvirt version, otherwise
we might silently build against an unexpected/wrong version.

We don't support building against a native libvirt that's newer than the
python binding, since the generator may incorrectly handle new APIs. So use
== instead of >= too.

Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2018-01-12 18:15:54 +00:00
349951fc5e Release of libvirt-python 3.10.0 2017-12-04 18:48:02 +01:00
bedc937cce Don't hardcode interpreter path
This is particularly useful on operating systems that don't ship
Python as part of the base system (eg. FreeBSD) while still working
just as well as it did before on Linux.

Reviewed-by: Daniel P. Berrange <berrange@redhat.com>
2017-11-30 08:48:36 +01:00
8018f0aa7e Release of libvirt-python-3.9.0 2017-11-02 18:00:45 +01:00
6ee87778ab Add travis build config
Enable builds on several python versions, and against several versions
of libvirt. Ideally we would build all the way back to 0.9.11, since
that is the min supported libvirt for python binding. It is not possible
to build this old libvirt version on modern distros though, so using
1.2.0 as the oldest for now.

Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2017-09-19 16:11:23 +01:00