From: "Dennis Lamm" <expeditioneer@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/autoprop/
Date: Wed, 16 Sep 2020 04:33:53 +0000 (UTC) [thread overview]
Message-ID: <1600230798.f069a04345ecd3c1040c82711da214f9d239a146.expeditioneer@gentoo> (raw)
commit: f069a04345ecd3c1040c82711da214f9d239a146
Author: Dennis Lamm <expeditioneer <AT> gentoo <DOT> org>
AuthorDate: Tue Sep 15 18:43:58 2020 +0000
Commit: Dennis Lamm <expeditioneer <AT> gentoo <DOT> org>
CommitDate: Wed Sep 16 04:33:18 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f069a043
dev-python/autoprop: new package
Signed-off-by: Dennis Lamm <expeditioneer <AT> gentoo.org>
Closes: https://github.com/gentoo/gentoo/pull/17559
Signed-off-by: Dennis Lamm <expeditioneer <AT> gentoo.org>
dev-python/autoprop/Manifest | 1 +
dev-python/autoprop/autoprop-1.0.2.ebuild | 18 ++++++++++++++++++
dev-python/autoprop/metadata.xml | 24 ++++++++++++++++++++++++
3 files changed, 43 insertions(+)
diff --git a/dev-python/autoprop/Manifest b/dev-python/autoprop/Manifest
new file mode 100644
index 00000000000..6ca9ddbb732
--- /dev/null
+++ b/dev-python/autoprop/Manifest
@@ -0,0 +1 @@
+DIST autoprop-1.0.2.tar.gz 11040 BLAKE2B b53bdbf79947002a0c319fa84c6033908948365d18a85dd2fd4139bff2125752e0bc3fc8f19e5d38c06cdc089f423cc8a720b8040593cfbda9c04c84b7cd4ffd SHA512 281c30fded6d79ed3bbb0de5b7a37c2cc5b985a4980974503b5bbb5940cd22f3c09c3b3d9d513d5cb95239519519b277bf43536407fedb593a43122ee32a8db6
diff --git a/dev-python/autoprop/autoprop-1.0.2.ebuild b/dev-python/autoprop/autoprop-1.0.2.ebuild
new file mode 100644
index 00000000000..03d8f7babb8
--- /dev/null
+++ b/dev-python/autoprop/autoprop-1.0.2.ebuild
@@ -0,0 +1,18 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{6..9} )
+
+inherit distutils-r1
+
+DESCRIPTION="Infer properties from accessor methods"
+HOMEPAGE="https://github.com/kalekundert/autoprop https://pypi.org/project/autoprop/"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+LICENSE="MIT"
+
+KEYWORDS="~amd64"
+SLOT="0"
+
+distutils_enable_tests pytest
diff --git a/dev-python/autoprop/metadata.xml b/dev-python/autoprop/metadata.xml
new file mode 100644
index 00000000000..3b6fefbcfe3
--- /dev/null
+++ b/dev-python/autoprop/metadata.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>3dprint@gentoo.org</email>
+ <name>Gentoo 3D Printer Project</name>
+ </maintainer>
+ <longdescription>
+ Properties are a feature in python that allow accessor functions (i.e. getters and setters) to masquerade as
+ regular attributes. This makes it possible to provide transparent APIs for classes that need to cache results,
+ lazily load data, maintain invariants, or react in any other way to attribute access.
+
+ Unfortunately, making a property requires an annoying amount of boilerplate code. There are a few ways to
+ do it, but the most common and most succinct requires you to decorate two functions
+ (with two different decorators) and to type the name of the attribute three times.
+
+ The autoprop module simplifies this process by searching your class for accessor methods and adding properties
+ corresponding to any such methods it finds.
+ </longdescription>
+ <upstream>
+ <remote-id type="github">kalekundert/autoprop</remote-id>
+ <remote-id type="pypi">autoprop</remote-id>
+ </upstream>
+</pkgmetadata>
next reply other threads:[~2020-09-16 4:33 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-16 4:33 Dennis Lamm [this message]
-- strict thread matches above, loose matches on Subject: below --
2021-03-15 2:55 [gentoo-commits] repo/gentoo:master commit in: dev-python/autoprop/ Sam James
2021-03-30 7:17 Michał Górny
2021-03-30 7:17 Michał Górny
2021-04-01 16:17 Michał Górny
2021-04-02 8:51 Michał Górny
2021-04-06 7:22 Michał Górny
2021-05-27 22:47 Michał Górny
2021-09-11 6:53 Michał Górny
2021-09-11 6:53 Michał Górny
2021-09-16 6:53 Michał Górny
2021-10-17 7:33 Michał Górny
2022-01-29 11:51 Michał Górny
2022-04-11 7:53 Michał Górny
2022-05-31 6:18 Michał Górny
2022-06-16 8:04 Michał Górny
2023-03-16 3:44 Michał Górny
2023-07-27 15:57 Michał Górny
2023-11-23 20:20 Michał Górny
2024-06-18 16:57 Michał Górny
2024-06-18 16:57 Michał Górny
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=1600230798.f069a04345ecd3c1040c82711da214f9d239a146.expeditioneer@gentoo \
--to=expeditioneer@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