dev-util/osc: treeclean

Closes: https://bugs.gentoo.org/897610
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
Anna (cybertailor) Vyalkova
2023-05-02 00:41:12 +05:00
parent b451a988ba
commit 121a6f66b6
7 changed files with 0 additions and 323 deletions

View File

@@ -1 +0,0 @@
DIST osc-0.173.0.tar.gz 362486 BLAKE2B c8231b547c82348a767d6757b7dfe5c5f0c9ade02f0f0baceac0573c26ba6c45bd4edc386fab70320ad117d3ac23443e96b2fc1599d1c7bfda5b70427cba6581 SHA512 212657621a20e662279b06e63ac201f761af55c348d3f6b6576b9fbea2e3403dc5f87295d6039f5cc7890ca85425bda95ed32ed2fbc39f3d7dcaad4b9e12bb9b

View File

@@ -1,31 +0,0 @@
--- a/setup.py
+++ b/setup.py
@@ -3,7 +3,6 @@
from distutils.core import setup
import distutils.core
from distutils.command import build, install_data
-import gzip
import os.path
import sys
@@ -29,9 +28,9 @@
def build_man_page(self):
"""
"""
- man_path = os.path.join(self.build_base, 'osc.1.gz')
+ man_path = os.path.join(self.build_base, 'osc.1')
distutils.log.info('generating %s' % man_path)
- outfile = gzip.open(man_path, 'wt')
+ outfile = open(man_path, 'w')
osccli = commandline.Osc(stdout=outfile)
# FIXME: we cannot call the main method because osc expects an ~/.oscrc
# file (this would break builds in environments like the obs)
@@ -100,7 +99,7 @@
data_files = []
if sys.platform[:3] != 'win':
- data_files.append((os.path.join('share', 'man', 'man1'), ['osc.1.gz']))
+ data_files.append((os.path.join('share', 'man', 'man1'), ['osc.1']))
with open("README") as fh:
long_description = fh.read()

View File

