master - Remove python bindings for liblvm2app
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=ae961a192a85c54bcf193a132bcb7c91c8dd8a79 Commit: ae961a192a85c54bcf193a132bcb7c91c8dd8a79 Parent: 669b1295aef917e5f811f448b88c9592944cf18a Author: David Teigland <[email protected]> AuthorDate: Fri Jun 8 10:33:47 2018 -0500 Committer: David Teigland <[email protected]> CommitterDate: Fri Jun 8 10:33:47 2018 -0500
Remove python bindings for liblvm2app
--- Makefile.in | 6 +- configure.ac | 4 - python/.gitignore | 2 - python/Makefile.in | 56 -- python/example.py | 120 --- python/liblvm.c | 2095 ---------------------------------------- python/setup.py.in | 35 - test/Makefile.in | 11 +- test/api/Makefile.in | 29 - test/api/lvtest.sh | 25 - test/api/pe_start.sh | 23 - test/api/percent.sh | 34 - test/api/pytest.sh | 115 --- test/api/python_lvm_unit.py.in | 1048 -------------------- test/api/thin_percent.sh | 38 - test/api/vglist.sh | 17 - test/api/vgtest.sh | 23 - test/lib/aux.sh | 5 - 18 files changed, 5 insertions(+), 3681 deletions(-)
Makefile.in +1 -5
@@ -28,10 +28,6 @@ ifeq ("@INTL@", "yes") SUBDIRS += po endif -ifeq ("@PYTHON_BINDINGS@", "yes") - SUBDIRS += python -endif - ifeq ($(MAKECMDGOALS),clean) SUBDIRS += test endif
@@ -39,7 +35,7 @@ endif ifeq ($(MAKECMDGOALS),distclean) SUBDIRS = conf include man test scripts \ libdaemon lib tools daemons libdm \ - udev po python + udev po tools.distclean: test.distclean endif DISTCLEAN_DIRS += lcov_reports*
configure.ac +0 -4
@@ -1788,8 +1788,6 @@ libdm/Makefile libdm/libdevmapper.pc man/Makefile po/Makefile -python/Makefile -python/setup.py scripts/blkdeactivate.sh scripts/blk_availability_init_red_hat scripts/blk_availability_systemd_red_hat.service
@@ -1814,8 +1812,6 @@ scripts/lvm2_tmpfiles_red_hat.conf scripts/lvmdump.sh scripts/Makefile test/Makefile -test/api/Makefile -test/api/python_lvm_unit.py tools/Makefile udev/Makefile ])
python/.gitignore deleted +0 -2
@@ -1,2 +0,0 @@ -.liblvm_built -setup.py
python/Makefile.in deleted +0 -56
56 lines not on this page · raw message
python/example.py deleted +0 -120
120 lines not on this page · raw message
python/liblvm.c deleted +0 -2095
2,095 lines not on this page · raw message
python/setup.py.in deleted +0 -35
@@ -1,35 +0,0 @@ -# -# Copyright (C) 2012-2018 Red Hat, Inc. All rights reserved. -# -# This file is part of LVM2. -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Lesser General Public License as published by -# the Free Software Foundation, either version 2.1 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. - -from distutils.core import setup, Extension - -liblvm = Extension('lvm', - sources = ['liblvm_python.c'], - libraries= ['lvm2app', 'devmapper'], - library_dirs= ['@top_builddir@/liblvm', '@top_builddir@/libdm'], - include_dirs= ['@top_builddir@/include', '@top_srcdir@']) - -setup (name='lvm', - version=@LVM_VERSION@, - description='Python bindings for liblvm2', - license="LGPLv2+", - maintainer='LVM2 maintainers', - maintainer_email='linux-lvm at redhat.com', - url='http://sourceware.org/lvm2/', - ext_modules=[liblvm], -)
test/Makefile.in +4 -7
@@ -27,7 +27,6 @@ datarootdir = @datarootdir@ LVM_TEST_RESULTS ?= results -SUBDIRS = api # FIXME: resolve testing of: unit SOURCES = lib/not.c lib/harness.c CXXSOURCES = lib/runner.cpp
@@ -50,9 +49,9 @@ include $(top_builddir)/make.tmpl T ?= . S ?= @ # never match anything by default VERBOSE ?= 0 -ALL := $(shell find -L $(srcdir) \( -path \*/shell/\*.sh -or -path \*/api/\*.sh -or -path \*/unit/\*.sh \) | $(SORT)) +ALL := $(shell find -L $(srcdir) \( -path \*/shell/\*.sh -or -path \*/unit/\*.sh \) | $(SORT)) comma = , -RUN := $(shell find -L $(srcdir) -regextype posix-egrep \( -path \*/shell/\*.sh -or -path \*/api/\*.sh -or -path \*/unit/\*.sh \) -and -regex "$(srcdir)/.*($(subst $(comma),|,$(T))).*" -and -not -regex "$(srcdir)/.*($(subst $(comma),|,$(S))).*" | $(SORT)) +RUN := $(shell find -L $(srcdir) -regextype posix-egrep \( -path \*/shell/\*.sh -or -path \*/unit/\*.sh \) -and -regex "$(srcdir)/.*($(subst $(comma),|,$(T))).*" -and -not -regex "$(srcdir)/.*($(subst $(comma),|,$(S))).*" | $(SORT)) RUN_BASE = $(subst $(srcdir)/,,$(RUN)) ifeq ("@BUILD_LVMETAD@", "yes")
@@ -248,12 +247,10 @@ LIB_SHARED = check aux inittest utils get lvm-wrapper install: .tests-stamp lib/paths-installed @echo $(srcdir) - $(INSTALL_DIR) $(DATADIR)/{shell,api,unit,lib,dbus} $(EXECDIR) + $(INSTALL_DIR) $(DATADIR)/{shell,unit,lib,dbus} $(EXECDIR) $(INSTALL_DATA) shell/*.sh $(DATADIR)/shell - $(INSTALL_DATA) api/*.sh $(DATADIR)/api $(INSTALL_DATA) unit/*.sh $(DATADIR)/unit $(INSTALL_DATA) lib/mke2fs.conf $(DATADIR)/lib - $(INSTALL_PROGRAM) api/*.{t,py} $(DATADIR)/api $(INSTALL_PROGRAM) unit/unit-test $(DATADIR)/unit $(INSTALL_PROGRAM) dbus/*.py $(DATADIR)/dbus/ $(INSTALL_DATA) lib/paths-installed $(DATADIR)/lib/paths
@@ -326,7 +323,7 @@ lib/paths-installed: lib/paths-common $(RM) $@-t cat lib/paths-common > $@-t echo 'installed_testsuite=1' >> $@-t - echo 'export PATH=@libexecdir@/lvm2-testsuite:@datadir@/lvm2-testsuite/lib:@datadir@/lvm2-testsuite/api:$$PATH' >> $@-t + echo 'export PATH=@libexecdir@/lvm2-testsuite:@datadir@/lvm2-testsuite/lib:$$PATH' >> $@-t mv $@-t $@ lib/paths: lib/paths-common
test/api/Makefile.in deleted +0 -29
@@ -1,29 +0,0 @@ -# -# Copyright (C) 2009-2012 Red Hat, Inc. All rights reserved. -# -# This file is part of LVM2. -# -# This copyrighted material is made available to anyone wishing to use, -# modify, copy, or redistribute it subject to the terms and conditions -# of the GNU General Public License v.2. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software Foundation, -# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - -srcdir = @srcdir@ -top_srcdir = @top_srcdir@ -top_builddir = @top_builddir@ - -TARGETS = -PYTEST = python_lvm_unit.py - -include $(top_builddir)/make.tmpl - -DEFS += -D_REENTRANT - -all: - test -x $(PYTEST) || chmod 755 $(PYTEST) - -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - cd $(top_builddir) && $(SHELL) ./config.status test/api/Makefile
test/api/lvtest.sh deleted +0 -25
@@ -1,25 +0,0 @@ -#!/bin/sh -# Copyright (C) 2011 Red Hat, Inc. All rights reserved. -# -# This file is part of LVM2. -# -# This copyrighted material is made available to anyone wishing to use, -# modify, copy, or redistribute it subject to the terms and conditions -# of the GNU General Public License v.2. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software Foundation, -# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - -SKIP_WITH_LVMPOLLD=1 - -. lib/inittest - -aux prepare_vg 1 - -lvcreate -n test -l 5 $vg -aux apitest lvtest $vg - -check lv_field $vg/test lv_name test - -vgremove -ff $vg
test/api/pe_start.sh deleted +0 -23
@@ -1,23 +0,0 @@ -#!/bin/sh -# Copyright (C) 2011 Red Hat, Inc. All rights reserved. -# -# This file is part of LVM2. -# -# This copyrighted material is made available to anyone wishing to use, -# modify, copy, or redistribute it subject to the terms and conditions -# of the GNU General Public License v.2. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software Foundation, -# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - -SKIP_WITH_LVMPOLLD=1 - -. lib/inittest - -aux prepare_devs 2 - -aux apitest pe_start test_vg $dev1 - -not vgs test_vg -not pvs $dev1
test/api/percent.sh deleted +0 -34
@@ -1,34 +0,0 @@ -#!/bin/sh -# Copyright (C) 2010-2013 Red Hat, Inc. All rights reserved. -# -# This file is part of LVM2. -# -# This copyrighted material is made available to anyone wishing to use, -# modify, copy, or redistribute it subject to the terms and conditions -# of the GNU General Public License v.2. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software Foundation, -# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - -SKIP_WITH_LVMPOLLD=1 - -. lib/inittest - -aux kernel_at_least 2 6 33 || skip - -aux prepare_pvs 2 -get_devs - -vgcreate -s 4k "$vg" "${DEVICES[@]}" -lvcreate -aey -l 5 -n foo $vg -lvcreate -s -n snap $vg/foo -l 3 -c 4k -lvcreate -s -n snap2 $vg/foo -l 6 -c 4k -dd if=/dev/zero of="$DM_DEV_DIR/$vg/snap2" count=1 bs=1024 oflag=direct -# skip test with broken kernel -check lv_field $vg/snap2 data_percent "50.00" || skip -lvcreate -aey --type mirror -m 1 -n mirr $vg -l 1 --mirrorlog core -lvs -a $vg -aux apitest percent $vg - -vgremove -ff $vg
test/api/pytest.sh deleted +0 -115
115 lines not on this page · raw message
test/api/python_lvm_unit.py.in deleted +0 -1048
393 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Part of the diff is not shown here. View the raw message.