Bug 229500 - [NEW PORT] devel/py-yg.lockfile: Provides lockfile objects with timeouts and context manager
Summary: [NEW PORT] devel/py-yg.lockfile: Provides lockfile objects with timeouts and ...
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: Martin Wilke
URL: https://pypi.org/project/yg.lockfile
Keywords:
Depends on: 229476
Blocks:
  Show dependency treegraph
 
Reported: 2018-07-03 18:40 UTC by Kai Knoblich
Modified: 2018-07-28 12:20 UTC (History)
2 users (show)

See Also:


Attachments
py-yg.lockfile.patch (2.74 KB, patch)
2018-07-03 18:40 UTC, Kai Knoblich
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kai Knoblich freebsd_committer freebsd_triage 2018-07-03 18:40:14 UTC
Created attachment 194864 [details]
py-yg.lockfile.patch

Hello,

attached is the patch that adds the Python package devel/py-yg.lockfile, that provides a FileLock class that implements a context manager with timeouts on top of zc.lockfile, an excellent, cross-platorm implementation of file locking.

QA:
~~~
- poudriere (11.2-RELEASE amd64 + i386) for each py27 + py36 flavor -> OK
- portlint -> OK


Note:
Before this port can be added the following Python package must be upgraded first:
devel/py-jaraco.functools (see also PR #229476: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=229476)
Comment 1 commit-hook freebsd_committer freebsd_triage 2018-07-28 12:16:42 UTC
A commit references this bug:

Author: miwi
Date: Sat Jul 28 12:16:31 UTC 2018
New revision: 475542
URL: https://svnweb.freebsd.org/changeset/ports/475542

Log:
  Python library to parse and apply unified diffs.

  Features:

  - Automatic correction of
      * Linefeeds according to patched file
      * Diffs broken by stripping trailing whitespace
      * a/ and b/ prefixes
  - Single file, which is a command line tool and a library
  - No dependencies outside Python stdlib
  - Patch format detection (SVN, HG, GIT)
  - Nice diffstat histogram

  Things that don't work out of the box:

  - File renaming, creation and removal
  - Directory tree operations
  - Version control specific properties
  - Non-unified diff formats

  WWW: https://github.com/techtonik/python-patch

  PR:		229500
  Submitted by:	freebsd_ports@k-worx.org
  Sponsored by:	iXsystems Inc.

Changes:
  head/devel/Makefile
  head/devel/py-patch/
  head/devel/py-patch/Makefile
  head/devel/py-patch/distinfo
  head/devel/py-patch/pkg-descr
Comment 2 commit-hook freebsd_committer freebsd_triage 2018-07-28 12:20:47 UTC
A commit references this bug:

Author: miwi
Date: Sat Jul 28 12:20:30 UTC 2018
New revision: 475543
URL: https://svnweb.freebsd.org/changeset/ports/475543

Log:
  This package provides a FileLock class that implements a context manager with
  timeouts on top of zc.lockfile, an excellent, cross-platorm implementation of
  file locking.

  WWW: https://github.com/yougov/yg.lockfile

  PR:		229500
  Submitted by:	freebsd_ports@k-worx.org
  Sponsored by:	iXsystems Inc.

Changes:
  head/devel/Makefile
  head/devel/py-yg.lockfile/
  head/devel/py-yg.lockfile/Makefile
  head/devel/py-yg.lockfile/distinfo
  head/devel/py-yg.lockfile/pkg-descr