From 627c1b329a91e8176d09de530b23266261d49a25 Mon Sep 17 00:00:00 2001 From: talaatmagdyx Date: Sun, 9 Jun 2024 05:15:50 +0300 Subject: [PATCH] reduce required pacakge --- CHANGELOG.md | 4 +++- pyproject.toml | 19 ++++++++++++++----- setup.cfg | 10 +++++++--- setup.py | 20 +++++++++++++++----- 4 files changed, 39 insertions(+), 14 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e62af98..a731c63 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,4 +13,6 @@ ## [1.0.4] - 2024-06-07 - default_stop_condition stops retrying after 3 attempts. - default_wait_condition waits 1 second between attempts. -- If no stop_condition or wait_condition is provided, the defaults will be used. \ No newline at end of file +- If no stop_condition or wait_condition is provided, the defaults will be used. +## [1.0.5] - 2024-06-09 +- reduce required installation package \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 0339158..65754a5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "retry_plus" -version = "1.0.4" +version = "1.0.5" description = "A generic retry package for Python" readme = "README.md" authors = [ @@ -16,11 +16,20 @@ classifiers = [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", ] -dependencies = [ - "pytest", - "pytest-asyncio", -] +dependencies = [] requires-python = ">=3.6" [tool.setuptools.packages.find] where = ["."] + +[project.optional-dependencies] +dev = [ + "pytest", + "pytest-asyncio" +] +docs = [ + "sphinx", + "myst-parser", + "readthedocs-sphinx-ext", + "sphinx_rtd_theme" +] diff --git a/setup.cfg b/setup.cfg index 62b37c3..c96f7c6 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = retry_plus -version = 1.0.4 +version = 1.0.5 description = A generic retry package for Python long_description = file: README.md long_description_content_type = text/markdown @@ -15,8 +15,7 @@ classifiers = [options] packages = find: install_requires = - pytest - pytest-asyncio + # No dependencies are required for the core functionality python_requires = >=3.6 [options.packages.find] @@ -30,6 +29,11 @@ console_scripts = dev = pytest pytest-asyncio +docs = + sphinx + myst-parser + readthedocs-sphinx-ext + sphinx_rtd_theme [tool:pytest] testpaths = tests diff --git a/setup.py b/setup.py index a57de38..36dd78a 100644 --- a/setup.py +++ b/setup.py @@ -5,17 +5,27 @@ setup( name='retry_plus', - version='1.0.4', + version='1.0.5', description='A generic retry package for Python', long_description=long_description, long_description_content_type='text/markdown', author='Talaat Magdy', author_email='talaatmagdy75@gmail.com', + url='https://github.com/talaatmagdyx/retry_plus', # Add your project URL packages=find_packages(), - install_requires=[ - 'pytest', - 'pytest-asyncio', - ], + install_requires=[], + extras_require={ + 'dev': [ + 'pytest', + 'pytest-asyncio', + ], + 'docs': [ + 'sphinx', + 'myst-parser', + 'readthedocs-sphinx-ext', + 'sphinx_rtd_theme', + ], + }, classifiers=[ 'Programming Language :: Python :: 3', 'License :: OSI Approved :: MIT License',