Port details |
- py-autoprop Infer properties from accessor methods
- 1.0.1 devel
=0 Version of this port present on the latest quarterly branch. - Maintainer: db@FreeBSD.org
 - Port Added: 2020-03-20 14:43:23
- Last Update: 2023-01-11 15:58:34
- Commit Hash: 77d6847
- Also Listed In: python
- License: MIT
- Description:
- 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:
¦ ¦ ¦ ¦ 
- pkg-plist: as obtained via:
make generate-plist - There is no configure plist information for this port.
- Dependency lines:
-
- ${PYTHON_PKGNAMEPREFIX}autoprop>0:devel/py-autoprop@${PY_FLAVOR}
- To install the port:
- cd /usr/ports/devel/py-autoprop/ && make install clean
- To add the package, run one of these commands:
- pkg install devel/py-autoprop
- pkg install py39-autoprop
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above. NOTE: This is a Python port. Instead of py39-autoprop listed in the above command, you can pick from the names under the Packages section.- PKGNAME: py39-autoprop
- Package flavors (<flavor>: <package>)
- distinfo:
- TIMESTAMP = 1584714989
SHA256 (autoprop-1.0.1.tar.gz) = 012b74405dc02c7527366d351bb85397b8964446b601c956594e4eae405837da
SIZE (autoprop-1.0.1.tar.gz) = 14685
Packages (timestamps in pop-ups are UTC):
- Dependencies
- NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
- Build dependencies:
-
- py39-setuptools>=63.1.0 : devel/py-setuptools@py39
- python3.9 : lang/python39
- Test dependencies:
-
- python3.9 : lang/python39
- Runtime dependencies:
-
- py39-setuptools>=63.1.0 : devel/py-setuptools@py39
- python3.9 : lang/python39
- This port is required by:
- for Build
-
- graphics/py-glooey
Configuration Options:
- No options to configure
- Options name:
- devel_py-autoprop
- USES:
- python:3.5+
- FreshPorts was unable to extract/find any pkg message
- Master Sites:
|
Notes from UPDATING |
- These upgrade notes are taken from /usr/ports/UPDATING
- 2017-11-30
Affects: */py* Author: mat@FreeBSD.org Reason:
Ports using Python via USES=python are now flavored. All the py3-* ports
have been removed and folded into their py-* master ports.
People using Poudriere 3.2+ and binary packages do not have to do anything.
For other people, to build the Python 3.6 version of, for example,
databases/py-gdbm, you need to run:
# make FLAVOR=py36 install
|
Number of commits found: 7
Commit History - (may be incomplete: for full details, see links to repositories near top of page) |
Commit | Credits | Log message |
1.0.1 11 Jan 2023 15:58:34
    |
Dmitry Marakasov (amdmi3)  |
*/*: rename CHEESESHOP to PYPI in MASTER_SITES
PR: 267994
Differential revision: D37518
Approved by: bapt |
07 Sep 2022 21:58:51
    |
Stefan Eßer (se)  |
Remove WWW entries moved into port Makefiles
Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.
This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.
Approved by: portmgr (tcberner) |
1.0.1 07 Sep 2022 21:10:59
    |
Stefan Eßer (se)  |
Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.
Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.
There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above ) |
1.0.1 07 Apr 2021 08:09:01
    |
Mathieu Arnold (mat)  |
One more small cleanup, forgotten yesterday.
Reported by: lwhsu |
1.0.1 06 Apr 2021 14:31:07
    |
Mathieu Arnold (mat)  |
Remove # $FreeBSD$ from Makefiles. |
1.0.1 20 Mar 2020 16:23:28
  |
db  |
Wrong COMMENT
Should have been "Infer properties from accessor methods" |
1.0.1 20 Mar 2020 14:43:18
  |
db  |
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:
WWW: https://pypi.org/project/autoprop/ |
Number of commits found: 7
|