Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Jan 2019 13:27:35 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 234939] [NEW PORT] devel/py-aenum  Advanced Enumerations compatible with stdlib Enum
Message-ID:  <bug-234939-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D234939

            Bug ID: 234939
           Summary: [NEW PORT] devel/py-aenum  Advanced Enumerations
                    compatible with stdlib Enum
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: a.wolk@fudosecurity.com

Created attachment 201123
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D201123&action=
=3Dedit
svn diff of the new port

Hi ports@,

I'm attaching a new port for a python enum compatibility module for python<=
3.6
(but it also works fine in 3.6 on it's own).

This is required for some projects (like /usr/ports/datbase/pglast) when us=
ed
in combination with an older python than 3.6 - otherwise a runtime import e=
rror
would occur due to missing compat dependencies.

Work sponsored by: Fudo Security

pkg-descr:
Advanced Enumerations (compatible with Python's stdlib Enum), NamedTuples, =
and
NamedConstants

aenum includes a Python stdlib Enum-compatible data type, as well as a
metaclass-based NamedTuple implementation and a NamedConstant class.

An Enum is a set of symbolic names (members) bound to unique, constant valu=
es.
Within an enumeration, the members can be compared by identity, and the
enumeration itself can be iterated over. If using Python 3 there is built-in
support for unique values, multiple values, auto-numbering, and suspension
of aliasing (members with the same value are not identical), plus the
ability to have values automatically bound to attributes.

A NamedTuple is a class-based, fixed-length tuple with a name for each poss=
ible
position accessible using attribute-access notation as well as the standard
index notation.

A NamedConstant is a class whose members cannot be rebound; it lacks all ot=
her
Enum capabilities, however; consequently, it can have duplicate values.

WWW: https://bitbucket.org/stoneleaf/aenum

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-234939-7788>