Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python.announce > #3392

[baseline 1.1.2] Easy String Baseline

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Dan Gass <dan.gass@gmail.com>
Newsgroups comp.lang.python.announce
Subject [baseline 1.1.2] Easy String Baseline
Date Sun, 10 May 2020 20:29:39 -0500
Lines 67
Approved python-announce-list@python.org
Message-ID <158916213208.8713.python-announce-list@python.org> (permalink)
Reply-To python-list@python.org
Mime-Version 1.0
Content-Type text/plain; charset="UTF-8"
X-Trace news.uni-berlin.de oNcgFQApi5YfScOsHe2G/wp/25LsgmYa5zOoX1eyN/ZQ==
Authentication-Results mail.python.org; dkim=pass reason="2048-bit key; unprotected key" header.d=gmail.com header.i=@gmail.com header.b=IxWKeU41; dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status OK 0.001
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'url-ip:140/8': 0.02; 'url- ip:140.82.118.3/32': 0.03; 'url-ip:140.82.118/24': 0.03; 'url- ip:140.82/16': 0.03; '(e.g.': 0.05; 'string': 0.05; 'execution': 0.07; 'mechanism': 0.07; 'variable': 0.07; 'alternative': 0.09; 'skip:` 20': 0.09; 'tests': 0.09; 'to:addr:python-announce-list': 0.09; 'url-ip:151.101.0.223/32': 0.09; 'url- ip:151.101.128.223/32': 0.09; 'url-ip:151.101.192.223/32': 0.09; 'url-ip:151.101.64.223/32': 0.09; 'output': 0.15; 'url:github': 0.15; '(both': 0.16; 'compare': 0.16; 'dan': 0.16; 'facilitate': 0.16; 'fixes': 0.16; 'frameworks': 0.16; 'generating': 0.16; 'license:': 0.16; 'readability': 0.16; 'skip:` 10': 0.16; 'url- ip:104.17.32.82/32': 0.16; 'url-ip:104.17.32/24': 0.16; 'url- ip:104.17.33.82/32': 0.16; 'url-ip:104.17.33/24': 0.16; 'url:latest': 0.16; 'url:project': 0.16; 'url:pypi': 0.16; 'announce': 0.19; 'uses': 0.23; 'subject:] ': 0.23; 'environment': 0.25; 'creation': 0.26; 'option': 0.26; 'applying': 0.27; 'command': 0.27; 'subject:[': 0.28; 'using': 0.29; 'local': 0.30; 'enable': 0.31; 'context': 0.32; 'resources': 0.32; 'message- id:@mail.gmail.com': 0.33; 'received:google.com': 0.35; 'files': 0.35; 'change': 0.36; 'from:addr:gmail.com': 0.36; 'package': 0.36; 'still': 0.38; 'class': 0.39; 'setting': 0.39; 'compatible': 0.39; 'extension': 0.39; 'files.': 0.39; 'owner': 0.39; 'skip:( 30': 0.39; 'url-ip:104.17/16': 0.39; 'remove': 0.61; 'write': 0.61; 'were': 0.61; 'url-ip:151.101.0/24': 0.62; 'url- ip:151.101.128/24': 0.62; 'url-ip:151.101.192/24': 0.62; 'url- ip:151.101.64/24': 0.62; 'copy': 0.63; 'improve': 0.63; 'includes': 0.63; 'updated': 0.64; 'maintenance': 0.64; 'manual': 0.64; 'shows': 0.65; 'ignore': 0.67; 'tool': 0.68; 'mit': 0.69; 'whenever': 0.69; 'skip:* 10': 0.69; 'features': 0.73; 'caused': 0.74; 'queries': 0.81; 'attribute': 0.84; 'backwards': 0.84; 'executing': 0.84; 'experimental': 0.84; 'levels': 0.84; 'location.': 0.84; 'mismatch': 0.84; 'review.': 0.91; 'turned': 0.93
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=CMZCeLiXBmYZ/MZsd7Z8nXrjzvLyhzpMre7jXAQWQX4=; b=IxWKeU41uGpPwmUzABgfn2AVnimaBA4gyHEq8QnO9wZIFgz+86bLaFhKAfsb38lAHD Nu9nSmvq3ik+qkJWnSAjSDGYyx1fPrX2aB+pCw18YKbFMxbVcVR+pMGDeJmGQDqBGF2P PBhzTlC6XFqAIMF0z/wDIafGMUj8u93M2NuRpigQMpyKGlI2LSogS/Umz4sM4rlN9FC4 Sp8W34tMIHgOdhTaZxlYZ0yTUc/+Q+KkDsZgrve2TqMyB++eMFwVjxGadCjNcQccZCIN 5XH4dpi8JP3VWDl0gaR7wFFMbFdUyb1Q2wcCvyD+MBP06zzE7P4lIiypTsL1xOw3+AON 2lSw==
X-Google-DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=CMZCeLiXBmYZ/MZsd7Z8nXrjzvLyhzpMre7jXAQWQX4=; b=I/C4LiGLLIRA2aqWcHkeyeIFdEMfYjdVBX5BqXlH72Dx63yIgaCSndf94gSSORJC7s PolXGWDFiPCxpBjhjpMbvrp7huDM8V8jK1PFqX8WTZAaEtw14kQXPnQ0ypg7TOAwqPCN kRL2rQPBMzM6fghG4tPiFByDce1y3bdVOeiIgZ75lrkHdCOVkM59topuRSwEpGtnKb61 e+/nlblZkhyx80+4ikH0sy3PWwxHLiOkfb79WMn+dDj6gubvLYZFRCV1w1a5G0DQQhy9 ba682oZj3Gq47CKfw2AnNq4Lx1Xb/ZjfUjsN5UxDHXAH1q4bl/BT+ceSgF/36wqB3Oxp HzrA==
X-Gm-Message-State AGi0PuZK95bkf2Q6Y8pFSDT6yXb1NuaiCDkuDnqPn+j8/OYwU0w9udNO 31JO9fqxQy5ekO+RVqUPXfZdOdsbQURS0HJlrfDlLEi6uM4=
X-Google-Smtp-Source APiQypLkB9PINqS3xqh2b0bqvZbVsFLsbYCJ58ga95UMKnM+m92uTJqzIn/8JzDsyyRvx3u9etzZKwUcyaHMaSHIJAo=
X-Received by 2002:a1f:1c83:: with SMTP id c125mr8922839vkc.84.1589160589852; Sun, 10 May 2020 18:29:49 -0700 (PDT)
X-MailFrom dan.gass@gmail.com
X-Mailman-Rule-Hits emergency
X-Mailman-Rule-Misses dmarc-mitigation; no-senders; approved
Message-ID-Hash H243QQC3FZUPGFH3HLWWIHKMV3U6SMHM
X-Message-ID-Hash H243QQC3FZUPGFH3HLWWIHKMV3U6SMHM
X-Mailman-Approved-At Sun, 10 May 2020 21:55:21 -0400
X-Content-Filtered-By Mailman/MimeDel 3.3.2b1
X-Mailman-Version 3.3.2b1
Precedence list
List-Id Announcement-only list for the Python programming language <python-announce-list.python.org>
Archived-At <https://mail.python.org/archives/list/python-announce-list@python.org/message/H243QQC3FZUPGFH3HLWWIHKMV3U6SMHM/>
List-Archive <https://mail.python.org/archives/list/python-announce-list@python.org/>
List-Help <mailto:python-announce-list-request@python.org?subject=help>
List-Post <mailto:python-announce-list@python.org>
List-Subscribe <mailto:python-announce-list-join@python.org>
List-Unsubscribe <mailto:python-announce-list-leave@python.org>
Xref csiph.com comp.lang.python.announce:3392

