Skip to content

Commit

Permalink
Release 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
hemberger committed Jan 5, 2021
1 parent ad09c3c commit 1ab5da4
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 8 deletions.
29 changes: 22 additions & 7 deletions docs/ChangeLog.rst
Expand Up @@ -2,26 +2,41 @@
Release Notes
=============

Version 1.0 (in development)
============================
Version 1.0
===========

This is the last release that will support Python 2.7. Thanks to the many
contributors that made this release possible!

Main changes:
-------------

* Added support for Python 3.8 and 3.9.

* ``StatefulBrowser`` methods ``get_current_page``,
``get_current_form`` and ``get_url`` have been deprecated in favor
of ``page``, ``form`` and ``url`` properties (e.g. the new
``x.page`` is equivalent to the now deprecated
``x.get_current_page()``).
* ``StatefulBrowser`` has new properties ``page``, ``form``, and ``url``,
which can be used in place of the methods ``get_current_page``,
``get_current_form`` and ``get_url`` respectively (e.g. the new ``x.page``
is equivalent to ``x.get_current_page()``). These methods may be deprecated
in a future release.
[`#175 <https://github.com/MechanicalSoup/MechanicalSoup/issues/175>`__]

* ``StatefulBrowser.form`` will raise an ``AttributeError`` instead of
returning ``None`` if no form has been selected yet. Note that
``StatefulBrowser.get_current_form()`` still returns ``None`` for
backward compatibility.

Bug fixes
---------

* Decompose ``<select>`` elements with the same name when adding a new
input element to a form.
[`#297 <https://github.com/MechanicalSoup/MechanicalSoup/issues/297>`__]

* The ``params`` and ``data`` kwargs passed to ``submit`` will now properly
be forwarded to the underlying request for GET methods (whereas previously
``params`` was being overwritten by ``data``).
[`#343 <https://github.com/MechanicalSoup/MechanicalSoup/pull/343>`__]

Version 0.12
============

Expand Down
2 changes: 1 addition & 1 deletion mechanicalsoup/__version__.py
Expand Up @@ -2,7 +2,7 @@
__description__ = 'A Python library for automating interaction with websites'
__url__ = 'https://mechanicalsoup.readthedocs.io/'
__github_url__ = 'https://github.com/MechanicalSoup/MechanicalSoup'
__version__ = '1.0.0-dev'
__version__ = '1.0.0'
__license__ = 'MIT'
__github_assets_absoluteURL__ = """\
https://raw.githubusercontent.com/MechanicalSoup/MechanicalSoup/master"""

0 comments on commit 1ab5da4

Please sign in to comment.