diff --git a/conftest.py b/conftest.py index 7d87f262..8a58b65c 100644 --- a/conftest.py +++ b/conftest.py @@ -1,7 +1,8 @@ +from pathlib import Path + import docutils import pytest import sphinx -from sphinx.testing.path import path # Load app, status and warning fixtures. pytest_plugins = ["sphinx.testing.fixtures"] @@ -18,7 +19,7 @@ def pytest_report_header(config): @pytest.fixture(scope="session") def rootdir(): - return path(__file__).parent.abspath() / "roots" + return Path(__file__).parent.absolute() / "roots" @pytest.fixture(scope="function", autouse=True) diff --git a/setup.cfg b/setup.cfg index e9e42006..243573c2 100644 --- a/setup.cfg +++ b/setup.cfg @@ -19,6 +19,7 @@ include_package_data = True setup_requires = setuptools_scm install_requires = + packaging docutils>=0.18 feedgen>=0.9.0 invoke>=1.6.0 @@ -58,6 +59,8 @@ filterwarnings = always::pytest.PytestConfigWarning # Sphinx and other packages raise these ignore:'imghdr' is deprecated and slated for removal in Python 3.13:DeprecationWarning + # python-datetuil + ignore:datetime.datetime.utcfromtimestamp:DeprecationWarning [pycodestyle] max_line_length = 120