@@ -1,147 +0,0 @@
#compdef osc
#
# Copyright (C) 2009,2010 Holger Macht <holger@homac.de>
#
# This file is released under the GPLv2.
#
# Based on the the zsh guide from http://zsh.dotsrc.org/Guide/zshguide06.html
#
# Toggle verbose completions: zstyle ':completion:*:osc:*' verbose no
# zstyle ':completion:*:osc-subcommand:*' verbose no
#
# Use the variables $ZSH_OSC_BUILD_TARGETS_EXTRA and $ZSH_OSC_PROJECTS_EXTRA to
# extend the list of possible completions in your ~/.zshrc like that:
# export OSC_PROJECTS_EXTRA="Base:System Base:shells"
#
# version 0.2
#
OSC_BUILD_TARGETS="openSUSE_10.2 openSUSE_10.3 openSUSE_11.0 openSUSE_11.1 openSUSE_11.2 openSUSE_11.3 openSUSE_Factory"
OSC_PROJECTS="openSUSE:Factory openSUSE:11.2 openSUSE:11.3 openSUSE:11.1 openSUSE:11.0 openSUSE:10.3"
# user defined variables $OSC_BUILD_TARGETS_EXTRA and
# $OSC_PROJECTS_EXTRA can add to the project/build target list
OSC_BUILD_TARGETS="$OSC_BUILD_TARGETS $ZSH_OSC_BUILD_TARGETS_EXTRA"
OSC_PROJECTS="$OSC_PROJECTS $ZSH_OSC_PROJECTS_EXTRA"
# Main dispatcher
_osc() {
if (( CURRENT > 2 )) && [[ ${words[2]} != "help" ]]; then
# Remember the subcommand name
local cmd=${words[2]}
# Set the context for the subcommand.
curcontext="${curcontext%:*:*}:osc-subcommand"
# Narrow the range of words we are looking at to exclude `osc'
(( CURRENT-- ))
shift words
# Run the completion for the subcommand
if [ "$cmd" = "submitreq" -o "$cmd" = "sr" ]; then
_osc_cmd_submitreq
elif [ "$cmd" = "getbinaries" ]; then
_osc_cmd_getbinaries
elif [ "$cmd" = "checkout" -o "$cmd" = "co" -o "$cmd" = "branch" ]; then
_osc_cmd_checkout
elif [ "$cmd" = "buildlog" -o "$cmd" = "buildinfo" -o "$cmd" = "bl" ]; then
_osc_cmd_buildlog
else
_osc_cmd_do $cmd
fi
else
local hline
local -a cmdlist
local tag=0
_call_program help-commands osc help | while read -A hline; do
# start parsing with "commands:"
[[ $hline[1] = "commands:" ]] && tag=1
# stop parsing at the line starting with "For"
[[ $hline[1] = "For" ]] && tag=0
[[ $tag = 0 ]] && continue
# all commands have to start with lower case letters
[[ $hline[1] =~ ^[A-Z] ]] && continue
(( ${#hline} < 2 )) && continue
# ${hline[1]%,} truncates the last ','
cmdlist=($cmdlist "${hline[1]%,}:${hline[2,-1]}")
done
_describe -t osc-commands 'osc command' cmdlist
fi
}
_osc_cmd_getbinaries() {
_arguments \
'1:PROJECT:( `echo $OSC_PROJECTS` )' \
'2:PACKAGE:(PACKAGE)' \
'3:REPOSITORY:( `echo $OSC_BUILD_TARGETS` )' \
'4:ARCHITECTURE:(i586 x86_64)'
}
_osc_cmd_checkout() {
_arguments \
'1:PROJECT:( `echo $OSC_PROJECTS` )' \
'2:PACKAGE:(PACKAGE)'
}
_osc_cmd_buildlog() {
_arguments \
'1:REPOSITORY:( `echo $OSC_BUILD_TARGETS` )' \
'2:ARCHITECTURE:(i586 x86_64)'
}
_osc_cmd_submitreq() {
local hline
local -a cmdlist
local tag=0
_call_program help-commands osc help $cmd | while read -A hline; do
# start parsing from "usage:"
[[ $hline[1] = "usage:" ]] && tag=1
[[ $tag = 0 ]] && continue
if [[ $hline[1] =~ ^osc ]]; then
shift hline; shift hline
elif ! [[ $hline[1] =~ ^- ]]; then
# Option has to start with a '-' or 'osc submitrequest'
continue
fi
(( ${#hline} < 2 )) && continue
cmdlist=($cmdlist "${hline[1]%,}:${hline[2,-1]}")
done
_describe -t osc-commands 'osc command' cmdlist
}
_osc_cmd_do() {
local hline
local -a cmdlist
local tag=0
# only start completion if theres some '-' on the line
if ! [ "$words[2]" = "-" ]; then
_complete
return
fi
_call_program help-commands osc help $cmd | while read -A hline; do
# start parsing from "Options:"
[[ $hline[1] = "Options:" ]] && tag=1
[[ $tag = 0 ]] && continue
# Option has to start with a '-'
[[ $hline[1] =~ ^- ]] || continue
(( ${#hline} < 2 )) && continue
cmdlist=($cmdlist "${hline[1]%,}:${hline[2,-1]}")
done
if [ -n "$cmdlist" ]; then
_describe -t osc-commands 'osc command' cmdlist
else
_complete
fi
}
# Code to make sure _osc is run when we load it
_osc "$@"

View File

@@ -1,11 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>samuelbernardo.mail@gmail.com</email>
<name>Samuel Bernardo</name>
</maintainer>
<longdescription lang="en">
Subversion-like client for Open Build Service - http://open-build-service.org/ It serves as client for the source code repository part of the build service, and it is used to edit metadata or query about build results.
</longdescription>
</pkgmetadata>

View File

@@ -1,66 +0,0 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_9 )
PYTHON_REQ_USE="xml"
DISTUTILS_SINGLE_IMPL=1
inherit distutils-r1 shell-completion
DESCRIPTION="Command line tool for Open Build Service"
HOMEPAGE="
https://en.opensuse.org/openSUSE:OSC
https://github.com/openSUSE/osc
"
if [[ ${PV} == 9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/openSUSE/${PN}.git"
else
OBS_PROJECT="openSUSE:Tools"
SRC_URI="https://github.com/openSUSE/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~x86"
fi
LICENSE="GPL-2"
SLOT="0"
# Test require config file: osc.oscerr.NoConfigfile
RESTRICT="test"
RDEPEND="
app-arch/rpm[python,${PYTHON_SINGLE_USEDEP}]
$(python_gen_cond_dep '
dev-python/m2crypto[${PYTHON_USEDEP}]
')
${PYTHON_SINGLE_DEPS}
"
BDEPEND="
$(python_gen_cond_dep '
>=dev-python/setuptools-scm-1.15.0[${PYTHON_USEDEP}]
')
test? (
${RDEPEND}
$(python_gen_cond_dep '
dev-python/path[${PYTHON_USEDEP}]
')
)"
PATCHES=( "${FILESDIR}"/${PN}-no-man-compression.patch )
distutils_enable_tests pytest
# Bug: https://bugs.gentoo.org/704520
#distutils_enable_sphinx docs dev-python/alabaster
src_install() {
distutils-r1_src_install
dosym osc-wrapper.py /usr/bin/osc
rm -f "${ED}/usr/share/doc/${PN}"*/TODO* || die
newbashcomp dist/complete.sh "${PN}"
insinto /usr/lib/osc
newins dist/osc.complete complete
newzshcomp "${FILESDIR}/${PN}.zsh_completion" "_${PN}"
dofishcomp "${PN}.fish"
}

View File

@@ -1,66 +0,0 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_9 )
PYTHON_REQ_USE="xml"
DISTUTILS_SINGLE_IMPL=1
inherit distutils-r1 shell-completion
DESCRIPTION="Command line tool for Open Build Service"
HOMEPAGE="
https://en.opensuse.org/openSUSE:OSC
https://github.com/openSUSE/osc
"
if [[ ${PV} == 9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/openSUSE/${PN}.git"
else
OBS_PROJECT="openSUSE:Tools"
SRC_URI="https://github.com/openSUSE/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~x86"
fi
LICENSE="GPL-2"
SLOT="0"
# Test require config file: osc.oscerr.NoConfigfile
RESTRICT="test"
RDEPEND="
app-arch/rpm[python,${PYTHON_SINGLE_USEDEP}]
$(python_gen_cond_dep '
dev-python/m2crypto[${PYTHON_USEDEP}]
')
${PYTHON_SINGLE_DEPS}
"
BDEPEND="
$(python_gen_cond_dep '
>=dev-python/setuptools-scm-1.15.0[${PYTHON_USEDEP}]
')
test? (
${RDEPEND}
$(python_gen_cond_dep '
dev-python/path[${PYTHON_USEDEP}]
')
)"
PATCHES=( "${FILESDIR}"/${PN}-no-man-compression.patch )
distutils_enable_tests pytest
# Bug: https://bugs.gentoo.org/704520
#distutils_enable_sphinx docs dev-python/alabaster
src_install() {
distutils-r1_src_install
dosym osc-wrapper.py /usr/bin/osc
rm -f "${ED}/usr/share/doc/${PN}"*/TODO* || die
newbashcomp dist/complete.sh "${PN}"
insinto /usr/lib/osc
newins dist/osc.complete complete
newzshcomp "${FILESDIR}/${PN}.zsh_completion" "_${PN}"
dofishcomp "${PN}.fish"
}

View File

@@ -22,7 +22,6 @@ sys-cluster/pcs
# Anna Vyalkova <cyber+gentoo@sysrq.in> (2023-05-01)
# No supported Pythom implementations set in ebuild.
# Masked for removal in 30 days.
dev-util/osc
gui-apps/azote
net-wireless/iwdgui
sci-geosciences/mapillary_tools