Bug 229526 - [NEW PORT] devel/py-banal: Commons of banal micro-functions for Python
Summary: [NEW PORT] devel/py-banal: Commons of banal micro-functions for Python
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/banal/
Keywords:
Depends on:
Blocks: 229527
  Show dependency treegraph
 
Reported: 2018-07-05 05:06 UTC by Kai Knoblich
Modified: 2018-07-28 12:21 UTC (History)
2 users (show)

See Also:


Attachments
py-banal.patch (2.73 KB, patch)
2018-07-05 05:06 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-05 05:06:31 UTC
Created attachment 194886 [details]
py-banal.patch

Hello,

attached is the patch that adds the Python package devel/py-banal, which provides a commons of Python micro-functions. This is basically an out-sourced, shared utils module.

Rules:

- Must work in Python 2 and Python 3
- Cannot depend on anything but six and the standard library

Functions:

- is_sequence: check if something is list-ish
- is_mapping: check if an object is dict-ish
- ensure_list: make sure an argument is a list, or make it into a single-element
               list
- clean_dict: remove null values from a dict, recursively
- decode_path: decode a path name to be unicode
- hash_data: generate a SHA1 from a dict of reasonable objects

QA:
~~~
- poudriere (11.2-RELEASE amd64 + i386) for each py27 + py36 flavor
- portlint -> OK
Comment 1 commit-hook freebsd_committer freebsd_triage 2018-07-28 12:21:49 UTC
A commit references this bug:

Author: miwi
Date: Sat Jul 28 12:21:39 UTC 2018
New revision: 475544
URL: https://svnweb.freebsd.org/changeset/ports/475544

Log:
  Commons of Python micro-functions. This is basically an out-sourced, shared
  utils module.

  Rules:

  - Must work in Python 2 and Python 3
  - Cannot depend on anything but six and the standard library

  Functions:

  - is_sequence: check if something is list-ish
  - is_mapping: check if an object is dict-ish
  - ensure_list: make sure an argument is a list, or make it into a single-element
                 list
  - clean_dict: remove null values from a dict, recursively
  - decode_path: decode a path name to be unicode
  - hash_data: generate a SHA1 from a dict of reasonable objects

  WWW: https://github.com/pudo/banal

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

Changes:
  head/devel/Makefile
  head/devel/py-banal/
  head/devel/py-banal/Makefile
  head/devel/py-banal/distinfo
  head/devel/py-banal/pkg-descr