mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-18 11:33:15 -04:00
Merge updates from master
This commit is contained in:
@@ -1 +1 @@
|
||||
DIST mat2-0.10.0.tar.gz 5720611 BLAKE2B 3aeb1b5fb1e5b39d5a59e84de48a1fefed8afff31d7ae2827324b9d54eab8a95f28f0e1de94d6c96ba250249531782f4a2cff4a82fdccc85da7382d00294fdaf SHA512 7434365766f5ba893b5b51e852d73af6b1dd562f3804e46b2aa5bf2097694d5465f0ddb5e401b157ed899a86caca2dd405424c5a7c86d66190cefd30eee3ba65
|
||||
DIST mat2-0.10.1.tar.gz 5780327 BLAKE2B d8ffeb1c10409aa4fb93849e641c13bb65508441fb847db2a46f289becd33a160ac711c3c3fb302bfbacd5704acc9b15876a182916cf3d34bf8bb867836fe6b4 SHA512 ee6ec621b3e98cfcf2f341364f60d853be8aedbee88fd41d2cc97888ba7ee33f7610f165cdf140e0169fbdabd41ecafe80a30dab44dc9f2b1cb501973a8e403a
|
||||
|
||||
@@ -1,27 +1,27 @@
|
||||
# Copyright 2019 Gentoo Authors
|
||||
# Copyright 2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
# Supports python3_8 but not all it's deps in the tree do yet
|
||||
PYTHON_COMPAT=(python3_{5,6,7})
|
||||
PYTHON_COMPAT=(python3_{6,7,8})
|
||||
PYTHON_REQ_USE="xml"
|
||||
|
||||
DISTUTILS_USE_SETUPTOOLS=rdepend
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Metadata Anonymisation Toolkit: handy tool to trash your metadata"
|
||||
HOMEPAGE="https://0xacab.org/jvoisin/mat2"
|
||||
SRC_URI="https://0xacab.org/jvoisin/mat2/-/archive/${PV}/${P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-3"
|
||||
SLOT="0"
|
||||
SRC_URI="https://0xacab.org/jvoisin/mat2/-/archive/${PV}/${P}.tar.gz"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="+exif sandbox video test"
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE} test? ( exif video )"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
DEPEND="${PYTHON_DEPS}"
|
||||
RDEPEND="
|
||||
${DEPEND}
|
||||
IUSE="+exif sandbox video"
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE} test? ( exif video )"
|
||||
|
||||
RDEPEND="${PYTHON_DEPS}
|
||||
media-libs/mutagen:0[${PYTHON_USEDEP}]
|
||||
dev-python/pycairo:0[${PYTHON_USEDEP}]
|
||||
dev-python/pygobject:3[${PYTHON_USEDEP}]
|
||||
@@ -31,10 +31,12 @@ RDEPEND="
|
||||
exif? ( media-libs/exiftool:* )
|
||||
sandbox? ( sys-apps/bubblewrap )
|
||||
video? ( media-video/ffmpeg:* )
|
||||
"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
test? (
|
||||
media-video/ffmpeg[mp3,vorbis]
|
||||
x11-libs/gdk-pixbuf:2[jpeg,tiff]
|
||||
)
|
||||
"
|
||||
)"
|
||||
|
||||
distutils_enable_tests unittest
|
||||
1
app-misc/vrms-gentoo/Manifest
Normal file
1
app-misc/vrms-gentoo/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST vrms-gentoo-2018.11.20.tar.gz 9340 BLAKE2B 751df8ffbc0842ab535620aa706665827c780f03aac9a89729776c6f375889bd25dff9426a2875a58b8e02a61f380c4bfc82746eec0a0631cec92479aca97c21 SHA512 a3f9c48d83649f205290622a52455363e2bda58d431261dae648568b81b4b62baaa9de3363d569402ced7d1089e8e2fcff26d37942d0b71394226a32f02c8dd8
|
||||
17
app-misc/vrms-gentoo/metadata.xml
Normal file
17
app-misc/vrms-gentoo/metadata.xml
Normal file
@@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>lssndrbarbieri@gmail.com</email>
|
||||
<name>Alessandro Barbieri</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">z411/vrms-gentoo</remote-id>
|
||||
</upstream>
|
||||
<longdescription lang="en">This is a clone of VRMS (Virtual Richard M. Stallman) for Gentoo Linux. It scans the computer for non-free packages, and shows a list of them, if any.
|
||||
Instead of using its own list of licenses, it scans the license_group file in the local computer and compares the locally installed packages to the @FREE group. If you want it to use only the @FSF-APPROVED group you can use the --strict flag.
|
||||
</longdescription>
|
||||
</pkgmetadata>
|
||||
|
||||
|
||||
|
||||
27
app-misc/vrms-gentoo/vrms-gentoo-2018.11.20.ebuild
Normal file
27
app-misc/vrms-gentoo/vrms-gentoo-2018.11.20.ebuild
Normal file
@@ -0,0 +1,27 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="7"
|
||||
|
||||
COMMIT="1d45e07cfa7ceed69fb7302cfd0f3e2d2453e115"
|
||||
|
||||
SRC_URI="https://github.com/z411/vrms-gentoo/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||
DESCRIPTION="vrms clone for Gentoo Linux"
|
||||
HOMEPAGE="https://github.com/z411/vrms-gentoo"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND="
|
||||
dev-lang/perl
|
||||
"
|
||||
|
||||
S="${WORKDIR}/${PN}-${COMMIT}"
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
dobin "${PN}"
|
||||
}
|
||||
25
app-misc/vrms-gentoo/vrms-gentoo-9999.ebuild
Normal file
25
app-misc/vrms-gentoo/vrms-gentoo-9999.ebuild
Normal file
@@ -0,0 +1,25 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="7"
|
||||
|
||||
inherit git-r3
|
||||
|
||||
DESCRIPTION="vrms clone for Gentoo Linux"
|
||||
HOMEPAGE="https://github.com/z411/vrms-gentoo"
|
||||
EGIT_REPO_URI="https://github.com/z411/${PN}.git"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS=""
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND="
|
||||
dev-lang/perl
|
||||
"
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
dobin "${PN}"
|
||||
}
|
||||
1
app-portage/portconf/Manifest
Normal file
1
app-portage/portconf/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST portconf-1.6.8.tar.gz 15668 BLAKE2B 92e77bdd03de904dd6f9a1292070fe356b3f2f4fd3ab082889201943ada7773e9e84650adf656e597d18fefaed2702e436dd655d209914404699d5bff1cd93eb SHA512 1c3f64198b72f0eb08771285cec2b89348eb6c71feaf0607f9029c563fc3b549b7c7ea48d4ce739ed659881682525902b6a9dd9dc649079e0ed462ffa584df4b
|
||||
15
app-portage/portconf/metadata.xml
Normal file
15
app-portage/portconf/metadata.xml
Normal file
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>lssndrbarbieri@gmail.com</email>
|
||||
<name>Alessandro Barbieri</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<maintainer>
|
||||
<email>megagreener@gmail.com</email>
|
||||
<name>megabaks</name>
|
||||
</maintainer>
|
||||
<remote-id type="github">megabaks/portconf</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
33
app-portage/portconf/portconf-1.6.8-r1.ebuild
Normal file
33
app-portage/portconf/portconf-1.6.8-r1.ebuild
Normal file
@@ -0,0 +1,33 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="7"
|
||||
|
||||
DESCRIPTION="/etc/portage cleaner"
|
||||
HOMEPAGE="https://github.com/megabaks/portconf"
|
||||
SRC_URI="https://github.com/megabaks/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
|
||||
IUSE=""
|
||||
|
||||
DEPEND="
|
||||
app-shells/bash:=
|
||||
sys-apps/portage
|
||||
"
|
||||
RDEPEND="${DEPEND}
|
||||
app-portage/eix
|
||||
app-portage/portage-utils
|
||||
sys-apps/gawk
|
||||
|| ( app-text/agrep dev-libs/tre )
|
||||
"
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
dobin portconf
|
||||
insinto /etc
|
||||
newins portconf.conf portconf.conf
|
||||
}
|
||||
35
app-portage/portconf/portconf-9999.ebuild
Normal file
35
app-portage/portconf/portconf-9999.ebuild
Normal file
@@ -0,0 +1,35 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="7"
|
||||
|
||||
inherit git-r3
|
||||
|
||||
DESCRIPTION="/etc/portage cleaner"
|
||||
HOMEPAGE="https://github.com/megabaks/portconf"
|
||||
EGIT_REPO_URI="https://github.com/megabaks/${PN}.git"
|
||||
|
||||
LICENSE="GPL-3+"
|
||||
SLOT="0"
|
||||
KEYWORDS=""
|
||||
|
||||
IUSE=""
|
||||
|
||||
DEPEND="
|
||||
app-shells/bash:=
|
||||
sys-apps/portage
|
||||
"
|
||||
RDEPEND="${DEPEND}
|
||||
app-portage/eix
|
||||
app-portage/portage-utils
|
||||
sys-apps/gawk
|
||||
|| ( app-text/agrep dev-libs/tre )
|
||||
"
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
dobin portconf
|
||||
insinto /etc
|
||||
newins portconf.conf portconf.conf
|
||||
}
|
||||
41
app-portage/showbuild/files/showbuild-0.9.1
Normal file
41
app-portage/showbuild/files/showbuild-0.9.1
Normal file
@@ -0,0 +1,41 @@
|
||||
#!/bin/bash
|
||||
|
||||
log="$(portageq envvar PORTAGE_TMPDIR)/portage/*/*/temp/build.log"
|
||||
cmd="${SB:-tail -f}"
|
||||
c=0
|
||||
|
||||
die() { echo -e "$*" >&2; exit 1; }
|
||||
|
||||
if [[ $1 = -h || $1 = --help ]]; then
|
||||
echo "Script to follow log of running portage builds"
|
||||
echo
|
||||
echo "Usage: ${0##*/} # see running builds"
|
||||
echo " ${0##*/} N # follow build #N"
|
||||
echo " ${0##*/} --fetch # follow emerge-fetch.log"
|
||||
echo " ${0##*/} --help # show this help"
|
||||
echo
|
||||
echo "Use environment variable SB to override the default cmd ($cmd)"
|
||||
elif [[ $1 = -f || $1 = --fetch ]]; then
|
||||
log="$(portageq envvar EMERGE_LOG_DIR)"
|
||||
log="${log:=$(portageq envvar EPREFIX)/var/log}/emerge-fetch.log"
|
||||
[[ -f $log ]] || die "Could open '$log'"
|
||||
exec $cmd $log
|
||||
elif [[ $(echo $log) = "$log" ]]; then
|
||||
echo "No running build found (try '${0##*/} --help')"
|
||||
elif [[ ! $1 ]]; then
|
||||
echo "Running builds - use '${0##*/} NUMBER' to select"
|
||||
for i in $log; do
|
||||
[[ $i =~ ^${log%%\**}([^/]*)/([^/]*)${log##*\*}$ ]] || continue
|
||||
echo -e "$((++c))\t${BASH_REMATCH[2]}\t(${BASH_REMATCH[1]})"
|
||||
done
|
||||
else
|
||||
[[ -z ${1//[0-9]} && $1 -gt 0 ]] || die "Argument should be a number greater 0"
|
||||
for i in $log; do
|
||||
[[ $i =~ ^${log%%\**}([^/]*)/([^/]*)${log##*\*}$ ]] || continue
|
||||
[[ $((++c)) -eq $((10#$1)) ]] || continue
|
||||
[[ -f ${i} ]] || die "Build number $1 was gone in the meanwhile"
|
||||
echo -ne "\033]0;Viewing: ${BASH_REMATCH[2]}\t(${BASH_REMATCH[1]})\007"
|
||||
exec $cmd $i
|
||||
done
|
||||
die "Build number $1 not found (there are only $((c--)) build(s) running)"
|
||||
fi
|
||||
15
app-portage/showbuild/metadata.xml
Normal file
15
app-portage/showbuild/metadata.xml
Normal file
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>lssndrbarbieri@gmail.com</email>
|
||||
<name>Alessandro Barbieri</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<maintainer>
|
||||
<email>ottxor@gentoo.org</email>
|
||||
<name>Christoph Junghans</name>
|
||||
</maintainer>
|
||||
<remote-id type="github">junghans/cj-overlay</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
27
app-portage/showbuild/showbuild-0.9.1-r1.ebuild
Normal file
27
app-portage/showbuild/showbuild-0.9.1-r1.ebuild
Normal file
@@ -0,0 +1,27 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="7"
|
||||
|
||||
DESCRIPTION="Script to follow log of running portage builds"
|
||||
HOMEPAGE="https://github.com/junghans/cj-overlay"
|
||||
SRC_URI=""
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~x86 ~x86-linux ~x64-macos ~x86-macos"
|
||||
|
||||
IUSE=""
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND="
|
||||
app-shells/bash
|
||||
sys-apps/coreutils
|
||||
sys-apps/portage
|
||||
"
|
||||
|
||||
S="${FILESDIR}"
|
||||
|
||||
src_install () {
|
||||
newbin "${P}" "${PN}"
|
||||
}
|
||||
1
app-shells/k/Manifest
Normal file
1
app-shells/k/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST k-0.0.5.tar.gz 7385 BLAKE2B 8cba27fef6538df7a65fd7fbe8234c0f284bf9db00c9ae554e5ea3982268bae7fab67626865fe0b5267dd199fea7d72f5c8548a7319eb7cc9d5aee6df4af7694 SHA512 a973abef9eb1f8fbe91528f20861eb880a2e804f08b88c0981e338a8399118f769cb7850de3d9ab8a1ec4e8a593dcb297af256696dd964dc28186f5c90cffbed
|
||||
31
app-shells/k/k-0.0.5.ebuild
Normal file
31
app-shells/k/k-0.0.5.ebuild
Normal file
@@ -0,0 +1,31 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="7"
|
||||
|
||||
DESCRIPTION="Directory listings for zsh with git features"
|
||||
HOMEPAGE="https://github.com/supercrabtree/k"
|
||||
SRC_URI="https://github.com/supercrabtree/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
DEPEND=""
|
||||
RDEPEND="
|
||||
>=app-shells/zsh-4.3.11
|
||||
>=dev-vcs/git-1.7.2
|
||||
"
|
||||
|
||||
DOCS=( readme.md )
|
||||
|
||||
src_install() {
|
||||
dodir "/usr/share/zsh/plugins"
|
||||
insinto "/usr/share/zsh/plugins/${PN}"
|
||||
doins "${PN}.sh"
|
||||
einstalldocs
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
einfo "To use this script, load it into your interactive ZSH session:"
|
||||
einfo "\tsource /usr/share/zsh/plugins/${PN}/${PN}.zsh"
|
||||
}
|
||||
13
app-shells/k/metadata.xml
Normal file
13
app-shells/k/metadata.xml
Normal file
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>lssndrbarbieri@gmail.com</email>
|
||||
<name>Alessandro Barbieri</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">supercrabtree/k</remote-id>
|
||||
</upstream>
|
||||
<longdescription lang="en">k is a zsh script / plugin to make directory listings more readable, adding a bit of color and some git status information on files and directories.
|
||||
</longdescription>
|
||||
</pkgmetadata>
|
||||
1
app-text/noweb/Manifest
Normal file
1
app-text/noweb/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST noweb-2.12.tar.gz 579230 BLAKE2B 2b4b252a79df6b030c2e09dff62c2dbb59d4cdfc6dac76eb9d387b355f940a7431bb69f7200bfe0a2269542430cc00720c4391d3dd15978fc39b36e81a9fb5fe SHA512 b4e45f288b6ae99d2457b69628bb5dfca16f7d1ce1bb06722ae598b5ff50a4ed2819313c5f5991cd3d1062c9d306c1308b0336916b6582dba7a405a343958c2a
|
||||
4
app-text/noweb/files/50noweb-gentoo.el
Normal file
4
app-text/noweb/files/50noweb-gentoo.el
Normal file
@@ -0,0 +1,4 @@
|
||||
(add-to-list 'load-path "@SITELISP@")
|
||||
(autoload 'noweb-mode "noweb-mode"
|
||||
"Minor meta mode for editing noweb files." t)
|
||||
(add-to-list 'auto-mode-alist '("\\.nw\\'" . noweb-mode))
|
||||
23
app-text/noweb/files/noweb-2.12-ldflags.patch
Normal file
23
app-text/noweb/files/noweb-2.12-ldflags.patch
Normal file
@@ -0,0 +1,23 @@
|
||||
--- a/src/c/Makefile
|
||||
+++ b/src/c/Makefile
|
||||
@@ -41,19 +41,16 @@
|
||||
all: nt markup mnt finduses nwmktemp
|
||||
|
||||
nt: $(TANGLEOBJS)
|
||||
- $(CC) $(CFLAGS) -o nt $(TANGLEOBJS)
|
||||
+ $(CC) $(CFLAGS) $(LDFLAGS) -o nt $(TANGLEOBJS)
|
||||
|
||||
nwmktemp: nwmktemp.o
|
||||
$(CC) $(CFLAGS) -o nwmktemp nwmktemp.o
|
||||
|
||||
finduses: $(FINDUSESOBJS)
|
||||
- $(CC) $(CFLAGS) -o finduses $(FINDUSESOBJS)
|
||||
|
||||
markup: $(MARKUPOBJS)
|
||||
- $(CC) $(CFLAGS) -o markup $(MARKUPOBJS)
|
||||
|
||||
mnt: $(MNTOBJS)
|
||||
- $(CC) $(CFLAGS) -o mnt $(MNTOBJS)
|
||||
|
||||
source: $(SRCS)
|
||||
touch: $(SRCS)
|
||||
142
app-text/noweb/files/noweb-2.12-recmake.patch
Normal file
142
app-text/noweb/files/noweb-2.12-recmake.patch
Normal file
@@ -0,0 +1,142 @@
|
||||
diff -ur a/contrib/norman/Makefile b/contrib/norman/Makefile
|
||||
--- a/contrib/norman/Makefile 2018-06-28 23:26:32.000000000 +0200
|
||||
+++ b/contrib/norman/Makefile 2020-02-25 05:26:26.256610626 +0100
|
||||
@@ -1,10 +1,10 @@
|
||||
LIB=/dev/null # to be overridden
|
||||
DIRS=numarkup
|
||||
|
||||
-all: ; for i in $(DIRS); do (cd $$i; make ICONC=$(ICONC) ICONT=$(ICONT) all); done
|
||||
-install: ; for i in $(DIRS); do (cd $$i; make LIB=$(LIB) BIN=$(BIN) install); done
|
||||
-source: ; for i in $(DIRS); do (cd $$i; make source); done
|
||||
-clean: ; for i in $(DIRS); do (cd $$i; make clean); done
|
||||
+all: ; for i in $(DIRS); do (cd $$i; $(MAKE) ICONC=$(ICONC) ICONT=$(ICONT) all); done
|
||||
+install: ; for i in $(DIRS); do (cd $$i; $(MAKE) LIB=$(LIB) BIN=$(BIN) install); done
|
||||
+source: ; for i in $(DIRS); do (cd $$i; $(MAKE) source); done
|
||||
+clean: ; for i in $(DIRS); do (cd $$i; $(MAKE) clean); done
|
||||
iconlib: # cheap hack for slackmake
|
||||
true
|
||||
|
||||
diff -ur a/contrib/norman/numarkup/Makefile b/contrib/norman/numarkup/Makefile
|
||||
--- a/contrib/norman/numarkup/Makefile 2018-06-28 23:26:32.000000000 +0200
|
||||
+++ b/contrib/norman/numarkup/Makefile 2020-02-25 05:32:02.290882144 +0100
|
||||
@@ -11,11 +11,11 @@
|
||||
|
||||
all:
|
||||
noweb -t numarkup.nw
|
||||
- make $(TARGET)
|
||||
+ $(MAKE) $(TARGET)
|
||||
|
||||
install:
|
||||
noweb -t numarkup.nw
|
||||
- make $(TARGET)
|
||||
+ $(MAKE) $(TARGET)
|
||||
strip $(TARGET)
|
||||
cp $(TARGET) $(LIB)
|
||||
|
||||
diff -ur a/Makefile b/Makefile
|
||||
--- a/Makefile 2018-06-28 23:26:32.000000000 +0200
|
||||
+++ b/Makefile 2020-02-25 05:24:54.607975694 +0100
|
||||
@@ -12,14 +12,14 @@
|
||||
all:
|
||||
@echo "You have no business running 'make' here; please look at the README file"
|
||||
@exit 1
|
||||
-source: ; for i in src; do (cd $$i; make source); done
|
||||
-www: ; for i in src/xdoc examples; do (cd $$i; make www); done
|
||||
+source: ; for i in src; do (cd $$i; $(MAKE) source); done
|
||||
+www: ; for i in src/xdoc examples; do (cd $$i; $(MAKE) www); done
|
||||
|
||||
clean:
|
||||
- for i in src examples contrib; do (cd $$i; make clean); done
|
||||
+ for i in src examples contrib; do (cd $$i; $(MAKE) clean); done
|
||||
rm -f nwsrcfilter *~ */*~
|
||||
clobber: clean
|
||||
- for i in src examples contrib; do (cd $$i; make clobber); done
|
||||
+ for i in src examples contrib; do (cd $$i; $(MAKE) clobber); done
|
||||
|
||||
DATE:
|
||||
(./echo -n "Version $(VERSION) of "; date) > DATE
|
||||
@@ -51,7 +51,7 @@
|
||||
|
||||
ctan: clean source nwsrcfilter DATE emacscheck
|
||||
chmod +w src/Makefile
|
||||
- (cd src; make boot)
|
||||
+ (cd src; $(MAKE) boot)
|
||||
rm -f ../noweb-$(VERSION)-ctan.zip
|
||||
find ./* ! -type d -not -name FAQ.old -not -name '.git*' -print | ./nwsrcfilter | sed 's@^@noweb/@' | ( ln -s . noweb; zip ../noweb-$(VERSION)-ctan.zip -@; rm -f noweb )
|
||||
chmod -w src/Makefile
|
||||
@@ -61,6 +61,6 @@
|
||||
diff src/elisp/noweb-mode.el $(HOME)/emacs/noweb-mode.el
|
||||
|
||||
checkin:
|
||||
- (cd src; make "CINAME=$(CINAME)" "CIMSG=$(CIMSG)" checkin)
|
||||
+ (cd src; $(MAKE) "CINAME=$(CINAME)" "CIMSG=$(CIMSG)" checkin)
|
||||
|
||||
|
||||
diff -ur a/src/Makefile b/src/Makefile
|
||||
--- a/src/Makefile 2020-02-25 05:22:55.103146835 +0100
|
||||
+++ b/src/Makefile 2020-02-25 05:29:26.557836177 +0100
|
||||
@@ -41,9 +41,9 @@
|
||||
TEXNAME=$(TEXINPUTS)
|
||||
|
||||
all:
|
||||
- cd c; make "CC=$(CC)" "$(CFLAGS)" all
|
||||
- for i in shell lib xdoc tex; do (cd $$i; make all); done
|
||||
- cd $(LIBSRC); make "ICONT=$(ICONT)" "ICONC=$(ICONC)" all
|
||||
+ cd c; $(MAKE) "CC=$(CC)" "CFLAGS=$(CFLAGS)" all
|
||||
+ for i in shell lib xdoc tex; do (cd $$i; $(MAKE) all); done
|
||||
+ cd $(LIBSRC); $(MAKE) "ICONT=$(ICONT)" "ICONC=$(ICONC)" all
|
||||
|
||||
FAQ: FAQ.html
|
||||
sleep 1; html2ascii FAQ.html > FAQ
|
||||
@@ -101,13 +101,13 @@
|
||||
mkdir -p $(BIN) $(LIB)
|
||||
true c/nt c/markup c/mnt c/finduses c/nwmktemp
|
||||
cp c/nt c/markup c/mnt c/finduses c/nwmktemp $(LIB)
|
||||
- cd $(LIBSRC); make ICONT=$(ICONT) ICONC=$(ICONC) LIB=$(LIB) BIN=$(BIN) install
|
||||
- cd lib; make LIB=$(LIB) install
|
||||
+ cd $(LIBSRC); $(MAKE) ICONT=$(ICONT) ICONC=$(ICONC) LIB=$(LIB) BIN=$(BIN) install
|
||||
+ cd lib; $(MAKE) LIB=$(LIB) install
|
||||
|
||||
uninstall-code: uninstall-shell
|
||||
rm -f $(LIB)/nt $(LIB)/markup $(LIB)/mnt $(LIB)/finduses
|
||||
- cd $(LIBSRC); make ICONT=$(ICONT) ICONC=$(ICONC) LIB=$(LIB) BIN=$(BIN) uninstall
|
||||
- cd lib; make LIB=$(LIB) uninstall
|
||||
+ cd $(LIBSRC); $(MAKE) ICONT=$(ICONT) ICONC=$(ICONC) LIB=$(LIB) BIN=$(BIN) uninstall
|
||||
+ cd lib; $(MAKE) LIB=$(LIB) uninstall
|
||||
install-man:
|
||||
mkdir -p $(MAN) $(MANDIR) $(MAN7DIR)
|
||||
sed -e "s@|LIBDIR|@$(LIBNAME)@" -e "s@|TEXINPUTS|@$(TEXNAME)@" xdoc/cpif.1 > $(MANDIR)/cpif.$(MANEXT)
|
||||
@@ -194,26 +194,26 @@
|
||||
uninstall-elisp:
|
||||
rm -f $(ELISP)/noweb-mode.el || true
|
||||
checkin:
|
||||
- for i in lib tex xdoc; do (cd $$i; make "CINAME=$(CINAME)" "CIMSG=$(CIMSG)" checkin); done
|
||||
+ for i in lib tex xdoc; do (cd $$i; $(MAKE) "CINAME=$(CINAME)" "CIMSG=$(CIMSG)" checkin); done
|
||||
for i in c icon awk; do (cd $$i; ci -l $(CINAME) $(CIMSG) *.nw Makefile); done
|
||||
(cd elisp; ci -l $(CINAME) $(CIMSG) *.el)
|
||||
ci -l $(CINAME) $(CIMSG) Makefile.nw INSTALL INSTALL.DOS README FAQ COPYRIGHT nwmake *.nw
|
||||
|
||||
source: FAQ
|
||||
- for i in c shell lib xdoc icon awk tex; do (cd $$i; make CPIF=">" source); done
|
||||
+ for i in c shell lib xdoc icon awk tex; do (cd $$i; $(MAKE) CPIF=">" source); done
|
||||
sleep 1
|
||||
- for i in c shell lib xdoc icon awk tex; do (cd $$i; make touch); done
|
||||
+ for i in c shell lib xdoc icon awk tex; do (cd $$i; $(MAKE) touch); done
|
||||
touch:
|
||||
touch FAQ
|
||||
- for i in c shell lib xdoc icon awk tex; do (cd $$i; make touch); done
|
||||
+ for i in c shell lib xdoc icon awk tex; do (cd $$i; $(MAKE) touch); done
|
||||
boot:
|
||||
- for i in c shell lib xdoc icon awk tex; do (cd $$i; make boot); done
|
||||
+ for i in c shell lib xdoc icon awk tex; do (cd $$i; $(MAKE) boot); done
|
||||
clean:
|
||||
- for i in c shell lib xdoc icon awk tex; do (cd $$i; make clean); done
|
||||
+ for i in c shell lib xdoc icon awk tex; do (cd $$i; $(MAKE) clean); done
|
||||
rm -f nwsrcfilter *~ */*~
|
||||
|
||||
clobber: clean
|
||||
- for i in c shell lib xdoc icon awk tex; do (cd $$i; make clobber); done
|
||||
+ for i in c shell lib xdoc icon awk tex; do (cd $$i; $(MAKE) clobber); done
|
||||
|
||||
Makefile: Makefile.nw
|
||||
chmod +w Makefile
|
||||
17
app-text/noweb/metadata.xml
Normal file
17
app-text/noweb/metadata.xml
Normal file
@@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>lssndrbarbieri@gmail.com</email>
|
||||
<name>Alessandro Barbieri</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<maintainer>
|
||||
<email>nr@cs.tufts.edu</email>
|
||||
<name>Norman Ramsey</name>
|
||||
</maintainer>
|
||||
<remote-id type="github">nrnrnr/noweb</remote-id>
|
||||
</upstream>
|
||||
<longdescription lang="en">noweb is designed to meet the needs of literate programmers while remaining as simple as possible. Its primary advantages are simplicity, extensibility, and language-independence—especially noticeable when compared with other literate-programming tools. noweb uses 5 control sequences to WEB's 27. The noweb manual is only 4 pages; an additional page explains how to customize its LaTeX output. noweb works ``out of the box'' with any programming language, and supports TeX, latex, HTML, and troff back ends. A back end to support full hypertext or indexing takes about 250 lines; a simpler one can be written in 40 lines of awk. The primary sacrifice relative to WEB is that code is seldom prettyprinted.
|
||||
</longdescription>
|
||||
</pkgmetadata>
|
||||
136
app-text/noweb/noweb-2.12.ebuild
Normal file
136
app-text/noweb/noweb-2.12.ebuild
Normal file
@@ -0,0 +1,136 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="7"
|
||||
|
||||
inherit eutils toolchain-funcs elisp-common
|
||||
|
||||
MYPV="$(ver_rs 1 _)"
|
||||
|
||||
DESCRIPTION="a literate programming tool, lighter than web"
|
||||
HOMEPAGE="https://www.cs.tufts.edu/~nr/noweb/"
|
||||
SRC_URI="https://github.com/nrnrnr/${PN}/archive/v${MYPV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="
|
||||
|| ( BSD-2 noweb )
|
||||
emacs? ( GPL-2 )
|
||||
"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~ppc-macos ~x64-macos ~x86-macos"
|
||||
IUSE="emacs examples"
|
||||
|
||||
DEPEND="
|
||||
dev-lang/icon
|
||||
sys-apps/debianutils
|
||||
virtual/tex-base
|
||||
|
||||
emacs? ( app-editors/emacs:= )
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
S="${WORKDIR}/${PN}-${MYPV}"
|
||||
|
||||
SITEFILE="50${PN}-gentoo.el"
|
||||
|
||||
src_prepare() {
|
||||
# glibc2.10 compat (bug 270757)
|
||||
# mkdir d && cp -r c/* d/
|
||||
sed "s/getline (/getline_nonlibc (/" -i src/c/getline.{c,h} || die
|
||||
sed "s/getline(/getline_nonlibc(/" -i src/c/{notangle.c,getline.c,finduses.c} || die
|
||||
# diff -u d/ c/
|
||||
|
||||
# dont run texhash...
|
||||
sed -i -e "s/texhash/true/" src/Makefile || die
|
||||
# dont strip...
|
||||
sed -i -e "s/strip/true/" src/Makefile || die
|
||||
|
||||
sed -i -e "s/CC=gcc -ansi -pedantic -O -Wall -Werror//" src/Makefile || die
|
||||
sed -i -e "s/CFLAGS=//" src/Makefile || die
|
||||
sed -i -e "s/CC=gcc -ansi -pedantic -O -Wall -Werror//" src/c/Makefile || die
|
||||
sed -i -e "s/CFLAGS=//" src/c/Makefile || die
|
||||
|
||||
eapply "${FILESDIR}/${P}-recmake.patch"
|
||||
|
||||
sed -i -e "s/CC = cc//" contrib/norman/numarkup/Makefile || die
|
||||
sed -i -e "s/CFLAGS = -O//" contrib/norman/numarkup/Makefile || die
|
||||
|
||||
eapply "${FILESDIR}/${P}-ldflags.patch"
|
||||
eapply_user
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# noweb tries to use notangle and noweb; see bug #50429
|
||||
cd "${S}/src/c"
|
||||
|
||||
emake ICONC="icont" \
|
||||
CC="$(tc-getCC)" \
|
||||
CFLAGS="${CFLAGS}" \
|
||||
LIBSRC="icon" || die
|
||||
|
||||
export PATH="${PATH}:${T}"
|
||||
cd "${S}/src"
|
||||
|
||||
emake ICONC="icont" \
|
||||
CC="$(tc-getCC)" \
|
||||
BIN="${T}" \
|
||||
LIB="${T}" \
|
||||
LIBSRC="icon" \
|
||||
install-code || die "make temporal install failed."
|
||||
|
||||
emake ICONC="icont" \
|
||||
CC="$(tc-getCC)" \
|
||||
CFLAGS="${CFLAGS}" \
|
||||
LIBSRC="icon" || die "make failed"
|
||||
|
||||
# Set awk to awk not nawk
|
||||
./awkname awk
|
||||
|
||||
if use emacs; then
|
||||
elisp-compile elisp/noweb-mode.el || die "elisp-compile failed"
|
||||
fi
|
||||
}
|
||||
|
||||
src_install () {
|
||||
cd "${S}/src"
|
||||
|
||||
# It needs the directories to exist first...
|
||||
dodir /usr/bin
|
||||
dodir "/usr/libexec/${PN}"
|
||||
dodir /usr/share/man
|
||||
dodir /usr/share/texmf-site/tex/inputs
|
||||
|
||||
emake ICONC="icont" \
|
||||
BIN="${ED}/usr/bin" \
|
||||
LIBSRC="icon" \
|
||||
LIBNAME="${EPREFIX}/usr/libexec/${PN}" \
|
||||
LIB="${ED}/usr/libexec/${PN}" \
|
||||
MAN="${ED}/usr/share/man" \
|
||||
TEXNAME="${EPREFIX}/usr/share/texmf-site/tex/inputs" \
|
||||
TEXINPUTS="${ED}/usr/share/texmf-site/tex/inputs" \
|
||||
install || die "make install failed"
|
||||
|
||||
cd "${S}"
|
||||
|
||||
if use examples; then
|
||||
insinto "/usr/share/doc/${PF}/examples"
|
||||
doins -r examples/.
|
||||
fi
|
||||
|
||||
if use emacs; then
|
||||
elisp-install "${PN}" "${S}"/src/elisp/noweb-mode.{el,elc} \
|
||||
|| die "elisp-install failed"
|
||||
elisp-site-file-install "${FILESDIR}/${SITEFILE}" \
|
||||
|| die "elisp-site-file-install failed"
|
||||
fi
|
||||
einstalldocs
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
use emacs && elisp-site-regen
|
||||
einfo "Running texhash to complete installation.."
|
||||
texhash
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
use emacs && elisp-site-regen
|
||||
}
|
||||
3
dev-lang/aldor/Manifest
Normal file
3
dev-lang/aldor/Manifest
Normal file
@@ -0,0 +1,3 @@
|
||||
DIST aldor-1.2.0_p20190730.tar.gz 3037647 BLAKE2B 579350d9b6407506a396f42dd2408693dced58f1786cbf7b81b9ddc1b9b986f7f471b3d961c22ccbe9b7566a240de5a9af11f5cfdae1e69d25adb0fb0d1f7090 SHA512 39b1b6f9cd2e09de691c179dcce26e1d43205099f7fa9a9cd1a1ac5340fc85a616eab5887d310b5f9991e7296cfdfdf55b38cadabb7ceb7b6b135a09a5ee53d5
|
||||
DIST aldor.el.nw 50217 BLAKE2B 12c822b608d995832028cc6c67126c71f05e50d941c0b22fd82fd95a1f968e64150f721982ff8e42f897811c17d2ee0b3135f5c9f57701f99bdce1f8be3fb82c SHA512 6a01873530269ff21afd494a00a8159e48e6199e9aff38259156b8ee8ce21256394629225d857d7d087fd02d1bed3d0de76812656f294f9eb322bed594f4d65e
|
||||
DIST libaldor.pdf.gz 434487 BLAKE2B 629dbf284db72afb98a8bc1a44df63dc0a3394fdd4361ec48a0d4811f8e931384fc257ad8f3931b7966aee25b0a015062ef8c8ab4e0ebf5978b5deda58c00ab6 SHA512 9ed1f067dd4ee11e5a440f31a9a29eb9248fcfb4349005f42c230a97190853d17e423ce677894a478644ca4964d0ba857465adfe405092c1e6512ced452eedc3
|
||||
128
dev-lang/aldor/aldor-1.2.0_p20190730.ebuild
Normal file
128
dev-lang/aldor/aldor-1.2.0_p20190730.ebuild
Normal file
@@ -0,0 +1,128 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="7"
|
||||
|
||||
COMMIT="13e5b90eecc79ec6704efb333c4c100187520e80"
|
||||
|
||||
#TODO: figure out if a java eclass is needed
|
||||
inherit autotools elisp-common
|
||||
|
||||
DESCRIPTION="The Aldor Programming Language"
|
||||
HOMEPAGE="http://pippijn.github.io/aldor"
|
||||
SRC_URI="
|
||||
https://github.com/pippijn/aldor/archive/${COMMIT}.tar.gz -> ${P}.tar.gz
|
||||
doc? ( http://aldor.org/docs/libaldor.pdf.gz )
|
||||
emacs? ( http://hemmecke.de/aldor/aldor.el.nw )
|
||||
"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
#force boehm-gc for now, without it won't build ...
|
||||
IUSE="+boehm-gc doc emacs java"
|
||||
|
||||
PATCHES=( "${FILESDIR}/respect-flags.diff" )
|
||||
|
||||
#is junit dep. only for test?
|
||||
#TODO: choose a slot for junit
|
||||
CDEPEND="
|
||||
boehm-gc? ( dev-libs/boehm-gc )
|
||||
emacs? ( app-editors/emacs:= )
|
||||
java? ( dev-java/junit )
|
||||
"
|
||||
RDEPEND="
|
||||
${CDEPEND}
|
||||
java? ( virtual/jre:1.8 )
|
||||
"
|
||||
DEPEND="
|
||||
${CDEPEND}
|
||||
java? ( virtual/jdk:1.8 )
|
||||
"
|
||||
BDEPEND="
|
||||
virtual/yacc
|
||||
|
||||
doc? ( virtual/latex-base )
|
||||
emacs? ( app-text/noweb )
|
||||
"
|
||||
|
||||
S="${WORKDIR}/${PN}-${COMMIT}/aldor"
|
||||
|
||||
DOCS=( AUTHORS README.building README.binary-only README.library ../README.md )
|
||||
|
||||
src_unpack() {
|
||||
unpack "${P}.tar.gz"
|
||||
if use doc ; then
|
||||
cp "${DISTDIR}/libaldor.pdf.gz" "${S}"
|
||||
gunzip "${S}/libaldor.pdf.gz"
|
||||
fi
|
||||
use emacs && cp "${DISTDIR}/aldor.el.nw" "${S}"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
use boehm-gc && sed -i 's|-L /usr/X11/lib|-L /usr/X11/lib -lgc|' aldor/src/aldor.conf || die
|
||||
|
||||
default
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf=(
|
||||
--disable-static
|
||||
--enable-libraries
|
||||
--enable-shared
|
||||
$(use_enable java)
|
||||
$(use_with java java-junit)
|
||||
$(use_with boehm-gc)
|
||||
)
|
||||
econf "${myconf[@]}"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
if use doc ; then
|
||||
( cd "${S}/aldorug"; emake aldorug.pdf ) || die "make aldorug.pdf failed"
|
||||
( cd "${S}/lib/aldor/tutorial"
|
||||
pdflatex tutorial.tex
|
||||
pdflatex tutorial.tex ) || die "make tutorial.pdf failed"
|
||||
fi
|
||||
cd "${S}"
|
||||
if use emacs ; then
|
||||
notangle "aldor.el.nw" > aldor.el
|
||||
notangle -Rinit.el "aldor.el.nw" | sed -e '1s/^.*$/;; aldor mode/' > 64aldor-gentoo.el
|
||||
if use doc ; then
|
||||
einfo "Documentation for the aldor emacs mode"
|
||||
noweave "aldor.el.nw" > aldor-mode.tex
|
||||
pdflatex aldor-mode.tex
|
||||
pdflatex aldor-mode.tex || die "make aldor-mode.pdf failed"
|
||||
fi
|
||||
fi
|
||||
cd "${S}"
|
||||
default
|
||||
}
|
||||
|
||||
src_install() {
|
||||
use doc && DOCS+=( aldorug/aldorug.pdf lib/aldor/tutorial/tutorial.pdf libaldor.pdf )
|
||||
|
||||
if use emacs ; then
|
||||
use doc && DOCS+=( aldor-mode.pdf )
|
||||
#TODO: rename aldor.el
|
||||
elisp-site-file-install aldor.el
|
||||
elisp-site-file-install 64aldor-gentoo.el
|
||||
fi
|
||||
default
|
||||
|
||||
# Add information about ALDORROOT to environmental variables
|
||||
cat > 99aldor <<- EOF
|
||||
ALDORROOT="${EPREFIX}/usr"
|
||||
EOF
|
||||
doenvd 99aldor
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
use emacs && elisp-site-regen
|
||||
}
|
||||
|
||||
pkg_prerm() {
|
||||
[ -f "${SITELISP}/site-gentoo.el" ] && elisp-site-regen
|
||||
}
|
||||
47
dev-lang/aldor/files/respect-flags.diff
Normal file
47
dev-lang/aldor/files/respect-flags.diff
Normal file
@@ -0,0 +1,47 @@
|
||||
diff -ur a/aldor/src/Makefile.am b/aldor/src/Makefile.am
|
||||
--- a/aldor/src/Makefile.am 2019-07-30 01:13:14.000000000 +0200
|
||||
+++ b/aldor/src/Makefile.am 2020-03-04 21:14:57.582054633 +0100
|
||||
@@ -40,12 +40,12 @@
|
||||
|
||||
javagen_LDADD = libphase.a libstruct.a libgen.a libport.a -lm
|
||||
javagen_LDFLAGS =
|
||||
-javagen_CFLAGS = -g $(STRICTCFLAGS)
|
||||
+javagen_CFLAGS = $(STRICTCFLAGS)
|
||||
|
||||
showexp_SOURCES = showexports.c
|
||||
showexp_LDADD = libphase.a libstruct.a libgen.a libport.a -lm
|
||||
showexp_LDFLAGS =
|
||||
-showexp_CFLAGS = -g $(STRICTCFLAGS)
|
||||
+showexp_CFLAGS = $(STRICTCFLAGS)
|
||||
|
||||
aldor_SOURCES = \
|
||||
axlcomp.c \
|
||||
@@ -53,7 +53,7 @@
|
||||
main.c
|
||||
aldor_LDADD = libphase.a libstruct.a libgen.a libport.a -lm
|
||||
aldor_LDFLAGS = $(build_id)
|
||||
-aldor_CFLAGS = -g $(STRICTCFLAGS)
|
||||
+aldor_CFLAGS = $(STRICTCFLAGS)
|
||||
|
||||
#aldortest_CFLAGS = -DTEST_STAND_ALONE -DTEST_ALL -save-temps $(STRICTCFLAGS)
|
||||
aldortest_CFLAGS = -DTEST_STAND_ALONE -DTEST_ALL -save-temps $(STRICTCFLAGS)
|
||||
@@ -316,7 +316,6 @@
|
||||
testall_LDFLAGS =
|
||||
testall_CFLAGS = -save-temps $(STRICTCFLAGS)
|
||||
|
||||
-CFLAGS=-O0 -g
|
||||
|
||||
#
|
||||
# Special rules
|
||||
diff -ur a/m4/strict_compile.m4 b/m4/strict_compile.m4
|
||||
--- a/m4/strict_compile.m4 2019-07-30 01:13:14.000000000 +0200
|
||||
+++ b/m4/strict_compile.m4 2020-03-04 21:17:33.394968306 +0100
|
||||
@@ -12,7 +12,7 @@
|
||||
ALDOR_CC_OPTION(-Wno-sign-compare,cfg_no_sign_compare)
|
||||
AC_MSG_CHECKING(Strict options for C compiler)
|
||||
|
||||
- cfgSTRICTCFLAGS="-pedantic -std=c99 -Wall -Wextra -Werror -Wno-empty-body -Wno-enum-compare \
|
||||
+ cfgSTRICTCFLAGS="-pedantic -std=c99 -Wall -Wextra -Wno-empty-body -Wno-enum-compare \
|
||||
-Wno-missing-field-initializers -Wno-unused -Wno-unused-parameter \
|
||||
-Wno-error=format -Wno-error=type-limits -Wno-error=strict-aliasing \
|
||||
$cfg_no_sign_compare $cfg_no_shift_negative_value"
|
||||
17
dev-lang/aldor/metadata.xml
Normal file
17
dev-lang/aldor/metadata.xml
Normal file
@@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<longdescription>Aldor is a programming language. It is the successor of A# as the extension language of the Axiom computer algebra system.
|
||||
|
||||
The Aldor language combines imperative, functional, and object-oriented features. It has an elaborate dependent type system, allowing types to be used as first-class values. Aldor's syntax is heavily influenced by Pascal, but it is optionally indentation-sensitive, like Python. In its current implementation, it is compiled, but an interactive listener is provided.</longdescription>
|
||||
<maintainer type="person">
|
||||
<email>lssndrbarbieri@gmail.com</email>
|
||||
<name>Alessandro Barbieri</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">pippijn/aldor</remote-id>
|
||||
</upstream>
|
||||
<use>
|
||||
<flag name="boehm-gc">Use Boehm Garbage Collector instead of built-in</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
||||
1
dev-python/atomiclong/Manifest
Normal file
1
dev-python/atomiclong/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST atomiclong-0.1.1.tar.gz 5057 BLAKE2B 2583674eafd2e89c91629db69e6c118d22ae169df4131e3d63a584ed9857df47bb85c0764cd60b7df35eb8db5b4aedfe043bfcfb960909e2abcb97a27ba7567d SHA512 c275cff805df2275b6d9cfabed072c296019f1e7f6e2d718e0cec60ca40a99c6e8043a17a82f752096a1764cbc63e5681739da921ce1c89dfa8e5a6349e1772a
|
||||
20
dev-python/atomiclong/atomiclong-0.1.1.ebuild
Normal file
20
dev-python/atomiclong/atomiclong-0.1.1.ebuild
Normal file
@@ -0,0 +1,20 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="7"
|
||||
|
||||
PYTHON_COMPAT=( python3_{6,7} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
DESCRIPTION="An AtomicLong type using CFFI."
|
||||
HOMEPAGE="https://github.com/dreid/atomiclong"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
RDEPEND="virtual/python-cffi[${PYTHON_USEDEP}]"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
23
dev-python/atomiclong/atomiclong-9999.ebuild
Normal file
23
dev-python/atomiclong/atomiclong-9999.ebuild
Normal file
@@ -0,0 +1,23 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="7"
|
||||
|
||||
PYTHON_COMPAT=( python3_{6,7} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
SRC_URI=""
|
||||
EGIT_REPO_URI="https://github.com/dreid/${PN}.git"
|
||||
inherit git-r3
|
||||
|
||||
DESCRIPTION="An AtomicLong type using CFFI."
|
||||
HOMEPAGE="https://github.com/dreid/atomiclong"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS=""
|
||||
|
||||
RDEPEND="virtual/python-cffi[${PYTHON_USEDEP}]"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
21
dev-python/atomiclong/metadata.xml
Normal file
21
dev-python/atomiclong/metadata.xml
Normal file
@@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>lssndrbarbieri@gmail.com</email>
|
||||
<name>Alessandro Barbieri</name>
|
||||
</maintainer>
|
||||
<maintainer type="project">
|
||||
<email>proxy-maint@gentoo.org</email>
|
||||
<name>Proxy Maintainers</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">dreid/atomiclong</remote-id>
|
||||
</upstream>
|
||||
<longdescription lang="en">
|
||||
Sometimes you need to increment some numbers ... atomically ... in python.
|
||||
AtomicLong was born out of the need for fast thread-safe counters in python.
|
||||
It uses CFFI to bind GCC's Atomic Builtins.
|
||||
Its value is a C long which can be incremented, decremented, and set atomically. It is inspired by Java's java.util.concurrent.atomic.AtomicLong.
|
||||
</longdescription>
|
||||
</pkgmetadata>
|
||||
1
dev-python/curio/Manifest
Normal file
1
dev-python/curio/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST curio-0.9.tar.gz 482459 BLAKE2B 7ef65d22806eb10ee3e757dc0d63a202c13036cdb1995962e193332c50dd73585ab27449614de5995f874c03d8623ea27f967101aa99b15166d19a48f4cdaaea SHA512 a6ae4db76358536e6e299ecfa923fd63746cba4bc5374fbfdeb4127032552c960d1e199fdf17d95b039ca2bd000325c637f663007cd6850313bc00bc9a2a3d68
|
||||
36
dev-python/curio/curio-0.9.ebuild
Normal file
36
dev-python/curio/curio-0.9.ebuild
Normal file
@@ -0,0 +1,36 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{6,7,8} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Concurrent I/O"
|
||||
HOMEPAGE="https://github.com/dabeaz/curio"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
IUSE="examples"
|
||||
|
||||
LICENSE="BSD"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
SLOT="0"
|
||||
|
||||
DEPEND="test? ( dev-python/sphinx[${PYTHON_USEDEP}] )"
|
||||
|
||||
distutils_enable_sphinx docs --no-autodoc
|
||||
distutils_enable_tests pytest
|
||||
|
||||
python_prepare_all() {
|
||||
# Contains hard coded path, fails in emerge
|
||||
rm -r tests/__pycache__ || die
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use examples && dodoc -r examples
|
||||
|
||||
distutils-r1_python_install_all
|
||||
}
|
||||
9
dev-python/curio/metadata.xml
Normal file
9
dev-python/curio/metadata.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>andrewammerlaan@riseup.net</email>
|
||||
<name>Andrew Ammerlaan</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
||||
29
dev-python/glicko2/glicko2-9999.ebuild
Normal file
29
dev-python/glicko2/glicko2-9999.ebuild
Normal file
@@ -0,0 +1,29 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="7"
|
||||
PYTHON_COMPAT=( python3_{6,7} pypy3)
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
case "${PV}" in
|
||||
9999)
|
||||
SRC_URI=""
|
||||
EGIT_REPO_URI="https://github.com/sublee/glicko2.git"
|
||||
inherit git-r3
|
||||
;;
|
||||
esac
|
||||
|
||||
DESCRIPTION="An implementation of the Glicko-2 rating system for Python"
|
||||
HOMEPAGE="https://github.com/sublee/glicko2"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS=""
|
||||
|
||||
distutils_enable_tests setup.py
|
||||
|
||||
src_prepare() {
|
||||
sed -i -e "s/distribute/setuptools/g" setup.py
|
||||
eapply_user
|
||||
}
|
||||
11
dev-python/glicko2/metadata.xml
Normal file
11
dev-python/glicko2/metadata.xml
Normal file
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>lssndrbarbieri@gmail.com</email>
|
||||
<name>Alessandro Barbieri</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">sublee/glicko2</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
1
dev-python/hstspreload/Manifest
Normal file
1
dev-python/hstspreload/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST hstspreload-2020.2.1.tar.gz 730524 BLAKE2B bee05ddb8a62bd1e33d634a4e31ac3d4f0905817cd3037bd85856427135e7f2f81bb70ff15d26927036cf1bef3c825d7e4f3045a9dff0ec2e972e747f447f275 SHA512 1c7cec839970b54dde75d8b66957d3275f716ac378cd67db396b26687d93ee163e94c1aad3c7ff66f610ba3f00ff3aba89153f5ddb53d099c947e6b4eefa9996
|
||||
16
dev-python/hstspreload/hstspreload-2020.2.1.ebuild
Normal file
16
dev-python/hstspreload/hstspreload-2020.2.1.ebuild
Normal file
@@ -0,0 +1,16 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{6,7,8} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Chromium HSTS Preload list as a Python package"
|
||||
HOMEPAGE="https://github.com/sethmlarson/hstspreload"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
SLOT="0"
|
||||
9
dev-python/hstspreload/metadata.xml
Normal file
9
dev-python/hstspreload/metadata.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>andrewammerlaan@riseup.net</email>
|
||||
<name>Andrew Ammerlaan</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
||||
1
dev-python/httpx/Manifest
Normal file
1
dev-python/httpx/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST httpx-0.11.1.tar.gz 65974 BLAKE2B fabf6f8e9b48ad3ccc79c72c42ad007819a065d74c8c0d7225550cc2e223626b896b57378ad989c7f04b17e70d1941873addcec2507afefde0801f4eaa6d3f43 SHA512 0203d348739b450fec1f386778136f8591d0177f58eff68d3887348f1e379bfd7da98b87a80b195d023ce17e1442989a52765704be18088166593211a23b84ad
|
||||
27
dev-python/httpx/httpx-0.11.1.ebuild
Normal file
27
dev-python/httpx/httpx-0.11.1.ebuild
Normal file
@@ -0,0 +1,27 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{6,7} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="A next generation HTTP client for Python"
|
||||
HOMEPAGE="https://www.python-httpx.org
|
||||
https://github.com/encode/httpx"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
SLOT="0"
|
||||
|
||||
RDEPEND="dev-python/certifi[${PYTHON_USEDEP}]
|
||||
dev-python/chardet[${PYTHON_USEDEP}]
|
||||
dev-python/hstspreload[${PYTHON_USEDEP}]
|
||||
dev-python/hyper-h2[${PYTHON_USEDEP}]
|
||||
dev-python/h11[${PYTHON_USEDEP}]
|
||||
dev-python/idna[${PYTHON_USEDEP}]
|
||||
dev-python/rfc3986[${PYTHON_USEDEP}]
|
||||
dev-python/sniffio[${PYTHON_USEDEP}]
|
||||
dev-python/urllib3[${PYTHON_USEDEP}]"
|
||||
9
dev-python/httpx/metadata.xml
Normal file
9
dev-python/httpx/metadata.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>andrewammerlaan@riseup.net</email>
|
||||
<name>Andrew Ammerlaan</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
||||
1
dev-python/lyricwikia/Manifest
Normal file
1
dev-python/lyricwikia/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST lyricwikia-0.1.11.tar.gz 5571 BLAKE2B 1e2fb5400b4c0ed07d419e577e3c12c6b8eca749ce1a5b7dea51d6d055979722b82d003eac20402da873d3011d1b444c0783935adbc01ec99dd6079b234e6bc7 SHA512 53ff9a2837ccc10be62c2a92240e9849a9c88b7979f8058deff87ce6eda6e98e39fb86c78052de9a885db679cd87a6c5749af2f9502d3316fbbf2c0796718805
|
||||
@@ -0,0 +1,14 @@
|
||||
diff --git a/tests/test_get_lyrics.py b/tests/test_get_lyrics.py
|
||||
index 5b1bb74..634ca55 100644
|
||||
--- a/tests/test_get_lyrics.py
|
||||
+++ b/tests/test_get_lyrics.py
|
||||
@@ -26,6 +26,6 @@ def test_returnLyricsNotFound():
|
||||
assert len(responses.calls) == 1
|
||||
|
||||
|
||||
-def test_integration():
|
||||
- lyrics = get_lyrics('Led Zeppelin', 'Stairway to Heaven')
|
||||
- assert 'lady' in lyrics.lower()
|
||||
+# def test_integration():
|
||||
+# lyrics = get_lyrics('Led Zeppelin', 'Stairway to Heaven')
|
||||
+# assert 'lady' in lyrics.lower()
|
||||
28
dev-python/lyricwikia/lyricwikia-0.1.11.ebuild
Normal file
28
dev-python/lyricwikia/lyricwikia-0.1.11.ebuild
Normal file
@@ -0,0 +1,28 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{6,7,8} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Python API to get song lyrics from LyricWikia"
|
||||
HOMEPAGE="https://github.com/enricobacis/lyricwikia"
|
||||
SRC_URI="https://github.com/enricobacis/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
DEPEND="dev-python/pytest-runner[${PYTHON_USEDEP}]
|
||||
test? ( dev-python/responses[${PYTHON_USEDEP}] )"
|
||||
|
||||
RDEPEND="
|
||||
dev-python/beautifulsoup[${PYTHON_USEDEP}]
|
||||
dev-python/six[${PYTHON_USEDEP}]
|
||||
dev-python/requests[${PYTHON_USEDEP}]"
|
||||
|
||||
PATCHES="${FILESDIR}/${P}-skip-online-test.patch"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
9
dev-python/lyricwikia/metadata.xml
Normal file
9
dev-python/lyricwikia/metadata.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>andrewammerlaan@riseup.net</email>
|
||||
<name>Andrew Ammerlaan</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
||||
1
dev-python/pydbus/Manifest
Normal file
1
dev-python/pydbus/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST pydbus-0.6.0.tar.gz 2083046 BLAKE2B 65b50b272b004b30411ff396a9c50d8602485f281100467e2c75ed300cdb0a83532a354a62ef1a8e7ee38a41af243ea7de7a5e80232cfc7c79540e8ed71741c6 SHA512 65ac490dd44ad0aba0b3ea5c58cf6a99bd9de0ce86c6f03b9696335fb2d3f63df0e2e23a022d31d0185f7b8307bcc0f6e230efecc31199fc177f9a8a25929ad7
|
||||
9
dev-python/pydbus/metadata.xml
Normal file
9
dev-python/pydbus/metadata.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>andrewammerlaan@riseup.net</email>
|
||||
<name>Andrew Ammerlaan</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
||||
33
dev-python/pydbus/pydbus-0.6.0.ebuild
Normal file
33
dev-python/pydbus/pydbus-0.6.0.ebuild
Normal file
@@ -0,0 +1,33 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{6,7,8} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Pythonic DBus library"
|
||||
HOMEPAGE="https://github.com/LEW21/pydbus"
|
||||
SRC_URI="https://github.com/LEW21/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-2+"
|
||||
KEYWORDS="~amd64 ~x86 "
|
||||
SLOT="0"
|
||||
|
||||
IUSE="doc examples"
|
||||
|
||||
RDEPEND="
|
||||
dev-python/pygobject:3[${PYTHON_USEDEP}]
|
||||
sys-apps/dbus"
|
||||
|
||||
python_install_all() {
|
||||
use doc && dodoc -r doc/*
|
||||
use examples && dodoc -r examples
|
||||
|
||||
distutils-r1_python_install_all
|
||||
}
|
||||
|
||||
python_test() {
|
||||
sh tests/run.sh "${PYTHON}" || die
|
||||
}
|
||||
1
dev-python/pytest-subtests/Manifest
Normal file
1
dev-python/pytest-subtests/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST pytest-subtests-0.3.0.tar.gz 9399 BLAKE2B cf940ea94926d271f2959924522e273d433510396e1a1fc73cfa445f08616c35cf48fb599953e918e0e2d9a5ac1c2d9e9e8d3e41faa112818b3685d328ba44c7 SHA512 49ebf151c95e1d2c89af78d8b1abfa06d5db9bf1e297f09a49a802b1b42d064ad38a2aa619aa254d23b475c7548c62b753d999f4e38eb5e1651ae067ca9cd525
|
||||
9
dev-python/pytest-subtests/metadata.xml
Normal file
9
dev-python/pytest-subtests/metadata.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>andrewammerlaan@riseup.net</email>
|
||||
<name>Andrew Ammerlaan</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
||||
22
dev-python/pytest-subtests/pytest-subtests-0.3.0.ebuild
Normal file
22
dev-python/pytest-subtests/pytest-subtests-0.3.0.ebuild
Normal file
@@ -0,0 +1,22 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{6,7,8} )
|
||||
|
||||
DISTUTILS_USE_SETUPTOOLS=rdepend
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="unittest subTest() support and subtests fixture"
|
||||
HOMEPAGE="https://github.com/pytest-dev/pytest-subtests"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
SLOT="0"
|
||||
|
||||
RDEPEND="dev-python/pytest[${PYTHON_USEDEP}]"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
1
dev-python/python-mpv/Manifest
Normal file
1
dev-python/python-mpv/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST python-mpv-0.4.5.tar.gz 199207 BLAKE2B 4a7bc9662de05dda03ef673bcb63c72626f331e5d3a480eac5dc0b428d76d4bff389b372463612b9f76af748ce39085d0aab12aafbbb7df63d14d03712724046 SHA512 c502e60ffedea18d91e268033da6e4f988a7f48bf677ac3c5c63f849d43360b8e6daccf1b7032c2e61bf4b9a3f08f8dc0fb4904c39499be70d7500d3b4227539
|
||||
@@ -0,0 +1,215 @@
|
||||
diff --git a/mpv-test.py b/mpv-test.py
|
||||
index 175555b..d1c5f2d 100755
|
||||
--- a/mpv-test.py
|
||||
+++ b/mpv-test.py
|
||||
@@ -243,56 +243,56 @@ class ObservePropertyTest(MpvTestCase):
|
||||
m.terminate() # needed for synchronization of event thread
|
||||
handler.assert_has_calls([mock.call('vid', 'auto')])
|
||||
|
||||
- @devnull_libmpv()
|
||||
- def test_property_observer_decorator(self):
|
||||
- handler = mock.Mock()
|
||||
-
|
||||
- m = self.m
|
||||
- m.play(TESTVID)
|
||||
-
|
||||
- m.loop = 'inf'
|
||||
- m.mute = True
|
||||
-
|
||||
- @m.property_observer('mute')
|
||||
- @m.property_observer('loop')
|
||||
- def foo(*args, **kwargs):
|
||||
- handler(*args, **kwargs)
|
||||
-
|
||||
- m.mute = False
|
||||
- m.loop = False
|
||||
- self.assertEqual(m.mute, False)
|
||||
- self.assertEqual(m.loop, False)
|
||||
-
|
||||
- # Wait for tick. AFAICT property events are only generated at regular
|
||||
- # intervals, and if we change a property too fast we don't get any
|
||||
- # events. This is a limitation of the upstream API.
|
||||
- time.sleep(0.1)
|
||||
- # Another API limitation is that the order of property change events on
|
||||
- # different properties does not necessarily exactly match the order in
|
||||
- # which these properties were previously accessed. Thus, any_order.
|
||||
- handler.assert_has_calls([
|
||||
- mock.call('mute', False),
|
||||
- mock.call('loop', False)],
|
||||
- any_order=True)
|
||||
- handler.reset_mock()
|
||||
-
|
||||
- m.mute = True
|
||||
- m.loop = 'inf'
|
||||
- self.assertEqual(m.mute, True)
|
||||
- self.assertEqual(m.loop, True)
|
||||
-
|
||||
- time.sleep(0.05)
|
||||
- foo.unobserve_mpv_properties()
|
||||
-
|
||||
- m.mute = False
|
||||
- m.loop = False
|
||||
- m.mute = True
|
||||
- m.loop = 'inf'
|
||||
- m.terminate() # needed for synchronization of event thread
|
||||
- handler.assert_has_calls([
|
||||
- mock.call('mute', True),
|
||||
- mock.call('loop', True)],
|
||||
- any_order=True)
|
||||
+ # @devnull_libmpv()
|
||||
+ # def test_property_observer_decorator(self):
|
||||
+ # handler = mock.Mock()
|
||||
+
|
||||
+ # m = self.m
|
||||
+ # m.play(TESTVID)
|
||||
+
|
||||
+ # m.loop = 'inf'
|
||||
+ # m.mute = True
|
||||
+
|
||||
+ # @m.property_observer('mute')
|
||||
+ # @m.property_observer('loop')
|
||||
+ # def foo(*args, **kwargs):
|
||||
+ # handler(*args, **kwargs)
|
||||
+
|
||||
+ # m.mute = False
|
||||
+ # m.loop = False
|
||||
+ # self.assertEqual(m.mute, False)
|
||||
+ # self.assertEqual(m.loop, False)
|
||||
+
|
||||
+ # # Wait for tick. AFAICT property events are only generated at regular
|
||||
+ # # intervals, and if we change a property too fast we don't get any
|
||||
+ # # events. This is a limitation of the upstream API.
|
||||
+ # time.sleep(0.1)
|
||||
+ # # Another API limitation is that the order of property change events on
|
||||
+ # # different properties does not necessarily exactly match the order in
|
||||
+ # # which these properties were previously accessed. Thus, any_order.
|
||||
+ # handler.assert_has_calls([
|
||||
+ # mock.call('mute', False),
|
||||
+ # mock.call('loop', False)],
|
||||
+ # any_order=True)
|
||||
+ # handler.reset_mock()
|
||||
+
|
||||
+ # m.mute = True
|
||||
+ # m.loop = 'inf'
|
||||
+ # self.assertEqual(m.mute, True)
|
||||
+ # self.assertEqual(m.loop, True)
|
||||
+
|
||||
+ # time.sleep(0.05)
|
||||
+ # foo.unobserve_mpv_properties()
|
||||
+
|
||||
+ # m.mute = False
|
||||
+ # m.loop = False
|
||||
+ # m.mute = True
|
||||
+ # m.loop = 'inf'
|
||||
+ # m.terminate() # needed for synchronization of event thread
|
||||
+ # handler.assert_has_calls([
|
||||
+ # mock.call('mute', True),
|
||||
+ # mock.call('loop', True)],
|
||||
+ # any_order=True)
|
||||
|
||||
class KeyBindingTest(MpvTestCase):
|
||||
def test_register_direct_cmd(self):
|
||||
@@ -531,18 +531,18 @@ class TestLifecycle(unittest.TestCase):
|
||||
m.terminate()
|
||||
handler.assert_not_called()
|
||||
|
||||
- def test_log_handler(self):
|
||||
- handler = mock.Mock()
|
||||
- m = mpv.MPV(video=False, log_handler=handler)
|
||||
- m.play(TESTVID)
|
||||
- m.wait_for_playback()
|
||||
- m.terminate()
|
||||
- for call in handler.mock_calls:
|
||||
- _1, (a, b, c), _2 = call
|
||||
- if a == 'info' and b == 'cplayer' and c.startswith('Playing: '):
|
||||
- break
|
||||
- else:
|
||||
- self.fail('"Playing: foo..." call not found in log handler calls: '+','.join(repr(call) for call in handler.mock_calls))
|
||||
+ # def test_log_handler(self):
|
||||
+ # handler = mock.Mock()
|
||||
+ # m = mpv.MPV(video=False, log_handler=handler)
|
||||
+ # m.play(TESTVID)
|
||||
+ # m.wait_for_playback()
|
||||
+ # m.terminate()
|
||||
+ # for call in handler.mock_calls:
|
||||
+ # _1, (a, b, c), _2 = call
|
||||
+ # if a == 'info' and b == 'cplayer' and c.startswith('Playing: '):
|
||||
+ # break
|
||||
+ # else:
|
||||
+ # self.fail('"Playing: foo..." call not found in log handler calls: '+','.join(repr(call) for call in handler.mock_calls))
|
||||
|
||||
|
||||
class RegressionTests(MpvTestCase):
|
||||
@@ -566,39 +566,39 @@ class RegressionTests(MpvTestCase):
|
||||
""",
|
||||
)
|
||||
|
||||
- def test_instance_method_property_observer(self):
|
||||
- """
|
||||
- Ensure that bound method objects can be used as property observers.
|
||||
- See issue #26
|
||||
- """
|
||||
- handler = mock.Mock()
|
||||
- m = self.m
|
||||
-
|
||||
- class T(object):
|
||||
- def t(self, *args, **kw):
|
||||
- handler(*args, **kw)
|
||||
- t = T()
|
||||
-
|
||||
- m.loop = 'inf'
|
||||
-
|
||||
- m.observe_property('loop', t.t)
|
||||
-
|
||||
- m.loop = False
|
||||
- self.assertEqual(m.loop, False)
|
||||
- # Wait for tick. AFAICT property events are only generated at regular
|
||||
- # intervals, and if we change a property too fast we don't get any
|
||||
- # events. This is a limitation of the upstream API.
|
||||
- time.sleep(0.01)
|
||||
- m.loop = 'inf'
|
||||
- self.assertEqual(m.loop, True)
|
||||
-
|
||||
- time.sleep(0.02)
|
||||
- m.unobserve_property('loop', t.t)
|
||||
-
|
||||
- m.loop = False
|
||||
- m.loop = 'inf'
|
||||
- m.terminate() # needed for synchronization of event thread
|
||||
- handler.assert_has_calls([mock.call('loop', False), mock.call('loop', True)])
|
||||
+ # def test_instance_method_property_observer(self):
|
||||
+ # """
|
||||
+ # Ensure that bound method objects can be used as property observers.
|
||||
+ # See issue #26
|
||||
+ # """
|
||||
+ # handler = mock.Mock()
|
||||
+ # m = self.m
|
||||
+
|
||||
+ # class T(object):
|
||||
+ # def t(self, *args, **kw):
|
||||
+ # handler(*args, **kw)
|
||||
+ # t = T()
|
||||
+
|
||||
+ # m.loop = 'inf'
|
||||
+
|
||||
+ # m.observe_property('loop', t.t)
|
||||
+
|
||||
+ # m.loop = False
|
||||
+ # self.assertEqual(m.loop, False)
|
||||
+ # # Wait for tick. AFAICT property events are only generated at regular
|
||||
+ # # intervals, and if we change a property too fast we don't get any
|
||||
+ # # events. This is a limitation of the upstream API.
|
||||
+ # time.sleep(0.01)
|
||||
+ # m.loop = 'inf'
|
||||
+ # self.assertEqual(m.loop, True)
|
||||
+
|
||||
+ # time.sleep(0.02)
|
||||
+ # m.unobserve_property('loop', t.t)
|
||||
+
|
||||
+ # m.loop = False
|
||||
+ # m.loop = 'inf'
|
||||
+ # m.terminate() # needed for synchronization of event thread
|
||||
+ # handler.assert_has_calls([mock.call('loop', False), mock.call('loop', True)])
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
9
dev-python/python-mpv/metadata.xml
Normal file
9
dev-python/python-mpv/metadata.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>andrewammerlaan@riseup.net</email>
|
||||
<name>Andrew Ammerlaan</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
||||
28
dev-python/python-mpv/python-mpv-0.4.5.ebuild
Normal file
28
dev-python/python-mpv/python-mpv-0.4.5.ebuild
Normal file
@@ -0,0 +1,28 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{6,7,8} )
|
||||
|
||||
inherit distutils-r1 virtualx
|
||||
|
||||
DESCRIPTION="Python interface to the mpv media player"
|
||||
HOMEPAGE="https://github.com/jaseg/python-mpv"
|
||||
SRC_URI="https://github.com/jaseg/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="AGPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
RDEPEND="
|
||||
media-video/mpv[libmpv]
|
||||
dev-python/pillow[${PYTHON_USEDEP}]"
|
||||
|
||||
PATCHES="${FILESDIR}/${P}-skip-OSERROR-test.patch"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
python_test() {
|
||||
virtx pytest -vv mpv-test.py || die "Tests fail with ${EPYTHON}"
|
||||
}
|
||||
1
dev-python/python-vlc/Manifest
Normal file
1
dev-python/python-vlc/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST python-vlc-3.0.7110.tar.gz 224455 BLAKE2B b550cae3d3975e71610ca91b92d16278032da9a90efb8b753da80823028b67cd674613f682b565b830b098940fbd8cd91420cb56494dd46aaf9fe3037374d11b SHA512 c02fa5e66ce17520228a1f2058c468399aa56ff791be2b456bd836eb8db58909890830fe56942d2ffc0c4a565d5fa97cad2dea705152e6c8be406c801a872a4e
|
||||
9
dev-python/python-vlc/metadata.xml
Normal file
9
dev-python/python-vlc/metadata.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>andrewammerlaan@riseup.net</email>
|
||||
<name>Andrew Ammerlaan</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
||||
24
dev-python/python-vlc/python-vlc-3.0.7110.ebuild
Normal file
24
dev-python/python-vlc/python-vlc-3.0.7110.ebuild
Normal file
@@ -0,0 +1,24 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{6,7,8} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Python ctypes-based bindings for libvlc"
|
||||
HOMEPAGE="https://github.com/oaubert/python-vlc"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
IUSE="examples"
|
||||
|
||||
python_install_all() {
|
||||
use examples && dodoc -r examples
|
||||
|
||||
distutils-r1_python_install_all
|
||||
}
|
||||
1
dev-python/sniffio/Manifest
Normal file
1
dev-python/sniffio/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST sniffio-1.1.0.tar.gz 15285 BLAKE2B fc2887150c8b64cc9ba5eb261d2f04650033279e5b5a6527f28fa8eff6cda409ffddb0986bba1358288fd35e0bbd09d90a7c4a0893a612f1efdbec393c2d9e3c SHA512 f315c79245ccec8e1e6e0f8ffe4cf42fdab7f5fe3e680ddc05c65732a6d26989ac1459135f13938380928b02802bc0a6b1174c83118a60b0ad15f59730927912
|
||||
9
dev-python/sniffio/metadata.xml
Normal file
9
dev-python/sniffio/metadata.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>andrewammerlaan@riseup.net</email>
|
||||
<name>Andrew Ammerlaan</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
||||
23
dev-python/sniffio/sniffio-1.1.0.ebuild
Normal file
23
dev-python/sniffio/sniffio-1.1.0.ebuild
Normal file
@@ -0,0 +1,23 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{6,7,8} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Sniff out which async library your code is running under"
|
||||
HOMEPAGE="https://github.com/python-trio/sniffio"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="|| ( Apache-2.0 MIT )"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
SLOT="0"
|
||||
|
||||
RDEPEND="python_targets_python3_6? ( dev-python/contextvars[python_targets_python3_6] )"
|
||||
|
||||
DEPEND="test? ( dev-python/curio[${PYTHON_USEDEP}] )"
|
||||
|
||||
distutils_enable_sphinx docs/source dev-python/sphinxcontrib-trio
|
||||
distutils_enable_tests pytest
|
||||
1
dev-python/sphinx-autodoc-typehints/Manifest
Normal file
1
dev-python/sphinx-autodoc-typehints/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST sphinx-autodoc-typehints-1.10.3.tar.gz 16396 BLAKE2B 5621e6225fa8f97f61a3e7ad387631bc524bd4cd236a184e88431dd044dbf208b042882a150a88372f7bdd613d06de980a5b6685ed1814c6b0c7c1a27079f715 SHA512 170fd6cea10d730eefeef4e2e4de985119dbcde06d43181bb522ec31923ddc49dd7757ca623c820e2e5008198ef9b522d70e08c0c6ff5349921f1777b797bddb
|
||||
@@ -0,0 +1,772 @@
|
||||
diff --git a/tests/test_sphinx_autodoc_typehints.py b/tests/test_sphinx_autodoc_typehints.py
|
||||
index 4287385..75bcf20 100644
|
||||
--- a/tests/test_sphinx_autodoc_typehints.py
|
||||
+++ b/tests/test_sphinx_autodoc_typehints.py
|
||||
@@ -58,142 +58,142 @@ class Metaclass(type):
|
||||
pass
|
||||
|
||||
|
||||
-@pytest.mark.parametrize('annotation, module, class_name, args', [
|
||||
- pytest.param(str, 'builtins', 'str', (), id='str'),
|
||||
- pytest.param(None, 'builtins', 'None', (), id='None'),
|
||||
- pytest.param(Any, 'typing', 'Any', (), id='Any'),
|
||||
- pytest.param(AnyStr, 'typing', 'AnyStr', (), id='AnyStr'),
|
||||
- pytest.param(Dict, 'typing', 'Dict', (), id='Dict'),
|
||||
- pytest.param(Dict[str, int], 'typing', 'Dict', (str, int), id='Dict_parametrized'),
|
||||
- pytest.param(Dict[T, int], 'typing', 'Dict', (T, int), id='Dict_typevar'),
|
||||
- pytest.param(Tuple, 'typing', 'Tuple', (), id='Tuple'),
|
||||
- pytest.param(Tuple[str, int], 'typing', 'Tuple', (str, int), id='Tuple_parametrized'),
|
||||
- pytest.param(Union[str, int], 'typing', 'Union', (str, int), id='Union'),
|
||||
- pytest.param(Callable, 'typing', 'Callable', (), id='Callable'),
|
||||
- pytest.param(Callable[..., str], 'typing', 'Callable', (..., str), id='Callable_returntype'),
|
||||
- pytest.param(Callable[[int, str], str], 'typing', 'Callable', (int, str, str),
|
||||
- id='Callable_all_types'),
|
||||
- pytest.param(Pattern, 'typing', 'Pattern', (), id='Pattern'),
|
||||
- pytest.param(Pattern[str], 'typing', 'Pattern', (str,), id='Pattern_parametrized'),
|
||||
- pytest.param(Match, 'typing', 'Match', (), id='Match'),
|
||||
- pytest.param(Match[str], 'typing', 'Match', (str,), id='Match_parametrized'),
|
||||
- pytest.param(IO, 'typing', 'IO', (), id='IO'),
|
||||
- pytest.param(W, 'typing', 'NewType', (str,), id='W'),
|
||||
- pytest.param(Metaclass, __name__, 'Metaclass', (), id='Metaclass'),
|
||||
- pytest.param(Slotted, __name__, 'Slotted', (), id='Slotted'),
|
||||
- pytest.param(A, __name__, 'A', (), id='A'),
|
||||
- pytest.param(B, __name__, 'B', (), id='B'),
|
||||
- pytest.param(C, __name__, 'C', (), id='C'),
|
||||
- pytest.param(D, __name__, 'D', (), id='D'),
|
||||
- pytest.param(E, __name__, 'E', (), id='E'),
|
||||
- pytest.param(E[int], __name__, 'E', (int,), id='E_parametrized'),
|
||||
- pytest.param(A.Inner, __name__, 'A.Inner', (), id='Inner')
|
||||
-])
|
||||
-def test_parse_annotation(annotation, module, class_name, args):
|
||||
- assert get_annotation_module(annotation) == module
|
||||
- assert get_annotation_class_name(annotation, module) == class_name
|
||||
- assert get_annotation_args(annotation, module, class_name) == args
|
||||
-
|
||||
-
|
||||
-@pytest.mark.parametrize('annotation, expected_result', [
|
||||
- (str, ':py:class:`str`'),
|
||||
- (int, ':py:class:`int`'),
|
||||
- (type(None), '``None``'),
|
||||
- (type, ':py:class:`type`'),
|
||||
- (Type, ':py:class:`~typing.Type`'),
|
||||
- (Type[A], ':py:class:`~typing.Type`\\[:py:class:`~%s.A`]' % __name__),
|
||||
- (Any, ':py:data:`~typing.Any`'),
|
||||
- (AnyStr, ':py:data:`~typing.AnyStr`'),
|
||||
- (Generic[T], ':py:class:`~typing.Generic`\\[\\~T]'),
|
||||
- (Mapping, ':py:class:`~typing.Mapping`'),
|
||||
- (Mapping[T, int], ':py:class:`~typing.Mapping`\\[\\~T, :py:class:`int`]'),
|
||||
- (Mapping[str, V], ':py:class:`~typing.Mapping`\\[:py:class:`str`, \\-V]'),
|
||||
- (Mapping[T, U], ':py:class:`~typing.Mapping`\\[\\~T, \\+U]'),
|
||||
- (Mapping[str, bool], ':py:class:`~typing.Mapping`\\[:py:class:`str`, '
|
||||
- ':py:class:`bool`]'),
|
||||
- (Dict, ':py:class:`~typing.Dict`'),
|
||||
- (Dict[T, int], ':py:class:`~typing.Dict`\\[\\~T, :py:class:`int`]'),
|
||||
- (Dict[str, V], ':py:class:`~typing.Dict`\\[:py:class:`str`, \\-V]'),
|
||||
- (Dict[T, U], ':py:class:`~typing.Dict`\\[\\~T, \\+U]'),
|
||||
- (Dict[str, bool], ':py:class:`~typing.Dict`\\[:py:class:`str`, '
|
||||
- ':py:class:`bool`]'),
|
||||
- (Tuple, ':py:data:`~typing.Tuple`'),
|
||||
- (Tuple[str, bool], ':py:data:`~typing.Tuple`\\[:py:class:`str`, '
|
||||
- ':py:class:`bool`]'),
|
||||
- (Tuple[int, int, int], ':py:data:`~typing.Tuple`\\[:py:class:`int`, '
|
||||
- ':py:class:`int`, :py:class:`int`]'),
|
||||
- (Tuple[str, ...], ':py:data:`~typing.Tuple`\\[:py:class:`str`, ...]'),
|
||||
- (Union, ':py:data:`~typing.Union`'),
|
||||
- (Union[str, bool], ':py:data:`~typing.Union`\\[:py:class:`str`, '
|
||||
- ':py:class:`bool`]'),
|
||||
- pytest.param(Union[str, Any], ':py:data:`~typing.Union`\\[:py:class:`str`, '
|
||||
- ':py:data:`~typing.Any`]',
|
||||
- marks=pytest.mark.skipif((3, 5, 0) <= sys.version_info[:3] <= (3, 5, 2),
|
||||
- reason='Union erases the str on 3.5.0 -> 3.5.2')),
|
||||
- (Optional[str], ':py:data:`~typing.Optional`\\[:py:class:`str`]'),
|
||||
- (Callable, ':py:data:`~typing.Callable`'),
|
||||
- (Callable[..., int], ':py:data:`~typing.Callable`\\[..., :py:class:`int`]'),
|
||||
- (Callable[[int], int], ':py:data:`~typing.Callable`\\[\\[:py:class:`int`], '
|
||||
- ':py:class:`int`]'),
|
||||
- (Callable[[int, str], bool], ':py:data:`~typing.Callable`\\[\\[:py:class:`int`, '
|
||||
- ':py:class:`str`], :py:class:`bool`]'),
|
||||
- (Callable[[int, str], None], ':py:data:`~typing.Callable`\\[\\[:py:class:`int`, '
|
||||
- ':py:class:`str`], ``None``]'),
|
||||
- (Callable[[T], T], ':py:data:`~typing.Callable`\\[\\[\\~T], \\~T]'),
|
||||
- (Pattern, ':py:class:`~typing.Pattern`'),
|
||||
- (Pattern[str], ':py:class:`~typing.Pattern`\\[:py:class:`str`]'),
|
||||
- (IO, ':py:class:`~typing.IO`'),
|
||||
- (Metaclass, ':py:class:`~%s.Metaclass`' % __name__),
|
||||
- (A, ':py:class:`~%s.A`' % __name__),
|
||||
- (B, ':py:class:`~%s.B`' % __name__),
|
||||
- (B[int], ':py:class:`~%s.B`\\[:py:class:`int`]' % __name__),
|
||||
- (C, ':py:class:`~%s.C`' % __name__),
|
||||
- (D, ':py:class:`~%s.D`' % __name__),
|
||||
- (E, ':py:class:`~%s.E`' % __name__),
|
||||
- (E[int], ':py:class:`~%s.E`\\[:py:class:`int`]' % __name__),
|
||||
- (W, ':py:func:`~typing.NewType`\\(:py:data:`~W`, :py:class:`str`)')
|
||||
-])
|
||||
-def test_format_annotation(inv, annotation, expected_result):
|
||||
- result = format_annotation(annotation)
|
||||
- assert result == expected_result
|
||||
-
|
||||
- # Test with the "fully_qualified" flag turned on
|
||||
- if 'typing' in expected_result or __name__ in expected_result:
|
||||
- expected_result = expected_result.replace('~typing', 'typing')
|
||||
- expected_result = expected_result.replace('~' + __name__, __name__)
|
||||
- assert format_annotation(annotation, fully_qualified=True) == expected_result
|
||||
-
|
||||
- # Test for the correct role (class vs data) using the official Sphinx inventory
|
||||
- if 'typing' in expected_result:
|
||||
- m = re.match('^:py:(?P<role>class|data|func):`~(?P<name>[^`]+)`', result)
|
||||
- assert m, 'No match'
|
||||
- name = m.group('name')
|
||||
- expected_role = next((o.role for o in inv.objects if o.name == name), None)
|
||||
- if expected_role:
|
||||
- if expected_role == 'function':
|
||||
- expected_role = 'func'
|
||||
-
|
||||
- assert m.group('role') == expected_role
|
||||
-
|
||||
-
|
||||
-@pytest.mark.parametrize('library', [typing, typing_extensions],
|
||||
- ids=['typing', 'typing_extensions'])
|
||||
-@pytest.mark.parametrize('annotation, params, expected_result', [
|
||||
- ('ClassVar', int, ":py:data:`~typing.ClassVar`\\[:py:class:`int`]"),
|
||||
- ('NoReturn', None, ":py:data:`~typing.NoReturn`"),
|
||||
- ('Literal', ('a', 1), ":py:data:`~typing.Literal`\\['a', 1]"),
|
||||
- ('Type', None, ':py:class:`~typing.Type`'),
|
||||
- ('Type', (A,), ':py:class:`~typing.Type`\\[:py:class:`~%s.A`]' % __name__)
|
||||
-])
|
||||
-def test_format_annotation_both_libs(inv, library, annotation, params, expected_result):
|
||||
- try:
|
||||
- annotation_cls = getattr(library, annotation)
|
||||
- except AttributeError:
|
||||
- pytest.skip('{} not available in the {} module'.format(annotation, library.__name__))
|
||||
-
|
||||
- ann = annotation_cls if params is None else annotation_cls[params]
|
||||
- result = format_annotation(ann)
|
||||
- assert result == expected_result
|
||||
+# @pytest.mark.parametrize('annotation, module, class_name, args', [
|
||||
+# pytest.param(str, 'builtins', 'str', (), id='str'),
|
||||
+# pytest.param(None, 'builtins', 'None', (), id='None'),
|
||||
+# pytest.param(Any, 'typing', 'Any', (), id='Any'),
|
||||
+# pytest.param(AnyStr, 'typing', 'AnyStr', (), id='AnyStr'),
|
||||
+# pytest.param(Dict, 'typing', 'Dict', (), id='Dict'),
|
||||
+# pytest.param(Dict[str, int], 'typing', 'Dict', (str, int), id='Dict_parametrized'),
|
||||
+# pytest.param(Dict[T, int], 'typing', 'Dict', (T, int), id='Dict_typevar'),
|
||||
+# pytest.param(Tuple, 'typing', 'Tuple', (), id='Tuple'),
|
||||
+# pytest.param(Tuple[str, int], 'typing', 'Tuple', (str, int), id='Tuple_parametrized'),
|
||||
+# pytest.param(Union[str, int], 'typing', 'Union', (str, int), id='Union'),
|
||||
+# pytest.param(Callable, 'typing', 'Callable', (), id='Callable'),
|
||||
+# pytest.param(Callable[..., str], 'typing', 'Callable', (..., str), id='Callable_returntype'),
|
||||
+# pytest.param(Callable[[int, str], str], 'typing', 'Callable', (int, str, str),
|
||||
+# id='Callable_all_types'),
|
||||
+# pytest.param(Pattern, 'typing', 'Pattern', (), id='Pattern'),
|
||||
+# pytest.param(Pattern[str], 'typing', 'Pattern', (str,), id='Pattern_parametrized'),
|
||||
+# pytest.param(Match, 'typing', 'Match', (), id='Match'),
|
||||
+# pytest.param(Match[str], 'typing', 'Match', (str,), id='Match_parametrized'),
|
||||
+# pytest.param(IO, 'typing', 'IO', (), id='IO'),
|
||||
+# pytest.param(W, 'typing', 'NewType', (str,), id='W'),
|
||||
+# pytest.param(Metaclass, __name__, 'Metaclass', (), id='Metaclass'),
|
||||
+# pytest.param(Slotted, __name__, 'Slotted', (), id='Slotted'),
|
||||
+# pytest.param(A, __name__, 'A', (), id='A'),
|
||||
+# pytest.param(B, __name__, 'B', (), id='B'),
|
||||
+# pytest.param(C, __name__, 'C', (), id='C'),
|
||||
+# pytest.param(D, __name__, 'D', (), id='D'),
|
||||
+# pytest.param(E, __name__, 'E', (), id='E'),
|
||||
+# pytest.param(E[int], __name__, 'E', (int,), id='E_parametrized'),
|
||||
+# pytest.param(A.Inner, __name__, 'A.Inner', (), id='Inner')
|
||||
+# ])
|
||||
+# def test_parse_annotation(annotation, module, class_name, args):
|
||||
+# assert get_annotation_module(annotation) == module
|
||||
+# assert get_annotation_class_name(annotation, module) == class_name
|
||||
+# assert get_annotation_args(annotation, module, class_name) == args
|
||||
+
|
||||
+
|
||||
+# @pytest.mark.parametrize('annotation, expected_result', [
|
||||
+# (str, ':py:class:`str`'),
|
||||
+# (int, ':py:class:`int`'),
|
||||
+# (type(None), '``None``'),
|
||||
+# (type, ':py:class:`type`'),
|
||||
+# (Type, ':py:class:`~typing.Type`'),
|
||||
+# (Type[A], ':py:class:`~typing.Type`\\[:py:class:`~%s.A`]' % __name__),
|
||||
+# (Any, ':py:data:`~typing.Any`'),
|
||||
+# (AnyStr, ':py:data:`~typing.AnyStr`'),
|
||||
+# (Generic[T], ':py:class:`~typing.Generic`\\[\\~T]'),
|
||||
+# (Mapping, ':py:class:`~typing.Mapping`'),
|
||||
+# (Mapping[T, int], ':py:class:`~typing.Mapping`\\[\\~T, :py:class:`int`]'),
|
||||
+# (Mapping[str, V], ':py:class:`~typing.Mapping`\\[:py:class:`str`, \\-V]'),
|
||||
+# (Mapping[T, U], ':py:class:`~typing.Mapping`\\[\\~T, \\+U]'),
|
||||
+# (Mapping[str, bool], ':py:class:`~typing.Mapping`\\[:py:class:`str`, '
|
||||
+# ':py:class:`bool`]'),
|
||||
+# (Dict, ':py:class:`~typing.Dict`'),
|
||||
+# (Dict[T, int], ':py:class:`~typing.Dict`\\[\\~T, :py:class:`int`]'),
|
||||
+# (Dict[str, V], ':py:class:`~typing.Dict`\\[:py:class:`str`, \\-V]'),
|
||||
+# (Dict[T, U], ':py:class:`~typing.Dict`\\[\\~T, \\+U]'),
|
||||
+# (Dict[str, bool], ':py:class:`~typing.Dict`\\[:py:class:`str`, '
|
||||
+# ':py:class:`bool`]'),
|
||||
+# (Tuple, ':py:data:`~typing.Tuple`'),
|
||||
+# (Tuple[str, bool], ':py:data:`~typing.Tuple`\\[:py:class:`str`, '
|
||||
+# ':py:class:`bool`]'),
|
||||
+# (Tuple[int, int, int], ':py:data:`~typing.Tuple`\\[:py:class:`int`, '
|
||||
+# ':py:class:`int`, :py:class:`int`]'),
|
||||
+# (Tuple[str, ...], ':py:data:`~typing.Tuple`\\[:py:class:`str`, ...]'),
|
||||
+# (Union, ':py:data:`~typing.Union`'),
|
||||
+# (Union[str, bool], ':py:data:`~typing.Union`\\[:py:class:`str`, '
|
||||
+# ':py:class:`bool`]'),
|
||||
+# pytest.param(Union[str, Any], ':py:data:`~typing.Union`\\[:py:class:`str`, '
|
||||
+# ':py:data:`~typing.Any`]',
|
||||
+# marks=pytest.mark.skipif((3, 5, 0) <= sys.version_info[:3] <= (3, 5, 2),
|
||||
+# reason='Union erases the str on 3.5.0 -> 3.5.2')),
|
||||
+# (Optional[str], ':py:data:`~typing.Optional`\\[:py:class:`str`]'),
|
||||
+# (Callable, ':py:data:`~typing.Callable`'),
|
||||
+# (Callable[..., int], ':py:data:`~typing.Callable`\\[..., :py:class:`int`]'),
|
||||
+# (Callable[[int], int], ':py:data:`~typing.Callable`\\[\\[:py:class:`int`], '
|
||||
+# ':py:class:`int`]'),
|
||||
+# (Callable[[int, str], bool], ':py:data:`~typing.Callable`\\[\\[:py:class:`int`, '
|
||||
+# ':py:class:`str`], :py:class:`bool`]'),
|
||||
+# (Callable[[int, str], None], ':py:data:`~typing.Callable`\\[\\[:py:class:`int`, '
|
||||
+# ':py:class:`str`], ``None``]'),
|
||||
+# (Callable[[T], T], ':py:data:`~typing.Callable`\\[\\[\\~T], \\~T]'),
|
||||
+# (Pattern, ':py:class:`~typing.Pattern`'),
|
||||
+# (Pattern[str], ':py:class:`~typing.Pattern`\\[:py:class:`str`]'),
|
||||
+# (IO, ':py:class:`~typing.IO`'),
|
||||
+# (Metaclass, ':py:class:`~%s.Metaclass`' % __name__),
|
||||
+# (A, ':py:class:`~%s.A`' % __name__),
|
||||
+# (B, ':py:class:`~%s.B`' % __name__),
|
||||
+# (B[int], ':py:class:`~%s.B`\\[:py:class:`int`]' % __name__),
|
||||
+# (C, ':py:class:`~%s.C`' % __name__),
|
||||
+# (D, ':py:class:`~%s.D`' % __name__),
|
||||
+# (E, ':py:class:`~%s.E`' % __name__),
|
||||
+# (E[int], ':py:class:`~%s.E`\\[:py:class:`int`]' % __name__),
|
||||
+# (W, ':py:func:`~typing.NewType`\\(:py:data:`~W`, :py:class:`str`)')
|
||||
+# ])
|
||||
+# def test_format_annotation(inv, annotation, expected_result):
|
||||
+# result = format_annotation(annotation)
|
||||
+# assert result == expected_result
|
||||
+
|
||||
+# # Test with the "fully_qualified" flag turned on
|
||||
+# if 'typing' in expected_result or __name__ in expected_result:
|
||||
+# expected_result = expected_result.replace('~typing', 'typing')
|
||||
+# expected_result = expected_result.replace('~' + __name__, __name__)
|
||||
+# assert format_annotation(annotation, fully_qualified=True) == expected_result
|
||||
+
|
||||
+# # Test for the correct role (class vs data) using the official Sphinx inventory
|
||||
+# if 'typing' in expected_result:
|
||||
+# m = re.match('^:py:(?P<role>class|data|func):`~(?P<name>[^`]+)`', result)
|
||||
+# assert m, 'No match'
|
||||
+# name = m.group('name')
|
||||
+# expected_role = next((o.role for o in inv.objects if o.name == name), None)
|
||||
+# if expected_role:
|
||||
+# if expected_role == 'function':
|
||||
+# expected_role = 'func'
|
||||
+
|
||||
+# assert m.group('role') == expected_role
|
||||
+
|
||||
+
|
||||
+# @pytest.mark.parametrize('library', [typing, typing_extensions],
|
||||
+# ids=['typing', 'typing_extensions'])
|
||||
+# @pytest.mark.parametrize('annotation, params, expected_result', [
|
||||
+# ('ClassVar', int, ":py:data:`~typing.ClassVar`\\[:py:class:`int`]"),
|
||||
+# ('NoReturn', None, ":py:data:`~typing.NoReturn`"),
|
||||
+# ('Literal', ('a', 1), ":py:data:`~typing.Literal`\\['a', 1]"),
|
||||
+# ('Type', None, ':py:class:`~typing.Type`'),
|
||||
+# ('Type', (A,), ':py:class:`~typing.Type`\\[:py:class:`~%s.A`]' % __name__)
|
||||
+# ])
|
||||
+# def test_format_annotation_both_libs(inv, library, annotation, params, expected_result):
|
||||
+# try:
|
||||
+# annotation_cls = getattr(library, annotation)
|
||||
+# except AttributeError:
|
||||
+# pytest.skip('{} not available in the {} module'.format(annotation, library.__name__))
|
||||
+
|
||||
+# ann = annotation_cls if params is None else annotation_cls[params]
|
||||
+# result = format_annotation(ann)
|
||||
+# assert result == expected_result
|
||||
|
||||
|
||||
def test_process_docstring_slot_wrapper():
|
||||
@@ -202,304 +202,304 @@ def test_process_docstring_slot_wrapper():
|
||||
assert not lines
|
||||
|
||||
|
||||
-@pytest.mark.parametrize('always_document_param_types', [True, False])
|
||||
-@pytest.mark.sphinx('text', testroot='dummy')
|
||||
-def test_sphinx_output(app, status, warning, always_document_param_types):
|
||||
- test_path = pathlib.Path(__file__).parent
|
||||
+# @pytest.mark.parametrize('always_document_param_types', [True, False])
|
||||
+# @pytest.mark.sphinx('text', testroot='dummy')
|
||||
+# def test_sphinx_output(app, status, warning, always_document_param_types):
|
||||
+# test_path = pathlib.Path(__file__).parent
|
||||
|
||||
- # Add test directory to sys.path to allow imports of dummy module.
|
||||
- if str(test_path) not in sys.path:
|
||||
- sys.path.insert(0, str(test_path))
|
||||
+# # Add test directory to sys.path to allow imports of dummy module.
|
||||
+# if str(test_path) not in sys.path:
|
||||
+# sys.path.insert(0, str(test_path))
|
||||
|
||||
- app.config.always_document_param_types = always_document_param_types
|
||||
- app.config.autodoc_mock_imports = ['mailbox']
|
||||
- app.build()
|
||||
+# app.config.always_document_param_types = always_document_param_types
|
||||
+# app.config.autodoc_mock_imports = ['mailbox']
|
||||
+# app.build()
|
||||
|
||||
- assert 'build succeeded' in status.getvalue() # Build succeeded
|
||||
+# assert 'build succeeded' in status.getvalue() # Build succeeded
|
||||
|
||||
- # There should be a warning about an unresolved forward reference
|
||||
- warnings = warning.getvalue().strip()
|
||||
- assert 'Cannot resolve forward reference in type annotations of ' in warnings, warnings
|
||||
+# # There should be a warning about an unresolved forward reference
|
||||
+# warnings = warning.getvalue().strip()
|
||||
+# assert 'Cannot resolve forward reference in type annotations of ' in warnings, warnings
|
||||
|
||||
- format_args = {}
|
||||
- if always_document_param_types:
|
||||
- format_args['undoc_params'] = '\n\n Parameters:\n **x** ("int") --'
|
||||
- else:
|
||||
- format_args['undoc_params'] = ""
|
||||
+# format_args = {}
|
||||
+# if always_document_param_types:
|
||||
+# format_args['undoc_params'] = '\n\n Parameters:\n **x** ("int") --'
|
||||
+# else:
|
||||
+# format_args['undoc_params'] = ""
|
||||
|
||||
- if sys.version_info < (3, 6):
|
||||
- format_args['dataclass_docstring'] = ('Initialize self. See help(type(self)) for '
|
||||
- 'accurate signature.')
|
||||
- else:
|
||||
- format_args['dataclass_docstring'] = 'Return type:\n "None"'
|
||||
+# if sys.version_info < (3, 6):
|
||||
+# format_args['dataclass_docstring'] = ('Initialize self. See help(type(self)) for '
|
||||
+# 'accurate signature.')
|
||||
+# else:
|
||||
+# format_args['dataclass_docstring'] = 'Return type:\n "None"'
|
||||
|
||||
- text_path = pathlib.Path(app.srcdir) / '_build' / 'text' / 'index.txt'
|
||||
- with text_path.open('r') as f:
|
||||
- text_contents = f.read().replace('–', '--')
|
||||
- expected_contents = textwrap.dedent('''\
|
||||
- Dummy Module
|
||||
- ************
|
||||
+# text_path = pathlib.Path(app.srcdir) / '_build' / 'text' / 'index.txt'
|
||||
+# with text_path.open('r') as f:
|
||||
+# text_contents = f.read().replace('–', '--')
|
||||
+# expected_contents = textwrap.dedent('''\
|
||||
+# Dummy Module
|
||||
+# ************
|
||||
|
||||
- class dummy_module.Class(x, y, z=None)
|
||||
+# class dummy_module.Class(x, y, z=None)
|
||||
|
||||
- Initializer docstring.
|
||||
+# Initializer docstring.
|
||||
|
||||
- Parameters:
|
||||
- * **x** ("bool") – foo
|
||||
+# Parameters:
|
||||
+# * **x** ("bool") – foo
|
||||
|
||||
- * **y** ("int") – bar
|
||||
+# * **y** ("int") – bar
|
||||
|
||||
- * **z** ("Optional"["str"]) – baz
|
||||
+# * **z** ("Optional"["str"]) – baz
|
||||
|
||||
- class InnerClass
|
||||
+# class InnerClass
|
||||
|
||||
- Inner class.
|
||||
+# Inner class.
|
||||
|
||||
- _InnerClass__dunder_inner_method(x)
|
||||
+# _InnerClass__dunder_inner_method(x)
|
||||
|
||||
- Dunder inner method.
|
||||
+# Dunder inner method.
|
||||
|
||||
- Parameters:
|
||||
- **x** ("bool") -- foo
|
||||
+# Parameters:
|
||||
+# **x** ("bool") -- foo
|
||||
|
||||
- Return type:
|
||||
- "str"
|
||||
+# Return type:
|
||||
+# "str"
|
||||
|
||||
- inner_method(x)
|
||||
+# inner_method(x)
|
||||
|
||||
- Inner method.
|
||||
+# Inner method.
|
||||
|
||||
- Parameters:
|
||||
- **x** ("bool") -- foo
|
||||
+# Parameters:
|
||||
+# **x** ("bool") -- foo
|
||||
|
||||
- Return type:
|
||||
- "str"
|
||||
+# Return type:
|
||||
+# "str"
|
||||
|
||||
- _Class__dunder_method(x)
|
||||
+# _Class__dunder_method(x)
|
||||
|
||||
- Dunder method docstring.
|
||||
+# Dunder method docstring.
|
||||
|
||||
- Parameters:
|
||||
- **x** ("str") -- foo
|
||||
+# Parameters:
|
||||
+# **x** ("str") -- foo
|
||||
|
||||
- Return type:
|
||||
- "str"
|
||||
+# Return type:
|
||||
+# "str"
|
||||
|
||||
- __magic_custom_method__(x)
|
||||
+# __magic_custom_method__(x)
|
||||
|
||||
- Magic dunder method docstring.
|
||||
+# Magic dunder method docstring.
|
||||
|
||||
- Parameters:
|
||||
- **x** ("str") -- foo
|
||||
+# Parameters:
|
||||
+# **x** ("str") -- foo
|
||||
|
||||
- Return type:
|
||||
- "str"
|
||||
+# Return type:
|
||||
+# "str"
|
||||
|
||||
- _private_method(x)
|
||||
+# _private_method(x)
|
||||
|
||||
- Private method docstring.
|
||||
+# Private method docstring.
|
||||
|
||||
- Parameters:
|
||||
- **x** ("str") -- foo
|
||||
+# Parameters:
|
||||
+# **x** ("str") -- foo
|
||||
|
||||
- Return type:
|
||||
- "str"
|
||||
+# Return type:
|
||||
+# "str"
|
||||
|
||||
- classmethod a_classmethod(x, y, z=None)
|
||||
+# classmethod a_classmethod(x, y, z=None)
|
||||
|
||||
- Classmethod docstring.
|
||||
+# Classmethod docstring.
|
||||
|
||||
- Parameters:
|
||||
- * **x** ("bool") – foo
|
||||
+# Parameters:
|
||||
+# * **x** ("bool") – foo
|
||||
|
||||
- * **y** ("int") – bar
|
||||
+# * **y** ("int") – bar
|
||||
|
||||
- * **z** ("Optional"["str"]) – baz
|
||||
+# * **z** ("Optional"["str"]) – baz
|
||||
|
||||
- Return type:
|
||||
- "str"
|
||||
+# Return type:
|
||||
+# "str"
|
||||
|
||||
- a_method(x, y, z=None)
|
||||
+# a_method(x, y, z=None)
|
||||
|
||||
- Method docstring.
|
||||
+# Method docstring.
|
||||
|
||||
- Parameters:
|
||||
- * **x** ("bool") – foo
|
||||
+# Parameters:
|
||||
+# * **x** ("bool") – foo
|
||||
|
||||
- * **y** ("int") – bar
|
||||
+# * **y** ("int") – bar
|
||||
|
||||
- * **z** ("Optional"["str"]) – baz
|
||||
+# * **z** ("Optional"["str"]) – baz
|
||||
|
||||
- Return type:
|
||||
- "str"
|
||||
+# Return type:
|
||||
+# "str"
|
||||
|
||||
- property a_property
|
||||
+# property a_property
|
||||
|
||||
- Property docstring
|
||||
+# Property docstring
|
||||
|
||||
- Return type:
|
||||
- "str"
|
||||
+# Return type:
|
||||
+# "str"
|
||||
|
||||
- static a_staticmethod(x, y, z=None)
|
||||
+# static a_staticmethod(x, y, z=None)
|
||||
|
||||
- Staticmethod docstring.
|
||||
+# Staticmethod docstring.
|
||||
|
||||
- Parameters:
|
||||
- * **x** ("bool") – foo
|
||||
+# Parameters:
|
||||
+# * **x** ("bool") – foo
|
||||
|
||||
- * **y** ("int") – bar
|
||||
+# * **y** ("int") – bar
|
||||
|
||||
- * **z** ("Optional"["str"]) – baz
|
||||
+# * **z** ("Optional"["str"]) – baz
|
||||
|
||||
- Return type:
|
||||
- "str"
|
||||
+# Return type:
|
||||
+# "str"
|
||||
|
||||
- locally_defined_callable_field() -> str
|
||||
+# locally_defined_callable_field() -> str
|
||||
|
||||
- Wrapper
|
||||
+# Wrapper
|
||||
|
||||
- Return type:
|
||||
- "str"
|
||||
+# Return type:
|
||||
+# "str"
|
||||
|
||||
- exception dummy_module.DummyException(message)
|
||||
+# exception dummy_module.DummyException(message)
|
||||
|
||||
- Exception docstring
|
||||
+# Exception docstring
|
||||
|
||||
- Parameters:
|
||||
- **message** ("str") – blah
|
||||
+# Parameters:
|
||||
+# **message** ("str") – blah
|
||||
|
||||
- dummy_module.function(x, y, z_=None)
|
||||
+# dummy_module.function(x, y, z_=None)
|
||||
|
||||
- Function docstring.
|
||||
+# Function docstring.
|
||||
|
||||
- Parameters:
|
||||
- * **x** ("bool") – foo
|
||||
+# Parameters:
|
||||
+# * **x** ("bool") – foo
|
||||
|
||||
- * **y** ("int") – bar
|
||||
+# * **y** ("int") – bar
|
||||
|
||||
- * **z_** ("Optional"["str"]) – baz
|
||||
+# * **z_** ("Optional"["str"]) – baz
|
||||
|
||||
- Returns:
|
||||
- something
|
||||
+# Returns:
|
||||
+# something
|
||||
|
||||
- Return type:
|
||||
- bytes
|
||||
+# Return type:
|
||||
+# bytes
|
||||
|
||||
- dummy_module.function_with_escaped_default(x='\\x08')
|
||||
+# dummy_module.function_with_escaped_default(x='\\x08')
|
||||
|
||||
- Function docstring.
|
||||
+# Function docstring.
|
||||
|
||||
- Parameters:
|
||||
- **x** ("str") – foo
|
||||
+# Parameters:
|
||||
+# **x** ("str") – foo
|
||||
|
||||
- dummy_module.function_with_unresolvable_annotation(x)
|
||||
+# dummy_module.function_with_unresolvable_annotation(x)
|
||||
|
||||
- Function docstring.
|
||||
+# Function docstring.
|
||||
|
||||
- Parameters:
|
||||
- **x** (*a.b.c*) – foo
|
||||
+# Parameters:
|
||||
+# **x** (*a.b.c*) – foo
|
||||
|
||||
- dummy_module.function_with_typehint_comment(x, y)
|
||||
+# dummy_module.function_with_typehint_comment(x, y)
|
||||
|
||||
- Function docstring.
|
||||
+# Function docstring.
|
||||
|
||||
- Parameters:
|
||||
- * **x** ("int") – foo
|
||||
+# Parameters:
|
||||
+# * **x** ("int") – foo
|
||||
|
||||
- * **y** ("str") – bar
|
||||
+# * **y** ("str") – bar
|
||||
|
||||
- Return type:
|
||||
- "None"
|
||||
+# Return type:
|
||||
+# "None"
|
||||
|
||||
- class dummy_module.ClassWithTypehints(x)
|
||||
+# class dummy_module.ClassWithTypehints(x)
|
||||
|
||||
- Class docstring.
|
||||
+# Class docstring.
|
||||
|
||||
- Parameters:
|
||||
- **x** ("int") -- foo
|
||||
+# Parameters:
|
||||
+# **x** ("int") -- foo
|
||||
|
||||
- foo(x)
|
||||
+# foo(x)
|
||||
|
||||
- Method docstring.
|
||||
+# Method docstring.
|
||||
|
||||
- Parameters:
|
||||
- **x** ("str") -- foo
|
||||
+# Parameters:
|
||||
+# **x** ("str") -- foo
|
||||
|
||||
- Return type:
|
||||
- "int"
|
||||
+# Return type:
|
||||
+# "int"
|
||||
|
||||
- dummy_module.function_with_typehint_comment_not_inline(x=None, *y, z, **kwargs)
|
||||
+# dummy_module.function_with_typehint_comment_not_inline(x=None, *y, z, **kwargs)
|
||||
|
||||
- Function docstring.
|
||||
+# Function docstring.
|
||||
|
||||
- Parameters:
|
||||
- * **x** ("Union"["str", "bytes", "None"]) -- foo
|
||||
+# Parameters:
|
||||
+# * **x** ("Union"["str", "bytes", "None"]) -- foo
|
||||
|
||||
- * **y** ("str") -- bar
|
||||
+# * **y** ("str") -- bar
|
||||
|
||||
- * **z** ("bytes") -- baz
|
||||
+# * **z** ("bytes") -- baz
|
||||
|
||||
- * **kwargs** ("int") -- some kwargs
|
||||
+# * **kwargs** ("int") -- some kwargs
|
||||
|
||||
- Return type:
|
||||
- "None"
|
||||
+# Return type:
|
||||
+# "None"
|
||||
|
||||
- class dummy_module.ClassWithTypehintsNotInline(x=None)
|
||||
+# class dummy_module.ClassWithTypehintsNotInline(x=None)
|
||||
|
||||
- Class docstring.
|
||||
+# Class docstring.
|
||||
|
||||
- Parameters:
|
||||
- **x** ("Optional"["Callable"[["int", "bytes"], "int"]]) -- foo
|
||||
+# Parameters:
|
||||
+# **x** ("Optional"["Callable"[["int", "bytes"], "int"]]) -- foo
|
||||
|
||||
- foo(x=1)
|
||||
+# foo(x=1)
|
||||
|
||||
- Method docstring.
|
||||
+# Method docstring.
|
||||
|
||||
- Parameters:
|
||||
- **x** ("Callable"[["int", "bytes"], "int"]) -- foo
|
||||
+# Parameters:
|
||||
+# **x** ("Callable"[["int", "bytes"], "int"]) -- foo
|
||||
|
||||
- Return type:
|
||||
- "int"
|
||||
+# Return type:
|
||||
+# "int"
|
||||
|
||||
- classmethod mk(x=None)
|
||||
+# classmethod mk(x=None)
|
||||
|
||||
- Method docstring.
|
||||
+# Method docstring.
|
||||
|
||||
- Parameters:
|
||||
- **x** (*Callable**[**[**int**, **bytes**]**, **int**]*) --
|
||||
- foo
|
||||
+# Parameters:
|
||||
+# **x** (*Callable**[**[**int**, **bytes**]**, **int**]*) --
|
||||
+# foo
|
||||
|
||||
- Return type:
|
||||
- ClassWithTypehintsNotInline
|
||||
+# Return type:
|
||||
+# ClassWithTypehintsNotInline
|
||||
|
||||
- dummy_module.undocumented_function(x)
|
||||
+# dummy_module.undocumented_function(x)
|
||||
|
||||
- Hi{undoc_params}
|
||||
+# Hi{undoc_params}
|
||||
|
||||
- Return type:
|
||||
- "str"
|
||||
+# Return type:
|
||||
+# "str"
|
||||
|
||||
- class dummy_module.DataClass
|
||||
+# class dummy_module.DataClass
|
||||
|
||||
- Class docstring.
|
||||
+# Class docstring.
|
||||
|
||||
- __init__()
|
||||
+# __init__()
|
||||
|
||||
- {dataclass_docstring}
|
||||
+# {dataclass_docstring}
|
||||
|
||||
- @dummy_module.Decorator(func)
|
||||
+# @dummy_module.Decorator(func)
|
||||
|
||||
- Initializer docstring.
|
||||
+# Initializer docstring.
|
||||
|
||||
- Parameters:
|
||||
- **func** ("Callable"[["int", "str"], "str"]) -- function
|
||||
+# Parameters:
|
||||
+# **func** ("Callable"[["int", "str"], "str"]) -- function
|
||||
|
||||
- dummy_module.mocked_import(x)
|
||||
+# dummy_module.mocked_import(x)
|
||||
|
||||
- A docstring.
|
||||
+# A docstring.
|
||||
|
||||
- Parameters:
|
||||
- **x** ("Mailbox") -- function
|
||||
- ''')
|
||||
- expected_contents = expected_contents.format(**format_args).replace('–', '--')
|
||||
- assert text_contents == expected_contents
|
||||
+# Parameters:
|
||||
+# **x** ("Mailbox") -- function
|
||||
+# ''')
|
||||
+# expected_contents = expected_contents.format(**format_args).replace('–', '--')
|
||||
+# assert text_contents == expected_contents
|
||||
9
dev-python/sphinx-autodoc-typehints/metadata.xml
Normal file
9
dev-python/sphinx-autodoc-typehints/metadata.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>andrewammerlaan@riseup.net</email>
|
||||
<name>Andrew Ammerlaan</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
||||
@@ -0,0 +1,25 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{6,7} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Type hints support for the Sphinx autodoc extension "
|
||||
HOMEPAGE="https://github.com/agronholm/sphinx-autodoc-typehints"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
KEYWORDS="~amd64 ~x86 "
|
||||
SLOT="0"
|
||||
|
||||
BDEPEND="dev-python/setuptools_scm[${PYTHON_USEDEP}]"
|
||||
|
||||
DEPEND="test? ( dev-python/sphobjinv[${PYTHON_USEDEP}]
|
||||
dev-python/typing-extensions[${PYTHON_USEDEP}] )"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
PATCHES="${FILESDIR}/${P}-skip-online-tests.patch"
|
||||
1
dev-python/sphinxcontrib-trio/Manifest
Normal file
1
dev-python/sphinxcontrib-trio/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST sphinxcontrib-trio-1.1.0.tar.gz 23372 BLAKE2B 3b9c651ea575efd53848135533e531f25aeb0b45ee3d57722e7bed324c13fe7bea5eb4a1ac529913a999241c3346f8eee3d6c5e68a2ac7a1676b1e721e3c923d SHA512 d7de31d396aaee2836f854bdeba75eb5748890428601ed9f6aca1386c8c7b347ff86680bbe7257387d461f2ebdd98a6145d4887277263d40fff5450cd31e38a1
|
||||
9
dev-python/sphinxcontrib-trio/metadata.xml
Normal file
9
dev-python/sphinxcontrib-trio/metadata.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>andrewammerlaan@riseup.net</email>
|
||||
<name>Andrew Ammerlaan</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
||||
@@ -0,0 +1,26 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{6,7,8} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Make Sphinx better at documenting Python functions and methods"
|
||||
HOMEPAGE="https://github.com/python-trio/sphinxcontrib-trio"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="|| ( Apache-2.0 MIT )"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
SLOT="0"
|
||||
|
||||
RDEPEND="dev-python/sphinx[${PYTHON_USEDEP}]"
|
||||
|
||||
DEPEND="test? (
|
||||
dev-python/contextlib2[${PYTHON_USEDEP}]
|
||||
dev-python/cssselect[${PYTHON_USEDEP}]
|
||||
dev-python/lxml[${PYTHON_USEDEP}] )"
|
||||
|
||||
distutils_enable_sphinx docs/source
|
||||
distutils_enable_tests pytest
|
||||
1
dev-python/sphobjinv/Manifest
Normal file
1
dev-python/sphobjinv/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST v2.0.1.tar.gz 1017678 BLAKE2B 31406b3dd93d1019dddc99464b8860df74bf76c40429aed73b80a95ed475787e1a9c93fe3dd68d1fce22d934bacab92893ca807c0d8d0f8fa4e5debbcbe7732f SHA512 49ad5a62f584b92e14630565b72d17a2f6e85feaf841c5f29e97f90b035c43e8a8a0773d6ec3cab1233f6cc613b04c8af6b48171202c1b9d694d172ed4c4f687
|
||||
9
dev-python/sphobjinv/metadata.xml
Normal file
9
dev-python/sphobjinv/metadata.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>andrewammerlaan@riseup.net</email>
|
||||
<name>Andrew Ammerlaan</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
||||
44
dev-python/sphobjinv/sphobjinv-2.0.1.ebuild
Normal file
44
dev-python/sphobjinv/sphobjinv-2.0.1.ebuild
Normal file
@@ -0,0 +1,44 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{6,7} )
|
||||
|
||||
DISTUTILS_USE_SETUPTOOLS=rdepend
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Sphinx objects.inv Inspection/Manipulation Tool"
|
||||
HOMEPAGE="https://github.com/bskinn/sphobjinv"
|
||||
SRC_URI="https://github.com/bskinn/${PN}/archive/v${PV}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
KEYWORDS="~amd64 ~x86 "
|
||||
SLOT="0"
|
||||
|
||||
RDEPEND="
|
||||
dev-python/attrs[${PYTHON_USEDEP}]
|
||||
dev-python/certifi[${PYTHON_USEDEP}]
|
||||
dev-python/fuzzywuzzy[${PYTHON_USEDEP}]
|
||||
dev-python/jsonschema[${PYTHON_USEDEP}]"
|
||||
|
||||
DEPEND="test? (
|
||||
dev-python/pytest-timeout[${PYTHON_USEDEP}]
|
||||
dev-python/pytest-subtests[${PYTHON_USEDEP}]
|
||||
dev-python/timeout-decorator[${PYTHON_USEDEP}]
|
||||
dev-python/stdio-mgr[${PYTHON_USEDEP}] )"
|
||||
|
||||
distutils_enable_sphinx doc/source dev-python/sphinx_rtd_theme dev-python/sphinx-issues
|
||||
distutils_enable_tests pytest
|
||||
|
||||
python_prepare_all() {
|
||||
# not sure why this fails
|
||||
rm tests/test_flake8_ext.py || die
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_test() {
|
||||
pytest -vv tests || die "Tests fail with ${EPYTHON}"
|
||||
}
|
||||
1
dev-python/spotipy/Manifest
Normal file
1
dev-python/spotipy/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST spotipy-2.9.0.tar.gz 81689 BLAKE2B 909e615c4dad90571c7aa4c1ce4512effffab34505b1193eca8694290fa937143bc4e90d69779f4e899fe0556626591078fcbc175c8d52427553de1b0dbcdd0e SHA512 ebfe8e4b31cb741fe5ddd5fae52d269e6e311d04aa6edc9d727d56bc32963b253db22ae3b43b0db10d1c55bd045439b0e74e0cfefab386e895730ac5cd10b110
|
||||
9
dev-python/spotipy/metadata.xml
Normal file
9
dev-python/spotipy/metadata.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>andrewammerlaan@riseup.net</email>
|
||||
<name>Andrew Ammerlaan</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
||||
49
dev-python/spotipy/spotipy-2.9.0.ebuild
Normal file
49
dev-python/spotipy/spotipy-2.9.0.ebuild
Normal file
@@ -0,0 +1,49 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{6,7,8} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="A light weight Python library for the Spotify Web API"
|
||||
HOMEPAGE="https://spotipy.readthedocs.io
|
||||
https://github.com/plamere/spotipy"
|
||||
SRC_URI="https://github.com/plamere/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
IUSE="examples"
|
||||
|
||||
LICENSE="MIT"
|
||||
KEYWORDS="~amd64 ~x86 "
|
||||
SLOT="0"
|
||||
|
||||
RDEPEND="
|
||||
dev-python/requests[${PYTHON_USEDEP}]
|
||||
dev-python/six[${PYTHON_USEDEP}]
|
||||
media-sound/spotify"
|
||||
|
||||
DEPEND="test? ( dev-python/mock[${PYTHON_USEDEP}] )"
|
||||
|
||||
distutils_enable_sphinx docs
|
||||
distutils_enable_tests pytest
|
||||
|
||||
python_prepare_all() {
|
||||
# this test requires user credentials
|
||||
rm tests/integration/test_user_endpoints.py || die
|
||||
|
||||
# this test requires a spotify client ID
|
||||
rm tests/integration/test_non_user_endpoints.py || die
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_test() {
|
||||
pytest -vv tests || die "Tests fail with ${EPYTHON}"
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use examples && dodoc -r examples
|
||||
|
||||
distutils-r1_python_install_all
|
||||
}
|
||||
1
dev-python/stdio-mgr/Manifest
Normal file
1
dev-python/stdio-mgr/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST stdio-mgr-1.0.1.tar.gz 8447 BLAKE2B 72038ea34177829d77ac239585775557b5a0a253879c027b2aad64045ec8bafbfdc250d94fe61cde96f06616f774edf42b384bfef7fbf69af442b0a9b703cf9a SHA512 2d18e5d65faa7a73373b56fdac3893768a65a36bed17f017b647e71431a6bff44ce1d39022f1dbbd31ddc9c0e704743a164f4b7610fb62d75aa34ecb53331366
|
||||
9
dev-python/stdio-mgr/metadata.xml
Normal file
9
dev-python/stdio-mgr/metadata.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>andrewammerlaan@riseup.net</email>
|
||||
<name>Andrew Ammerlaan</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
||||
22
dev-python/stdio-mgr/stdio-mgr-1.0.1.ebuild
Normal file
22
dev-python/stdio-mgr/stdio-mgr-1.0.1.ebuild
Normal file
@@ -0,0 +1,22 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{6,7,8} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Context manager for mocking/wrapping stdin/stdout/stderr"
|
||||
HOMEPAGE="https://github.com/bskinn/stdio-mgr"
|
||||
SRC_URI="https://github.com/bskinn/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
KEYWORDS="~amd64 ~x86 "
|
||||
SLOT="0"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
python_test() {
|
||||
pytest -vv tests || "Tests fail with ${EPYTHON}"
|
||||
}
|
||||
1
dev-python/tekore/Manifest
Normal file
1
dev-python/tekore/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST tekore-1.4.0.tar.gz 186665 BLAKE2B f3b06df721f76ac74e1dbe78292f94ab6f9d542031bbbb81e7ac7d4d55f2bd6607d136f5a8c0cadf86db95874e9dd99670567fe617b84f3ff8da5c741bc6dc15 SHA512 ba1036c6da0930c168f7f1112e671da3b1d0896d325a273d11120cd7c7515d1e680c8dfe855e7811928b381be769341d63aa87f32c6d992d30f45837ab51424d
|
||||
9
dev-python/tekore/metadata.xml
Normal file
9
dev-python/tekore/metadata.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>andrewammerlaan@riseup.net</email>
|
||||
<name>Andrew Ammerlaan</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
||||
41
dev-python/tekore/tekore-1.4.0.ebuild
Normal file
41
dev-python/tekore/tekore-1.4.0.ebuild
Normal file
@@ -0,0 +1,41 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_7 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Spotify Web API client"
|
||||
HOMEPAGE="https://tekore.readthedocs.io
|
||||
https://github.com/felix-hilden/tekore"
|
||||
SRC_URI="https://github.com/felix-hilden/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
SLOT="0"
|
||||
|
||||
distutils_enable_sphinx docs/src
|
||||
|
||||
# the enable_sphinx fucntion seems to act strange when there is only 1 PYTHON_COMPAT
|
||||
# repoman says:
|
||||
# dev-python/tekore/tekore-1.1.0.ebuild: BDEPEND: ~x86(default/linux/x86/17.0/systemd)
|
||||
# [ 'dev-python/sphinx[python_targets_python3_7(-),python_single_target_python3_7(+)]']
|
||||
# therefore we overwrite the deps that the function adds here:
|
||||
BDEPEND="doc? (
|
||||
dev-python/sphinx[${PYTHON_USEDEP}]
|
||||
dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}]
|
||||
dev-python/sphinx-autodoc-typehints[${PYTHON_USEDEP}] )"
|
||||
|
||||
RDEPEND="dev-python/requests[${PYTHON_USEDEP}]
|
||||
dev-python/httpx[${PYTHON_USEDEP}]
|
||||
media-sound/spotify"
|
||||
|
||||
DOCS="readme.rst"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
python_test() {
|
||||
pytest -vv tests/* || die "Tests fail with ${EPYTHON}"
|
||||
}
|
||||
1
dev-python/timeout-decorator/Manifest
Normal file
1
dev-python/timeout-decorator/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST timeout-decorator-0.4.1.tar.gz 4771 BLAKE2B b8f8b4d8c69f4f6195b769295abc6b8e037aa7a8ae58499803d6d6fc0721cf6daf8dd07b65a5585305c0d2188989edc88dd361a1572489dff3e59f6e4f2497e5 SHA512 8d70e0df1720f37f85ffbe71fdc467fc9e4dc704cd434f03d99bcce4cd6b41f45d337b3a0aaeb0526e99778ee3ae46637a76bf4f51e02fbb13e133598c2b791b
|
||||
9
dev-python/timeout-decorator/metadata.xml
Normal file
9
dev-python/timeout-decorator/metadata.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>andrewammerlaan@riseup.net</email>
|
||||
<name>Andrew Ammerlaan</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
||||
16
dev-python/timeout-decorator/timeout-decorator-0.4.1.ebuild
Normal file
16
dev-python/timeout-decorator/timeout-decorator-0.4.1.ebuild
Normal file
@@ -0,0 +1,16 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{6,7,8} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Timeout decorator"
|
||||
HOMEPAGE="https://github.com/pnpnpn/timeout-decorator"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
KEYWORDS="~amd64 ~x86 "
|
||||
SLOT="0"
|
||||
@@ -1 +0,0 @@
|
||||
DIST pybind11-2.3.0.tar.gz 564520 BLAKE2B a7c1485aa8f63a00eccd3103cf9f531a080b049be02e6182b30503ae6dd6c55fc517684ed9d92aaec244efd5f77336c68d1ea546833f7f0ae2fd7b090c19a02d SHA512 04542fe9dca2ffdb86c15698a4bbc041446a9f11970092e89a482ae0ff64c932f62fff8f437b98bdaa006c1fccabddd79f0c7e376f27daed2150b1d2f988e8aa
|
||||
@@ -1,12 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>waebbl@gmail.com</email>
|
||||
<name>Bernd Waibel</name>
|
||||
</maintainer>
|
||||
<longdescription>
|
||||
Lightweight header-only library that exposes C++ types in Python and
|
||||
vice versa, mainly to create Python bindings of existing C++ code.
|
||||
</longdescription>
|
||||
</pkgmetadata>
|
||||
@@ -1,94 +0,0 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
# According to upstream is compatible with 2.7 and 3.x
|
||||
# However support for python3_7 needs boost with python3_7
|
||||
PYTHON_COMPAT=( python{2_7,3_{5,6}} )
|
||||
|
||||
inherit cmake-utils python-single-r1
|
||||
|
||||
DESCRIPTION="Seamless operability between C++11 and Python"
|
||||
HOMEPAGE="https://pybind11.readthedocs.io/en/stable/"
|
||||
SRC_URI="https://github.com/pybind/pybind11/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
LICENSE="BSD"
|
||||
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
IUSE="doc test"
|
||||
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
DEPEND="
|
||||
${PYTHON_DEPS}
|
||||
doc? (
|
||||
dev-python/breathe[${PYTHON_USEDEP}]
|
||||
dev-python/sphinx[${PYTHON_USEDEP}]
|
||||
)
|
||||
test? (
|
||||
dev-cpp/catch:0
|
||||
dev-libs/boost:=[python,${PYTHON_USEDEP}]
|
||||
dev-python/numpy[${PYTHON_USEDEP}]
|
||||
dev-python/pytest[${PYTHON_USEDEP}]
|
||||
sci-libs/scipy[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
${PYTHON_DEPS}
|
||||
dev-cpp/eigen:3
|
||||
sys-apps/texinfo
|
||||
sys-devel/gettext[cxx]
|
||||
virtual/man
|
||||
"
|
||||
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
DOCS=( README.md CONTRIBUTING.md ISSUE_TEMPLATE.md )
|
||||
|
||||
pkg_setup() {
|
||||
python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
mycmakeargs=(
|
||||
-DPYBIND11_INSTALL=ON
|
||||
-DPYBIND11_TEST=$(usex test)
|
||||
)
|
||||
|
||||
cmake-utils_src_configure
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
cmake-utils_src_compile
|
||||
|
||||
# documentation is not covered by cmake, but has it's own makefile
|
||||
# using sphinx
|
||||
if use doc; then
|
||||
pushd "${S}"/docs || die
|
||||
emake info man html
|
||||
popd || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
cmake-utils_src_test
|
||||
pushd "${BUILD_DIR}" || die
|
||||
eninja check
|
||||
popd || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake-utils_src_install
|
||||
|
||||
if use doc; then
|
||||
local HTML_DOCS=( "${S}"/docs/.build/html/. )
|
||||
einstalldocs
|
||||
|
||||
# install man and info pages
|
||||
doman "${S}"/docs/.build/man/pybind11.1
|
||||
doinfo "${S}"/docs/.build/texinfo/pybind11.info
|
||||
fi
|
||||
}
|
||||
1
dev-vcs/git-blame-someone-else/Manifest
Normal file
1
dev-vcs/git-blame-someone-else/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST git-blame-someone-else-2018.06.13.tar.gz 1928 BLAKE2B 44dbc2ab1398612225b60b869f55a31cff8daa003c2d7f54ea4e149373883aae678bb32f6bc4dd0b0c9994b6faf8ea251ce34a5e7ad9f671a635d90c09866676 SHA512 2e857f2fa2a742d4a623ff6d019e2995cfb61bc540e610bac6b333bac1249e6a977380065aa08276e3b04f0c7c7a5b2c6ac7ba66f0c22e380f73c81777ee3d1c
|
||||
@@ -0,0 +1,28 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="7"
|
||||
|
||||
COMMIT="8d854c2d78cb98afdb9f5a73240e06393260b327"
|
||||
|
||||
SRC_URI="https://github.com/jayphelps/git-blame-someone-else/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||
DESCRIPTION="Blame someone else for your bad code."
|
||||
HOMEPAGE="https://github.com/jayphelps/git-blame-someone-else"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="
|
||||
dev-vcs/git
|
||||
"
|
||||
DEPEND=""
|
||||
|
||||
S="${WORKDIR}/${PN}-${COMMIT}"
|
||||
|
||||
src_install() {
|
||||
dobin "${PN}"
|
||||
einstalldocs
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="7"
|
||||
|
||||
inherit git-r3
|
||||
|
||||
DESCRIPTION="Blame someone else for your bad code."
|
||||
HOMEPAGE="https://github.com/jayphelps/git-blame-someone-else"
|
||||
EGIT_REPO_URI="https://github.com/jayphelps/git-blame-someone-else.git"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS=""
|
||||
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="
|
||||
dev-vcs/git
|
||||
"
|
||||
DEPEND=""
|
||||
|
||||
src_install() {
|
||||
dobin "${PN}"
|
||||
einstalldocs
|
||||
}
|
||||
11
dev-vcs/git-blame-someone-else/metadata.xml
Normal file
11
dev-vcs/git-blame-someone-else/metadata.xml
Normal file
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>lssndrbarbieri@gmail.com</email>
|
||||
<name>Alessandro Barbieri</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">jayphelps/git-blame-someone-else</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
1
dev-vcs/git-repo-updater/Manifest
Normal file
1
dev-vcs/git-repo-updater/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST git-repo-updater-0.5.1.tar.gz 11430 BLAKE2B bb18ff809e48c2b93aabd287477436ca8140071c61d9266a048758d8d3acd207b601d2f534be22615f9de804a69c37101fbafd4fd8d82da4f9c67f09c9cdd44e SHA512 189717859050ecfb3533f0fed694c3d9674108c4d31dc71036ab04f9f0403bbdd92909995e0de81044581d278bd984ac698ea235db093ccd0c032a8a741c5918
|
||||
25
dev-vcs/git-repo-updater/git-repo-updater-0.5.1.ebuild
Normal file
25
dev-vcs/git-repo-updater/git-repo-updater-0.5.1.ebuild
Normal file
@@ -0,0 +1,25 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="7"
|
||||
|
||||
PYTHON_COMPAT=( python3_{6,7} )
|
||||
|
||||
DISTUTILS_USE_SETUPTOOLS=rdepend
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Easily update multiple git repositories at once"
|
||||
HOMEPAGE="https://github.com/earwig/git-repo-updater"
|
||||
SRC_URI="https://github.com/earwig/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/colorama-0.3.9[${PYTHON_USEDEP}]
|
||||
>=dev-python/git-python-2.1.8[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
17
dev-vcs/git-repo-updater/metadata.xml
Normal file
17
dev-vcs/git-repo-updater/metadata.xml
Normal file
@@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>lssndrbarbieri@gmail.com</email>
|
||||
<name>Alessandro Barbieri</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">earwig/git-repo-updater</remote-id>
|
||||
</upstream>
|
||||
<longdescription lang="en">
|
||||
gitup is a tool for updating multiple git repositories at once. It is smart
|
||||
enough to handle several remotes, dirty working directories, diverged local
|
||||
branches, detached HEADs, and more. It was originally created to manage a
|
||||
large collection of projects and deal with sporadic internet access.
|
||||
</longdescription>
|
||||
</pkgmetadata>
|
||||
23
licenses/meschach
Normal file
23
licenses/meschach
Normal file
@@ -0,0 +1,23 @@
|
||||
/**************************************************************************
|
||||
**
|
||||
** Copyright (C) 1993 David E. Steward & Zbigniew Leyk, all rights reserved.
|
||||
**
|
||||
** Meschach Library
|
||||
**
|
||||
** This Meschach Library is provided "as is" without any express
|
||||
** or implied warranty of any kind with respect to this software.
|
||||
** In particular the authors shall not be liable for any direct,
|
||||
** indirect, special, incidental or consequential damages arising
|
||||
** in any way from use of the software.
|
||||
**
|
||||
** Everyone is granted permission to copy, modify and redistribute this
|
||||
** Meschach Library, provided:
|
||||
** 1. All copies contain this copyright notice.
|
||||
** 2. All modified copies shall carry a notice stating who
|
||||
** made the last modification and the date of such modification.
|
||||
** 3. No charge is made for this software or works derived from it.
|
||||
** This clause shall not be construed as constraining other software
|
||||
** distributed on the same medium as this software, nor is a
|
||||
** distribution fee considered a charge.
|
||||
**
|
||||
***************************************************************************/
|
||||
22
licenses/noweb
Normal file
22
licenses/noweb
Normal file
@@ -0,0 +1,22 @@
|
||||
Noweb is copyright 1989-2000 by Norman Ramsey. All rights reserved.
|
||||
|
||||
Noweb is protected by copyright. It is not public-domain
|
||||
software or shareware, and it is not protected by a ``copyleft''
|
||||
agreement like the one used by the Free Software Foundation.
|
||||
|
||||
Noweb is available free for any use in any field of endeavor. You may
|
||||
redistribute noweb in whole or in part provided you acknowledge its
|
||||
source and include this COPYRIGHT file. You may modify noweb and
|
||||
create derived works, provided you retain this copyright notice, but
|
||||
the result may not be called noweb without my written consent.
|
||||
|
||||
You may sell noweb if you wish. For example, you may sell a CD-ROM
|
||||
including noweb.
|
||||
|
||||
You may sell a derived work, provided that all source code for your
|
||||
derived work is available, at no additional charge, to anyone who buys
|
||||
your derived work in any form. You must give permisson for said
|
||||
source code to be used and modified under the terms of this license.
|
||||
You must state clearly that your work uses or is based on noweb and
|
||||
that noweb is available free of change. You must also request that
|
||||
bug reports on your work be reported to you.
|
||||
1
media-video/vidify-audiosync/Manifest
Normal file
1
media-video/vidify-audiosync/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST vidify-audiosync-0.2.tar.gz 61853349 BLAKE2B f23f84625cd5efc577ff366f3d9938704230606268618be0629dd91875c626d762d359a48fee7ed5caef70bb4e678c37c0d90dcce94454a3f301a0499c862f1a SHA512 8dd619f7a34bc69ed1623d122de0fe30a8ce80ab6dc4929f3e23a2a399232a0e77ce18e439788722b2f83205a0b9634f0ae8a9f76d937173ee2874ec7750688f
|
||||
9
media-video/vidify-audiosync/metadata.xml
Normal file
9
media-video/vidify-audiosync/metadata.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>andrewammerlaan@riseup.net</email>
|
||||
<name>Andrew Ammerlaan</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
||||
41
media-video/vidify-audiosync/vidify-audiosync-0.2.ebuild
Normal file
41
media-video/vidify-audiosync/vidify-audiosync-0.2.ebuild
Normal file
@@ -0,0 +1,41 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_7 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Audio synchronization feature for vidify "
|
||||
HOMEPAGE="https://github.com/vidify/audiosync"
|
||||
SRC_URI="https://github.com/vidify/audiosync/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
IUSE="debug"
|
||||
|
||||
RDEPEND="
|
||||
media-sound/pulseaudio
|
||||
media-video/ffmpeg[openssl]
|
||||
media-video/vidify[${PYTHON_USEDEP}]
|
||||
sci-libs/fftw
|
||||
debug? ( sci-visualization/gnuplot )"
|
||||
|
||||
S="${WORKDIR}/audiosync-${PV}"
|
||||
|
||||
src_prepare() {
|
||||
use debug && sed -i -e "/defines.append(('DEBUG', '1'))/s/^# *//" setup.py
|
||||
default
|
||||
}
|
||||
|
||||
src_test() {
|
||||
mkdir test_build
|
||||
cd test_build
|
||||
cmake .. -DBUILD_TESTING=YES
|
||||
emake
|
||||
emake test
|
||||
cd ..
|
||||
}
|
||||
1
media-video/vidify/Manifest
Normal file
1
media-video/vidify/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST vidify-2.1.0.tar.gz 2332514 BLAKE2B c3199cd20de6e306406482a15addaf1875630c61271ea04b4a0c283d14030102eced6428e2dc8945ab482af6c81f94c51742983e9a9b6581b3aac60bd1c942f6 SHA512 e1a7d60caacd30d68fc8b1ebf3ea30a0527218257fe762989dd8ca5213beb247c300a7ffafe68554c88a1f3bb2a054a555fe15a66a727c57911f1f545e8d0297
|
||||
13
media-video/vidify/metadata.xml
Normal file
13
media-video/vidify/metadata.xml
Normal file
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>andrewammerlaan@riseup.net</email>
|
||||
<name>Andrew Ammerlaan</name>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name="vlc">Use python-vlc as backend for vidify</flag>
|
||||
<flag name="mpv">Use python-mpv as backend for vidify</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user