Bug 211047 - [NEW PORT] devel/py-darts.util.lru: Simple dictionary with LRU behaviour in Python
Summary: [NEW PORT] devel/py-darts.util.lru: Simple dictionary with LRU behaviour in P...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Kurt Jaeger
URL:
Keywords:
Depends on:
Blocks: 211061
  Show dependency treegraph
 
Reported: 2016-07-12 21:11 UTC by Danilo G. Baio
Modified: 2016-07-13 05:27 UTC (History)
1 user (show)

See Also:


Attachments
py-darts.util.lru.shar (1.65 KB, text/plain)
2016-07-12 21:11 UTC, Danilo G. Baio
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Danilo G. Baio freebsd_committer freebsd_triage 2016-07-12 21:11:46 UTC
Created attachment 172428 [details]
py-darts.util.lru.shar

It's a simple dictionary with LRU behaviour in Python.
An LRUDict is basically a simple dictionary, which has a defined
maximum capacity, that may be supplied at construction time, or
modified at run-time via the capacity property.

This port will be used as a dependency for security/w3af.

- portlint compliant
- poudriere tests ok FreeBSD 9.3|10.3|11 - i386|amd64

Poudriere output as example:

build started at Tue Jul 12 18:05:51 BRT 2016
port directory: /usr/ports/devel/py-darts.util.lru
building for: FreeBSD 93i386-ports_dbaio 9.3-RELEASE-p42 FreeBSD 9.3-RELEASE-p42 i386
maintained by: dbaio@bsd.com.br
ident warning: no id keywords in /usr/local/poudriere/data/.m/93i386-ports_dbaio/ref//usr/ports/devel/py-darts.util.lru/Makefile
Makefile ident: 
Poudriere version: 3.2-pre
Host OSVERSION: 1100120
Jail OSVERSION: 903000
[...]
===========================================================================
====> Running Q/A tests (stage-qa)
====> Checking for pkg-plist issues (check-plist)
===> Parsing plist
===> Checking for items in STAGEDIR missing from pkg-plist
===> Checking for items in pkg-plist which are not in STAGEDIR
===> No pkg-plist issues found (check-plist)
====>> Checking for staging violations... done
=======================<phase: package        >============================
===>  Building package for py27-darts.util.lru-0.5
===========================================================================
=======================<phase: install-mtree  >============================
===========================================================================
====>> Recording filesystem state for preinst... done
=======================<phase: install        >============================
===>  Installing for py27-darts.util.lru-0.5
===>   py27-darts.util.lru-0.5 depends on package: py27-setuptools27>0 - found
===>   py27-darts.util.lru-0.5 depends on file: /usr/local/bin/python2.7 - found
===>  Checking if py27-darts.util.lru already installed
===>   Registering installation for py27-darts.util.lru-0.5
[93i386-ports_dbaio] Installing py27-darts.util.lru-0.5...
===========================================================================
====>> Checking shared library dependencies
=======================<phase: deinstall      >============================
===>  Deinstalling for py27-darts.util.lru
===>   Deinstalling py27-darts.util.lru-0.5
Updating database digests format: ........ done
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 1 packages (of 0 packages in the universe):

Installed packages to be REMOVED:
	py27-darts.util.lru-0.5

Number of packages to be removed: 1
[93i386-ports_dbaio] [1/1] Deinstalling py27-darts.util.lru-0.5...
[93i386-ports_dbaio] [1/1] Deleting files for py27-darts.util.lru-0.5: .......... done
===========================================================================
====>> Checking for extra files and directories
[00:00:41] ====>> Installing from package
[93i386-ports_dbaio] Installing py27-darts.util.lru-0.5...
[93i386-ports_dbaio] Extracting py27-darts.util.lru-0.5: .......... done
[00:00:41] ====>> Cleaning up
===>  Cleaning for py27-darts.util.lru-0.5
[00:00:42] ====>> Deinstalling package
Updating database digests format: . done
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 1 packages (of 0 packages in the universe):

Installed packages to be REMOVED:
	py27-darts.util.lru-0.5

Number of packages to be removed: 1
[93i386-ports_dbaio] [1/1] Deinstalling py27-darts.util.lru-0.5...
[93i386-ports_dbaio] [1/1] Deleting files for py27-darts.util.lru-0.5: .......... done
build of devel/py-darts.util.lru ended at Tue Jul 12 18:06:24 BRT 2016
build time: 00:00:33
Comment 1 commit-hook freebsd_committer freebsd_triage 2016-07-13 05:26:40 UTC
A commit references this bug:

Author: pi
Date: Wed Jul 13 05:26:30 UTC 2016
New revision: 418461
URL: https://svnweb.freebsd.org/changeset/ports/418461

Log:
  New port: devel/py-darts.util.lru

  A LRUDict is basically a simple dictionary, which has a defined
  maximum capacity, that may be supplied at construction time, or
  modified at run-time via the capacity property:
  >>> cache = LRUDict(1)
  >>> cache.capacity
  1

  WWW: https://pypi.python.org/pypi/darts.util.lru

  PR:		211047
  Submitted by:	Danilo G. Baio <dbaio@bsd.com.br>

Changes:
  head/devel/Makefile
  head/devel/py-darts.util.lru/
  head/devel/py-darts.util.lru/Makefile
  head/devel/py-darts.util.lru/distinfo
  head/devel/py-darts.util.lru/pkg-descr
Comment 2 Kurt Jaeger freebsd_committer freebsd_triage 2016-07-13 05:27:59 UTC
Committed, thanks!