From a61f75086cc26d319bb17722788f9a7b59070ad9 Mon Sep 17 00:00:00 2001 From: Brian Pugh Date: Mon, 15 May 2023 18:33:12 -0700 Subject: [PATCH] modern poetry dependency groups --- poetry.lock | 69 ++++++++++++++++++++++++-------------------------- pyproject.toml | 10 +++++--- 2 files changed, 39 insertions(+), 40 deletions(-) diff --git a/poetry.lock b/poetry.lock index a6bc7fe..33dbe50 100644 --- a/poetry.lock +++ b/poetry.lock @@ -4,7 +4,7 @@ name = "alabaster" version = "0.7.13" description = "A configurable sidebar-enabled Sphinx theme" -category = "main" +category = "dev" optional = true python-versions = ">=3.6" files = [ @@ -16,7 +16,7 @@ files = [ name = "babel" version = "2.12.1" description = "Internationalization utilities" -category = "main" +category = "dev" optional = true python-versions = ">=3.7" files = [ @@ -31,7 +31,7 @@ pytz = {version = ">=2015.7", markers = "python_version < \"3.9\""} name = "certifi" version = "2023.5.7" description = "Python package for providing Mozilla's CA Bundle." -category = "main" +category = "dev" optional = false python-versions = ">=3.6" files = [ @@ -55,7 +55,7 @@ files = [ name = "charset-normalizer" version = "3.1.0" description = "The Real First Universal Charset Detector. Open, modern and actively maintained alternative to Chardet." -category = "main" +category = "dev" optional = false python-versions = ">=3.7.0" files = [ @@ -140,7 +140,7 @@ files = [ name = "colorama" version = "0.4.6" description = "Cross-platform colored terminal text." -category = "main" +category = "dev" optional = false python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,>=2.7" files = [ @@ -261,7 +261,7 @@ files = [ name = "docutils" version = "0.17.1" description = "Docutils -- Python Documentation Utilities" -category = "main" +category = "dev" optional = true python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" files = [ @@ -319,7 +319,7 @@ license = ["ukkonen"] name = "idna" version = "3.4" description = "Internationalized Domain Names in Applications (IDNA)" -category = "main" +category = "dev" optional = false python-versions = ">=3.5" files = [ @@ -331,7 +331,7 @@ files = [ name = "imagesize" version = "1.4.1" description = "Getting image size from png/jpeg/jpeg2000/gif file" -category = "main" +category = "dev" optional = true python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" files = [ @@ -343,7 +343,7 @@ files = [ name = "importlib-metadata" version = "6.6.0" description = "Read metadata from Python packages" -category = "main" +category = "dev" optional = true python-versions = ">=3.7" files = [ @@ -375,7 +375,7 @@ files = [ name = "jinja2" version = "3.1.2" description = "A very fast and expressive template engine." -category = "main" +category = "dev" optional = true python-versions = ">=3.7" files = [ @@ -393,7 +393,7 @@ i18n = ["Babel (>=2.7)"] name = "livereload" version = "2.6.3" description = "Python LiveReload is an awesome tool for web developers" -category = "main" +category = "dev" optional = true python-versions = "*" files = [ @@ -409,7 +409,7 @@ tornado = {version = "*", markers = "python_version > \"2.7\""} name = "markupsafe" version = "2.1.2" description = "Safely add untrusted strings to HTML/XML markup." -category = "main" +category = "dev" optional = true python-versions = ">=3.7" files = [ @@ -543,7 +543,7 @@ setuptools = "*" name = "packaging" version = "23.1" description = "Core utilities for Python packages" -category = "main" +category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -621,7 +621,7 @@ wcwidth = "*" name = "pygments" version = "2.15.1" description = "Pygments is a syntax highlighting package written in Python." -category = "main" +category = "dev" optional = true python-versions = ">=3.7" files = [ @@ -678,7 +678,7 @@ testing = ["fields", "hunter", "process-tests", "pytest-xdist", "six", "virtuale name = "pytz" version = "2023.3" description = "World timezone definitions, modern and historical" -category = "main" +category = "dev" optional = true python-versions = "*" files = [ @@ -740,7 +740,7 @@ files = [ name = "requests" version = "2.30.0" description = "Python HTTP for Humans." -category = "main" +category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -779,7 +779,7 @@ testing-integration = ["build[virtualenv]", "filelock (>=3.4.0)", "jaraco.envs ( name = "six" version = "1.16.0" description = "Python 2 and 3 compatibility utilities" -category = "main" +category = "dev" optional = true python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*" files = [ @@ -791,7 +791,7 @@ files = [ name = "snowballstemmer" version = "2.2.0" description = "This package provides 29 stemmers for 28 languages generated from Snowball algorithms." -category = "main" +category = "dev" optional = true python-versions = "*" files = [ @@ -803,7 +803,7 @@ files = [ name = "sphinx" version = "5.3.0" description = "Python documentation generator" -category = "main" +category = "dev" optional = true python-versions = ">=3.6" files = [ @@ -839,7 +839,7 @@ test = ["cython", "html5lib", "pytest (>=4.6)", "typed_ast"] name = "sphinx-autobuild" version = "2021.3.14" description = "Rebuild Sphinx documentation on changes, with live-reload in the browser." -category = "main" +category = "dev" optional = true python-versions = ">=3.6" files = [ @@ -859,7 +859,7 @@ test = ["pytest", "pytest-cov"] name = "sphinx-autodoc-typehints" version = "1.23.0" description = "Type hints (PEP 484) support for the Sphinx autodoc extension" -category = "main" +category = "dev" optional = true python-versions = ">=3.7" files = [ @@ -879,7 +879,7 @@ type-comment = ["typed-ast (>=1.5.4)"] name = "sphinx-copybutton" version = "0.5.2" description = "Add a copy button to each of your code cells." -category = "main" +category = "dev" optional = true python-versions = ">=3.7" files = [ @@ -898,7 +898,7 @@ rtd = ["ipython", "myst-nb", "sphinx", "sphinx-book-theme", "sphinx-examples"] name = "sphinx-rtd-theme" version = "1.0.0" description = "Read the Docs theme for Sphinx" -category = "main" +category = "dev" optional = true python-versions = ">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*" files = [ @@ -917,7 +917,7 @@ dev = ["bump2version", "sphinxcontrib-httpdomain", "transifex-client"] name = "sphinxcontrib-applehelp" version = "1.0.4" description = "sphinxcontrib-applehelp is a Sphinx extension which outputs Apple help books" -category = "main" +category = "dev" optional = true python-versions = ">=3.8" files = [ @@ -933,7 +933,7 @@ test = ["pytest"] name = "sphinxcontrib-devhelp" version = "1.0.2" description = "sphinxcontrib-devhelp is a sphinx extension which outputs Devhelp document." -category = "main" +category = "dev" optional = true python-versions = ">=3.5" files = [ @@ -949,7 +949,7 @@ test = ["pytest"] name = "sphinxcontrib-htmlhelp" version = "2.0.1" description = "sphinxcontrib-htmlhelp is a sphinx extension which renders HTML help files" -category = "main" +category = "dev" optional = true python-versions = ">=3.8" files = [ @@ -965,7 +965,7 @@ test = ["html5lib", "pytest"] name = "sphinxcontrib-jsmath" version = "1.0.1" description = "A sphinx extension which renders display math in HTML via JavaScript" -category = "main" +category = "dev" optional = true python-versions = ">=3.5" files = [ @@ -980,7 +980,7 @@ test = ["flake8", "mypy", "pytest"] name = "sphinxcontrib-qthelp" version = "1.0.3" description = "sphinxcontrib-qthelp is a sphinx extension which outputs QtHelp document." -category = "main" +category = "dev" optional = true python-versions = ">=3.5" files = [ @@ -996,7 +996,7 @@ test = ["pytest"] name = "sphinxcontrib-serializinghtml" version = "1.1.5" description = "sphinxcontrib-serializinghtml is a sphinx extension which outputs \"serialized\" HTML files (json and pickle)." -category = "main" +category = "dev" optional = true python-versions = ">=3.5" files = [ @@ -1036,7 +1036,7 @@ files = [ name = "tornado" version = "6.3.2" description = "Tornado is a Python web framework and asynchronous networking library, originally developed at FriendFeed." -category = "main" +category = "dev" optional = true python-versions = ">= 3.8" files = [ @@ -1069,7 +1069,7 @@ files = [ name = "urllib3" version = "2.0.2" description = "HTTP library with thread-safe connection pooling, file post, and more." -category = "main" +category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -1120,7 +1120,7 @@ files = [ name = "zipp" version = "3.15.0" description = "Backport of pathlib-compatible object wrapper for zip files" -category = "main" +category = "dev" optional = true python-versions = ">=3.7" files = [ @@ -1132,10 +1132,7 @@ files = [ docs = ["furo", "jaraco.packaging (>=9)", "jaraco.tidelift (>=1.4)", "rst.linker (>=1.9)", "sphinx (>=3.5)", "sphinx-lint"] testing = ["big-O", "flake8 (<5)", "jaraco.functools", "jaraco.itertools", "more-itertools", "pytest (>=6)", "pytest-black (>=0.3.7)", "pytest-checkdocs (>=2.4)", "pytest-cov", "pytest-enabler (>=1.3)", "pytest-flake8", "pytest-mypy (>=0.9.1)"] -[extras] -docs = ["Sphinx", "sphinx-autobuild", "sphinx-autodoc-typehints", "sphinx-copybutton", "sphinx-rtd-theme"] - [metadata] lock-version = "2.0" python-versions = "^3.8" -content-hash = "68a2cb50375989b24aa95a83f77d63d481c35e9e73f5a82ca6bf8a9dc6661876" +content-hash = "c31daa126a02cd37e6cf5ddae795780df0eca840c7df6f63008ff8ba80fedc22" diff --git a/pyproject.toml b/pyproject.toml index 1c98f73..68a4b8f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -34,16 +34,18 @@ license = "MIT" [tool.poetry.dependencies] python = "^3.8" prompt_toolkit = ">=2.0,<=3.0.36" # once https://github.com/prompt-toolkit/python-prompt-toolkit/issues/1726 is fixed, this can be changed to ">=2.0,<4.0" + +[tool.poetry.group.docs] +optional = true + +[tool.poetry.group.docs.dependencies] Sphinx = {version = ">=4.1,<6.0", optional = true} sphinx-rtd-theme = {version = ">=0.5,<1.1", optional = true} sphinx-autobuild = {version = ">=2020.9.1,<2022.0.0", optional = true} sphinx-copybutton = {version = ">=0.3.1,<0.6.0", optional = true} sphinx-autodoc-typehints = {version = "^1.11.1", optional = true} -[tool.poetry.extras] -docs = ["Sphinx", "sphinx-rtd-theme", "sphinx-autobuild", "sphinx-copybutton", "sphinx-autodoc-typehints"] - -[tool.poetry.dev-dependencies] +[tool.poetry.group.dev.dependencies] pytest-cov = "^3.0.0" pytest = "^7.0.1" coveralls = "^3.3.1"