diff --git a/CHANGES.rst b/CHANGES.rst index 4d0cf2b..084aba6 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,6 +1,48 @@ Changes ======= +0.10.0 (2024-11-07) +------------------- + +* Dropped official support for Python 3.8. + +* The minimum supported versions of some dependencies have changed: + + * ``lxml``: ``4.4.1`` → ``4.5.2`` + * ``scikit-learn``: ``0.24.0`` → ``1.5.0`` + * ``scipy``: ``1.5.0`` → ``1.6.2`` + +* New dependencies have been added: + + * ``numpy`` ≥ ``1.19.5`` + * ``packaging`` ≥ ``14.0`` + * ``parsel`` ≥ ``1.1.0`` + * ``platformdirs`` ≥ ``3.2.0`` + +* The ``formasaurus.utils.dependencies_string()`` function is now deprecated. + +* Added a new function, ``build_submission``, to make Formasaurus :ref:`easier + to use `. + +* Added a built-in model, so that you can use Formasaurus right away without + the need to first train a model on the built-in data. + +* Changed the model serialization format, to minimize the chance of breakage + due to new versions of dependencies. + + As a result, when specifying a model path, it is no longer the path to a + single file, but the base path for multiple files. For example, if ``model`` + is specified as file path, 2 files are created, ``model-field.joblib`` and + ``model-form.json``. + +* When building a model, if a file path is not specified, the file path used by + default is now guaranteed to be user-writable. + +* Removed the need to specify the ``[with-deps]`` or ``[with_deps]`` extra when + :ref:`installing `. + +* Improved the docs of :func:`~formasaurus.classifiers.extract_forms`. + 0.9.0 (2024-06-19) ------------------ diff --git a/docs/install.rst b/docs/install.rst index 6628dfa..169b955 100644 --- a/docs/install.rst +++ b/docs/install.rst @@ -1,3 +1,5 @@ +.. _install: + Install ======= diff --git a/docs/usage.rst b/docs/usage.rst index 0d786a7..b48b6ca 100644 --- a/docs/usage.rst +++ b/docs/usage.rst @@ -1,3 +1,5 @@ +.. _usage: + Usage ===== diff --git a/setup.py b/setup.py index d8644da..ae0f68d 100755 --- a/setup.py +++ b/setup.py @@ -18,6 +18,7 @@ def get_version(): author_email="kmike84@gmail.com", license="MIT license", long_description=open("README.rst").read() + "\n\n" + open("CHANGES.rst").read(), + long_description_content_type="x-rst", description="Formasaurus tells you the types of HTML forms and their fields using machine learning", url="https://github.com/scrapinghub/Formasaurus", zip_safe=False,