Show key headers only | View raw


I am please to announce the availability of new backwards compatible
features and fixes in the "baseline" package (releases 1.1.0, 1.1.1, 1.1.2).

This tool streamlines creation and maintenance of tests which compare string
output against a baseline. It offers a mechanism to compare a string against
a baselined copy and update the baselined copy to match the new value when a
mismatch occurs. The update process includes a manual step to facilitate a
review of the change before acceptance. The tool uses multi-line string
format
for string baselines to improve readability for human review.

Docs: https://baseline.readthedocs.io/en/latest/
PyPi: https://pypi.org/project/baseline/
Repo: https://github.com/dmgass/baseline

License: MIT

With Regards,
Dan Gass
(dan.gass at gmail)

******************
1.1.2 2020-MAY-02
*****************

+ Maintain file permissions and owner (both when generating update
  file and when applying update file to original script). Previously,
  file owner and permissions were set based on permission levels of
  execution context which caused issues when executing under elevated
  permission levels (e.g. sudo).


*****************
1.1.1 2020-MAY-02
*****************

+ Improve experimental feature to support specifying an alternative
  location. Add ``BASELINE_MOVE_UPDATES`` environment variable that
  when set to ``YES``, enables specifying an alternative location to
  write update files. This master switch facilitates allowing CI/CD
  systems to enable the feature while leaving the feature off in
  local development while still using CI/CD resources (e.g. tox).


*****************
1.1.0 2020-MAY-01
*****************

+ Add ``--clean`` (`-c`) option to baseline command line tool to
  remove update files.

+ Add ``--diff`` (`-d`) option to baseline command line tool that
  shows difference and queries for overwrite permission for each
  updated file.

+ Change update file extension to ``.py.update`` so that testing
  frameworks such as ``unittest`` or ``pytest`` ignore them.

+ Add experimental feature to support specifying an alternative
  location to write update files with the ``BASELINE_UPDATES_PATH``
  environment variable. (Note, ``BASELINE_RELPATH_BASE`` must be
  set when using this feature.)

+ Add experimental feature to print contextual differences whenever
  a baseline mis-compare occurs. The feature may be turned on by
  setting the environment variable (``BASELINE_PRINT_DIFFS="YES"``)
  or overriding the class attribute (``Baseline.PRINT_DIFFS = True``).

Back to comp.lang.python.announce | Previous | Next | Find similar | Unroll thread


Thread

[baseline 1.1.2] Easy String Baseline Dan Gass <dan.gass@gmail.com> - 2020-05-10 20:29 -0500

csiph-web