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
On behalf of the Nikola team, I am pleased to announce the immediate
availability of Nikola v8.0.1. Some bugs were fixed; more importantly,
we pinned down the Markdown package version due to incompatibilities.
What is Nikola?
===============
Nikola is a static site and blog generator, written in Python.
It can use Mako and Jinja2 templates, and input in many popular markup
formats, such as reStructuredText and Markdown — and can even turn
Jupyter Notebooks into blog posts! It also supports image galleries,
and is multilingual. Nikola is flexible, and page builds are extremely
fast, courtesy of doit (which is rebuilding only what has been changed).
Find out more at the website: https://getnikola.com/
Downloads
=========
Install using `pip install Nikola`. (Python 3-only since v8.0.0.)
Changes
=======
* Not compatible with Markdown 3.x yet, this release pins the
requirement down to 2.x (until we get 3.x support done)
Features
--------
* Make URL displayed by ``nikola auto`` and ``nikola serve`` clickable
(Issue #3166)
Bugfixes
--------
* Pandoc compiler was passing deleted argument (Issue #3171)
* Make ``nikola version --check`` work again (Issue #3170)
* Set logging level for reST to warning in order to limit noise
* Fix docinfo removal for sites that use reST docinfo metadata
(Issue #3167)
We are glade to announce the release 0.8.1 of relatorio.
Relatorio is a templating library which provides a way to easily output several kinds of files (odt, ods, png, svg, …).
It is a bug-fix release which includes:
Add support for Python 3.7
Escape invalid XML characters
Enforce closing tag to be the same directive as the opening
Use compression for zip file
Write mimetype as first file of the zip file
The package is available on https://pypi.org/project/relatorio/0.8.1/
The document is available on https://relatorio.readthedocs.io/en/0.8.1/
We are proud to announce the release of the version 1.0.0 of python-sql.
python-sql is a library to write SQL queries in a pythonic way.
In addition to bug-fixes, this release contains those improvements:
Add Flavor filter_ to fallback to case expression
Allow to use expression in AtTimeZone
Add comparison predicates
Add COLLATE
python-sql is available on PyPI: https://pypi.org/project/python-sql/1.0.0/
Dear EuroPython'istas,
We are happy to announce that we have started the RFP for venues to host
the EuroPython 2019 conference.
We have sent out the details to almost 40 venues.
For more details about the RFP, please see our blog post:
https://www.europython-society.org/post/178541594370/europython-2019-rfp-fo…
Many thanks to everyone who had submitted contact details and venue
suggestions after our call.
We have tried to include all of them in the list of direct recipients.
Feel free to forward the blog post to additional suitable venues.
Many thanks,
--
EuroPython Society Board
https://www.europython-society.org/
Python 3.7.1rc1 and 3.6.7rc1 are now available. 3.7.1rc1 is the release
preview of the first maintenance release of Python 3.7, the latest feature
release of Python. 3.6.7rc1 is the release preview of the next maintenance
release of Python 3.6, the previous feature release of Python. Assuming no
critical problems are found prior to 2018-10-06, no code changes are
planned between these release candidates and the final releases. These
release candidates are intended to give you the opportunity to test the
new security and bug fixes in 3.7.1 and 3.6.7. We strongly encourage you
to test your projects and report issues found to bugs.python.org as soon
as possible.
Please keep in mind that these are preview releases and, thus, their use
is not recommended for production environments.
You can find these releases and more information here:
https://www.python.org/downloads/release/python-371rc1/https://www.python.org/downloads/release/python-367rc1/
--
Ned Deily
nad(a)python.org -- []
Dear EuroPython'istas,
We are in preparations of our venue RFP for the EuroPython 2019
edition and are asking for your help in finding the right locations
for us to choose from.
If you know of a larger venue - hotel or conference center - that can
accommodate at least 1400 attendees, please send the venue details to
board(a)europython.eu. We will then make sure to include them in our RFP
once we send it out.
The more venues we gather to reach out to, the better of a selection
process we can guarantee, which in return, will ultimately result in a
better conference experience for everybody involved.
When sending us venue suggestions, please make sure to provide us with
the following: name and URL of the venue, country and city, as well as
the contact details of the sales person in charge of inquiries (full
name, email and phone).
We were planning to start the RFP process in the coming days, so
please make sure you send us your recommendations as soon as possible.
Help spread the word
--------------------
Please help us spread this message by sharing it on your social
networks as widely as possible. Thank you !
Link to the blog post:
https://blog.europython.eu/post/178407491437/europython-2019-seeking-venues
Tweet:
https://twitter.com/europython/status/1044130171354316800
Thank you,
--
EuroPython Society
https://www.europython-society.org/
Hi All,
On behalf of the NumPy team, I am pleased to announce the release of NumPy
1.14.6. This is a bug fix release for bugs and regressions reported
following the 1.14.5 release. The significant fixes are:
- Fix for behavior change in ``ma.masked_values(shrink=True)``
- Fix the new cached allocations machinery to be thread safe.
The Python versions supported by this release are 2.7, 3.4-3.7. The wheels
are linked with OpenBLAS v0.3.0, which should fix some of the linalg
problems reported for earlier releases of NumPy 1.14. Wheels for this
release can be downloaded from PyPI <https://pypi.org/project/numpy/1.14.6/>,
source archives are available from Github
<https://github.com/numpy/numpy/releases/tag/v1.14.6>.
Compatibility Note
==================
The NumPy 1.14.6 OS X wheels released on PyPI no longer contain 32-bit
binaries. See #11625 <https://github.com/numpy/numpy/issues/11625> for the
related discussion. Those needing 32-bit support should look elsewhere or
build from source.
Contributors
============
A total of 4 people contributed to this release. People with a "+" by their
names contributed a patch for the first time.
- Charles Harris
- Eric Wieser
- Julian Taylor
- Matti Picus
Pull requests merged
====================
A total of 4 pull requests were merged for this release.
- #11985: BUG: fix cached allocations without the GIL
- #11986: BUG: Undo behavior change in ma.masked_values(shrink=True)
- #11987: BUG: fix refcount leak in PyArray_AdaptFlexibleDType
- #11995: TST: Add Python 3.7 testing to NumPy 1.14.
Cheers,
Charles Harris
Hi All,
On behalf of the NumPy team, I am pleased to announce the release of NumPy
1.15.2. This is a bug fix release for bugs and regressions reported
following the 1.15.2 release. The fixes are:
- the matrix PendingDeprecationWarning is now suppressed in pytest 3.8,
- the new cached allocations machinery has been fixed to be thread safe,
- the boolean indexing of subclasses now works correctly,
- a small memory leak in PyArray_AdaptFlexibleDType has been fixed.
The Python versions supported by this release are 2.7, 3.4-3.7. The wheels
are linked with OpenBLAS v0.3.0, which should fix some of the linalg
problems reported for NumPy 1.14. Wheels for this release can be downloaded
from PyPI <https://pypi.org/project/numpy/1.15.2/>, source archives are
available from Github <https://github.com/numpy/numpy/releases/tag/v1.15.2>
Compatibility Note
==================
The NumPy 1.15.x OS X wheels released on PyPI no longer contain 32-bit
binaries. That will also be the case in future releases. See
`#11625 <https://github.com/numpy/numpy/issues/11625>`__ for the related
discussion. Those needing 32-bit support should look elsewhere or build
from source.
Contributors
============
A total of 4 people contributed to this release. People with a "+" by their
names contributed a patch for the first time.
* Charles Harris
* Julian Taylor
* Marten van Kerkwijk
* Matti Picus
Pull requests merged
====================
A total of 4 pull requests were merged for this release.
* `#11902 <https://github.com/numpy/numpy/pull/11902>`__: BUG: Fix matrix
PendingDeprecationWarning suppression for pytest...
* `#11981 <https://github.com/numpy/numpy/pull/11981>`__: BUG: fix cached
allocations without the GIL for 1.15.x
* `#11982 <https://github.com/numpy/numpy/pull/11982>`__: BUG: fix refcount
leak in PyArray_AdaptFlexibleDType
* `#11992 <https://github.com/numpy/numpy/pull/11992>`__: BUG: Ensure
boolean indexing of subclasses sets base correctly.
Cheers,
Charles Harris