I am please to announce the availability of the "baseline" package.
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)
***********
Quick Start
***********
Create an empty baseline with a triple quoted multi-line string. Place
the ending triple quote on a separate line and indent it to the level
you wish the string baseline update to be indented to. Add a compare of
the string being tested to the baseline string. Then save the file as
``fox.py``:
.. code-block:: python
from baseline import Baseline
expected = Baseline("""
""")
test_string = "THE QUICK BROWN FOX\n JUMPS\nOVER THE LAZY DOG."
assert test_string == expected
Run ``fox.py`` and observe that the ``assert`` raises an exception since
the strings are not equal. Because the comparison failed, the tool located
the triple quoted baseline string in the source file and updated it with the
miscompared value. When the interpretter exited, the tool saved the updated
source file but changed the file name to ``fox.update.py``:
.. code-block:: python
from baseline import Baseline
expected = Baseline("""
THE QUICK BROWN FOX
JUMPS
OVER THE LAZY DOG.
""")
test_string = "THE QUICK BROWN FOX\n JUMPS\nOVER THE LAZY DOG."
assert test_string == expected
After reviewing the change with your favorite file differencing tool,
accept the change by either manually overwriting the original file or use
the ``baseline`` command line tool to scan the directory for updated
scripts and accept them:
.. code-block:: shell
$ python -m baseline *
Found updates for:
fox.py
Hit [ENTER] to update, [Ctrl-C] to cancel
fox.update.py -> fox.py
Run ``fox.py`` again and observe the ``assert`` does not raise an exception
nor is a source file update generated. If in the future the test value
changes, the ``assert`` will raise an exception and cause a new source file
update to be generated. Simply repeat the review and acceptance step and you
are back in business!
<P><A HREF="https://baseline.readthedocs.io/en/latest/">
baseline 0.2.1</A> - Easy String Baseline (07-Jun-18)
This course will help you to expertise the usage of Python in Data Science world.
Carter your Python Knowledge so that it can be utilized to get the Insights of Data using Methodologies and Techniques of Data Science...
Objective:
Understand the concepts of Data science and Python
You will be able to use Python in Discovering Data.
You will have an idea of Statistical and Analytical methods to deal with huge data sets.
You will gain an expertise on Regular Expressions, looping functions and concepts of Object Oriented Programming.
You will be able to create business algorithms and data models using Python and it's techniques.
Work on Real-life Projects will help you to get a practical experience of real scenarios of IT Industry.
Start learning Python for Data Science from basics to advance levels here...
https://goo.gl/070wXw
pytest 5.1.2 has just been released to PyPI.
This is a bug-fix release, being a drop-in replacement. To upgrade::
pip install --upgrade pytest
The full changelog is available at
https://docs.pytest.org/en/latest/changelog.html.
Thanks to all who contributed to this release, among them:
* Andrzej Klajnert
* Anthony Sottile
* Bruno Oliveira
* Christian Neumüller
* Robert Holt
* linchiwei123
Happy testing,
The pytest Development Team
It's time for the last beta release of Python 3.8. Go find it at:
https://www.python.org/downloads/release/python-380b4/ <https://www.python.org/downloads/release/python-380b4/>
This release is the last of four planned beta release previews. Beta release previews are intended to give the wider community the opportunity to test new features and bug fixes and to prepare their projects to support the new feature release. The next pre-release of Python 3.8 will be 3.8.0c1, the first release candidate, currently scheduled for 2019-09-30.
Call to action
We strongly encourage maintainers of third-party Python projects to test with 3.8 during the beta phase and report issues found to the Python bug tracker as soon as possible. Please note this is the last beta release, there is not much time left to identify and fix issues before the release of 3.8.0. If you were hesitating trying it out before, now is the time.
While the release is planned to be feature complete entering the beta phase, it is possible that features may be modified or, in rare cases, deleted up until the start of the release candidate phase (2019-09-30). Our goal is have no ABI changes after beta 3 and no code changes after 3.8.0c1, the release candidate.
To achieve that, it will be extremely important to get as much exposure for 3.8 as possible during the beta phase. That beta phase is coming to an end. Please test now.
Please keep in mind that this is a preview release and its use is not recommended for production environments.
Acknowledgments
Many developers worked hard for the past four weeks to squash remaining bugs, some requiring non-obvious decisions. Many thanks to the most active, namely Raymond Hettinger, Steve Dower, Victor Stinner, Terry Jan Reedy, Serhiy Storchaka, Pablo Galindo Salgado, Tal Einat, Zackery Spytz, Ronald Oussoren, Neil Schemenauer, Inada Naoki, Christian Heimes, and Andrew Svetlov.
3.8.0 would not reach the Last Beta without you. Thank you!
- Ł
What is cx_Freeze?
cx_Freeze is a set of scripts and modules for freezing Python scripts into
executables, in much the same way that py2exe and py2app do. Unlike these
two tools, cx_Freeze is cross platform and should work on any platform that
Python itself works on. It supports Python 3.5 or higher. For Python 2.7,
use version 5.
More information can be found at the web site:
https://anthony-tuininga.github.io/cx_Freeze
What's new?
cx_Freeze 6.0 adds support for Python 3.7 and makes use of a number of
improvements in Python 3. A lot of small improvements and bug fixes were
made. The full release notes can be read here:
https://cx-freeze.readthedocs.io/en/latest/releasenotes.html#version-6-0-au…
.
I want to thank Marcelo Duarte in particular for his help. Without him this
release would have taken even longer than it already has and contained far
fewer improvements and bug fixes!
To install, use the following command:
python -m pip install cx_Freeze --upgrade
I am happy to announce Guppy-PE 0.1.11
Guppy-PE is a library and programming environment for Python,
currently providing in particular the Heapy subsystem, which supports
object and heap memory sizing, profiling and debugging. It also
includes a prototypical specification language, the Guppy
Specification Language (GSL), which can be used to formally specify
aspects of Python programs and generate tests and documentation from a
common source.
The main news in this release:
Contains notes and check that this package is only for Python2. A version for
Python3 is recommended and is available here:
https://github.com/zhuyifei1999/guppy3
License: MIT
The project homepage is on GitHub:
https://svenil.github.io/guppy-pe/
Enjoy,
Sverker Nilsson
Trac 1.4, a major release of Trac, is now available.
You will find this release at the usual places:
https://trac.edgewall.org/wiki/TracDownload#LatestStableRelease
You can find the detailed release notes for 1.4 on the following
pages:
https://trac.edgewall.org/wiki/TracChangeLoghttps://trac.edgewall.org/wiki/TracDev/ReleaseNotes/1.4#MaintenanceReleases
Now to the packages themselves:
URLs:
https://download.edgewall.org/trac/Trac-1.4.tar.gzhttps://download.edgewall.org/trac/Trac-1.4-py2-none-any.whlhttps://download.edgewall.org/trac/Trac-1.4.win32.exehttps://download.edgewall.org/trac/Trac-1.4.win-amd64.exe
MD5 sums:
9984fd689f3e6243aa70a32070dafd80 Trac-1.4.tar.gz
9bac160130eac9503f84eec30abb90e2 Trac-1.4-py2-none-any.whl
9d3ec371e378a8eb05b52ac3e410c8c4 Trac-1.4.win32.exe
cebf594abbbd8a9da4e3cd0e94c3e866 Trac-1.4.win-amd64.exe
SHA256 sums:
a1ef354488d77bbce2aea016996fb71c76faf5f848d8c787703bad0d5e0ee5b1 Trac-1.4.tar.gz
4e2a312c7726eee302bb63b4f70cd43d5fa5f0a5eae253f05fef00a8f844b83c Trac-1.4-py2-none-any.whl
526670016f20cc43f04ba95455b68f155b2405e86fad0666aa84fab9484bdcd9 Trac-1.4.win32.exe
d7b66ab1c2acb807c8517bf5511202fc1da9fc6c7d531ee3b60d860b02e5f751 Trac-1.4.win-amd64.exe
Acknowledgements
================
Many thanks to the growing number of people who have, and continue to,
support the project. Also our thanks to all people providing feedback
and bug reports that helps us make Trac better, easier to use and
more effective. Without your invaluable help, Trac would not evolve.
Thank you all.
Finally, we hope that Trac will be useful to like-minded programmers
around the world, and that this release will be an improvement over
the last version.
Please let us know.
/The Trac Team https://trac.edgewall.org/
Hi All,
On behalf of the NumPy team I am pleased to announce that NumPy 1.16.5 has
been released. This release fixes bugs reported against the 1.16.4 release
and backports several enhancements from master that seem appropriate for
the LTS release series that is the last to support Python 2.7.
Downstream developers should use Cython >= 0.29.2 and OpenBLAS >= 3.7 to
avoid wrong results on the Skylake architecture. The NumPy wheels on PyPI
are built from the OpenBLAS development branch in order to avoid those
problems. Wheels for this release can be downloaded from PyPI
<https://pypi.org/project/numpy/1.16.5/>, source archives and release notes
are available from Github
<https://github.com/numpy/numpy/releases/tag/v1.16.5>.
*Contributors*
A total of 18 people contributed to this release. People with a "+" by
their
names contributed a patch for the first time.
- Alexander Shadchin
- Allan Haldane
- Bruce Merry +
- Charles Harris
- Colin Snyder +
- Dan Allan +
- Emile +
- Eric Wieser
- Grey Baker +
- Maksim Shabunin +
- Marten van Kerkwijk
- Matti Picus
- Peter Andreas Entschev +
- Ralf Gommers
- Richard Harris +
- Sebastian Berg
- Sergei Lebedev +
- Stephan Hoyer
*Pull requests merged*
A total of 23 pull requests were merged for this release.
- gh-13742: ENH: Add project URLs to setup.py
- gh-13823: TEST, ENH: fix tests and ctypes code for PyPy
- gh-13845: BUG: use npy_intp instead of int for indexing array
- gh-13867: TST: Ignore DeprecationWarning during nose imports
- gh-13905: BUG: Fix use-after-free in boolean indexing
- gh-13933: MAINT/BUG/DOC: Fix errors in _add_newdocs
- gh-13984: BUG: fix byte order reversal for datetime64[ns]
- gh-13994: MAINT,BUG: Use nbytes to also catch empty descr during
allocation
- gh-14042: BUG: np.array cleared errors occured in
PyMemoryView_FromObject
- gh-14043: BUG: Fixes for Undefined Behavior Sanitizer (UBSan) errors.
- gh-14044: BUG: ensure that casting to/from structured is properly
checked.
- gh-14045: MAINT: fix histogram*d dispatchers
- gh-14046: BUG: further fixup to histogram2d dispatcher.
- gh-14052: BUG: Replace contextlib.suppress for Python 2.7
- gh-14056: BUG: fix compilation of 3rd party modules with
Py_LIMITED_API...
- gh-14057: BUG: Fix memory leak in dtype from dict contructor
- gh-14058: DOC: Document array_function at a higher level.
- gh-14084: BUG, DOC: add new recfunctions to `__all__`
- gh-14162: BUG: Remove stray print that causes a SystemError on python
3.7
- gh-14297: TST: Pin pytest version to 5.0.1.
- gh-14322: ENH: Enable huge pages in all Linux builds
- gh-14346: BUG: fix behavior of structured_to_unstructured on
non-trivial...
- gh-14382: REL: Prepare for the NumPy 1.16.5 release.
Cheers,
Charles Harris
Trac 1.2.5, the latest maintenance release for the current stable
branch, is available.
You will find this release at the usual places:
https://trac.edgewall.org/wiki/TracDownload#LatestStableRelease
You can find the detailed release notes for 1.2.5 on the following
pages:
https://trac.edgewall.org/wiki/TracChangeLoghttps://trac.edgewall.org/wiki/TracDev/ReleaseNotes/1.2#MaintenanceReleases
Now to the packages themselves:
URLs:
https://download.edgewall.org/trac/Trac-1.2.5.tar.gzhttps://download.edgewall.org/trac/Trac-1.2.5-py2-none-any.whlhttps://download.edgewall.org/trac/Trac-1.2.5.win32.exehttps://download.edgewall.org/trac/Trac-1.2.5.win-amd64.exe
MD5 sums:
cc38738987a0e3065eb5f11e47a1664b Trac-1.2.5.tar.gz
4cd949d3709bfc2e49443bdbe6d86102 Trac-1.2.5-py2-none-any.whl
583f6c8d0368cef05d1e2f4d4c8e50b0 Trac-1.2.5.win32.exe
0bb8b373d0ef42fabadb20478ff9a6b7 Trac-1.2.5.win-amd64.exe
SHA256 sums:
5e26309c19c8781e03ba3db2196f0eac4bfb95dae9d795cfe6a977ba488bc9e6 Trac-1.2.5.tar.gz
1ee48558362b6ffc2963b4c24c33b971582f996cf0f33e22ec7b4f63be75b19e Trac-1.2.5-py2-none-any.whl
f7db9d26c58ac17750c4151d57fa446b1946247f1e9f5985a93f5a82c567752c Trac-1.2.5.win32.exe
6138830f3973f677225357716f6322c9fdf67fefffcb72b667dabb21b32d13e3 Trac-1.2.5.win-amd64.exe
Acknowledgements
================
Many thanks to the growing number of people who have, and continue to,
support the project. Also our thanks to all people providing feedback
and bug reports that helps us make Trac better, easier to use and
more effective. Without your invaluable help, Trac would not evolve.
Thank you all.
Finally, we hope that Trac will be useful to like-minded programmers
around the world, and that this release will be an improvement over
the last version.
Please let us know.
/The Trac Team https://trac.edgewall.org/
Hi All,
On behalf of the NumPy team I am pleased to announce that NumPy 1.17.1 has
been released. This release contains a number of fixes for bugs reported
against NumPy 1.17.0 along with a few documentation and build
improvements. The Python versions supported are 3.5-3.7, note that Python
2.7 has been dropped. Python 3.8b3 should work with the released source
packages, but there are no future guarantees.
Downstream developers should use Cython >= 0.29.13 for Python 3.8 support
and OpenBLAS >= 3.7 to avoid wrong results on the Skylake architecture. The
NumPy wheels on PyPI are built from the OpenBLAS development branch in
order to avoid those problems. Wheels for this release can be downloaded
from PyPI <https://pypi.org/project/numpy/1.17.1/>, source archives and
release notes are available from Github
<https://github.com/numpy/numpy/releases/tag/v1.17.1>.
*Contributors*
A total of 17 people contributed to this release. People with a "+" by
their
names contributed a patch for the first time.
- Alexander Jung +
- Allan Haldane
- Charles Harris
- Eric Wieser
- Giuseppe Cuccu +
- Hiroyuki V. Yamazaki
- Jérémie du Boisberranger
- Kmol Yuan +
- Matti Picus
- Max Bolingbroke +
- Maxwell Aladago +
- Oleksandr Pavlyk
- Peter Andreas Entschev
- Sergei Lebedev
- Seth Troisi +
- Vladimir Pershin +
- Warren Weckesser
*Pull requests merged*
A total of 24 pull requests were merged for this release.
- gh-14156: TST: Allow fuss in testing strided/non-strided exp/log loops
- gh-14157: BUG: avx2_scalef_ps must be static
- gh-14158: BUG: Remove stray print that causes a SystemError on python
3.7.
- gh-14159: BUG: Fix DeprecationWarning in python 3.8.
- gh-14160: BLD: Add missing gcd/lcm definitions to npy_math.h
- gh-14161: DOC, BUILD: cleanups and fix (again) 'build dist'
- gh-14166: TST: Add 3.8-dev to travisCI testing.
- gh-14194: BUG: Remove the broken clip wrapper (Backport)
- gh-14198: DOC: Fix hermitian argument docs in svd.
- gh-14199: MAINT: Workaround for Intel compiler bug leading to failing
test
- gh-14200: TST: Clean up of test_pocketfft.py
- gh-14201: BUG: Make advanced indexing result on read-only subclass
writeable...
- gh-14236: BUG: Fixed default BitGenerator name
- gh-14237: ENH: add c-imported modules for freeze analysis in np.random
- gh-14296: TST: Pin pytest version to 5.0.1
- gh-14301: BUG: Fix leak in the f2py-generated module init and
`PyMem_Del`...
- gh-14302: BUG: Fix formatting error in exception message
- gh-14307: MAINT: random: Match type of SeedSequence.pool_size to
DEFAULT_POOL_SIZE.
- gh-14308: BUG: Fix numpy.random bug in platform detection
- gh-14309: ENH: Enable huge pages in all Linux builds
- gh-14330: BUG: Fix segfault in `random.permutation(x)` when x is a
string.
- gh-14338: BUG: don't fail when lexsorting some empty arrays (#14228)
- gh-14339: BUG: Fix misuse of .names and .fields in various places
(backport...
- gh-14345: BUG: fix behavior of structured_to_unstructured on
non-trivial...
- gh-14350: REL: Prepare 1.17.1 release
Cheers,
Charles Harris