From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:master commit in: dev-python/databases/
Date: Tue, 24 Mar 2020 16:37:39 +0000 (UTC) [thread overview]
Message-ID: <1584558778.5e51e6394f902af5039ba0730bc40d164e16345b.mgorny@gentoo> (raw)
commit: 5e51e6394f902af5039ba0730bc40d164e16345b
Author: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
AuthorDate: Wed Mar 18 18:56:15 2020 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Mar 18 19:12:58 2020 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=5e51e639
dev-python/databases: enable docs
also made attempt to fix tests
but looks like we need to download something
see ebuild for comments
Package-Manager: Portage-2.3.94, Repoman-2.3.21
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net>
dev-python/databases/Manifest | 2 +-
dev-python/databases/databases-0.3.0.ebuild | 60 +++++++++++++++++++++--------
2 files changed, 45 insertions(+), 17 deletions(-)
diff --git a/dev-python/databases/Manifest b/dev-python/databases/Manifest
index 18f0f24..00a039d 100644
--- a/dev-python/databases/Manifest
+++ b/dev-python/databases/Manifest
@@ -1 +1 @@
-DIST 0.3.0.tar.gz 23741 BLAKE2B 7bd8bb90fea8d86409b060ed8d5bf54b7fcbdcea4b6e8bae5a447d85f392cb5b49951da082f87e71d2cf6918284556121d0ef602a1ca91f4d21f630019457b84 SHA512 8857d376f3a11a3c0ff28e810d9f79dde726762a4d36995ae95110ac66ed9304dd4e96c11ec897e11c95db0312f3da749ae0f5eb8fd6a4a6550d8429b61b6339
+DIST databases-0.3.0.tar.gz 23741 BLAKE2B 7bd8bb90fea8d86409b060ed8d5bf54b7fcbdcea4b6e8bae5a447d85f392cb5b49951da082f87e71d2cf6918284556121d0ef602a1ca91f4d21f630019457b84 SHA512 8857d376f3a11a3c0ff28e810d9f79dde726762a4d36995ae95110ac66ed9304dd4e96c11ec897e11c95db0312f3da749ae0f5eb8fd6a4a6550d8429b61b6339
diff --git a/dev-python/databases/databases-0.3.0.ebuild b/dev-python/databases/databases-0.3.0.ebuild
index f4faf73..bcf028f 100644
--- a/dev-python/databases/databases-0.3.0.ebuild
+++ b/dev-python/databases/databases-0.3.0.ebuild
@@ -3,45 +3,73 @@
EAPI=7
-PYTHON_COMPAT=( python3_{6,7,8} pypy3 )
+PYTHON_COMPAT=( python3_6 )
inherit distutils-r1 eutils
DESCRIPTION="Async database support for Python."
HOMEPAGE="
- https://www.encode.io/databases/
- https://github.com/encode/databases
+ https://www.encode.io/databases/
+ https://github.com/encode/databases
"
-# SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" # 0.3.0 is missing for now so using github temporary
-SRC_URI="https://github.com/encode/${PN}/archive/${PV}.tar.gz"
+SRC_URI="https://github.com/encode/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
+IUSE="doc"
+REQUIRED_USE="x86? ( !doc )"
+
+# Requires 'TEST_DATABASE_URLS' to be set
+# but to what, there is no documentation on this
+# besides this looks like it requires internet so it will fail anyway
+# To fix this, the whole 'TEST_DATABASE_URLS' stuff should probably be commented out
+# or we download whatever 'TEST_DATABASE_URLS' is supposed to point at and the variable
+# to that local directory
+RESTRICT="test"
+
RDEPEND=">=dev-python/sqlalchemy-1.3.0[${PYTHON_USEDEP}]
- $(python_gen_cond_dep 'dev-python/aiocontextvars[${PYTHON_USEDEP}]' 'python3_6')"
+ $(python_gen_cond_dep 'dev-python/aiocontextvars[${PYTHON_USEDEP}]' 'python3_6')"
+
+BDEPEND="doc? ( !x86? (
+ dev-python/mkdocs
+ dev-python/mkdocs-material ) )"
# autoflake, codecov also required for tests?
-DEPEND="test? ( dev-python/black[${PYTHON_USEDEP}]
- dev-python/isort[${PYTHON_USEDEP}]
- dev-python/mypy[${PYTHON_USEDEP}]
- dev-python/starlette[${PYTHON_USEDEP}]
- dev-python/pytest-cov[${PYTHON_USEDEP}]
- dev-python/requests[${PYTHON_USEDEP}] )"
+DEPEND="test? (
+ dev-python/aiomysql[${PYTHON_USEDEP}]
+ dev-python/aiopg[${PYTHON_USEDEP}]
+ dev-python/aiosqlite[${PYTHON_USEDEP}]
+ dev-python/asyncpg[${PYTHON_USEDEP}]
+ dev-python/black[${PYTHON_USEDEP}]
+ dev-python/isort[${PYTHON_USEDEP}]
+ dev-python/mypy[${PYTHON_USEDEP}]
+ dev-python/psycopg[${PYTHON_USEDEP}]
+ dev-python/pymysql[${PYTHON_USEDEP}]
+ dev-python/starlette[${PYTHON_USEDEP}]
+ dev-python/requests[${PYTHON_USEDEP}] )"
python_prepare_all() {
- # do not install LICENSE to /usr/
+ # do not install LICENSE to /usr/
sed -i -e '/data_files/d' setup.py || die
- distutils-r1_python_prepare_all
+ distutils-r1_python_prepare_all
+}
+
+python_compile_all() {
+ default
+ if use doc; then
+ mkdocs build || die "failed to make docs"
+ HTML_DOCS="site"
+ fi
}
pkg_postinst() {
- optfeature "postgresql support" dev-python/asyncpg dev-python/psycopg
+ optfeature "postgresql support" dev-python/asyncpg dev-python/psycopg
optfeature "mysql support" dev-python/aiomysql dev-python/pymysql
optfeature "sqlite support" dev-python/aiosqlite
- optfeature "postgresql+aiopg support" dev-python/aiopg
+ optfeature "postgresql+aiopg support" dev-python/aiopg
}
distutils_enable_tests pytest
next reply other threads:[~2020-03-24 16:37 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-24 16:37 Michał Górny [this message]
-- strict thread matches above, loose matches on Subject: below --
2020-03-24 16:37 [gentoo-commits] repo/proj/guru:master commit in: dev-python/databases/ Michał Górny
2020-05-01 15:39 Andrew Ammerlaan
2020-05-02 10:00 Andrew Ammerlaan
2020-09-24 12:50 [gentoo-commits] repo/proj/guru:dev " Andrew Ammerlaan
2020-09-24 13:01 ` [gentoo-commits] repo/proj/guru:master " Andrew Ammerlaan
2020-09-24 12:50 [gentoo-commits] repo/proj/guru:dev " Andrew Ammerlaan
2020-09-24 13:01 ` [gentoo-commits] repo/proj/guru:master " Andrew Ammerlaan
2020-12-18 16:26 Andrew Ammerlaan
2021-05-26 13:42 Andrew Ammerlaan
2021-06-09 3:39 Theo Anderson
2022-05-12 9:14 Andrew Ammerlaan
2022-07-03 11:40 [gentoo-commits] repo/proj/guru:dev " Andrew Ammerlaan
2022-07-03 11:40 ` [gentoo-commits] repo/proj/guru:master " Andrew Ammerlaan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1584558778.5e51e6394f902af5039ba0730bc40d164e16345b.mgorny@gentoo \
--to=mgorny@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox