diff --git a/docs/source/conf.py b/docs/source/conf.py index db2e3a398..a1afa9b6c 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -1,72 +1,72 @@ -# Configuration file for the Sphinx documentation builder. -# -# This file only contains a selection of the most common options. For a full -# list see the documentation: -# https://www.sphinx-doc.org/en/master/usage/configuration.html - -# -- Path setup -------------------------------------------------------------- - -# If extensions (or modules to document with autodoc) are in another directory, -# add these directories to sys.path here. If the directory is relative to the -# documentation root, use os.path.abspath to make it absolute, like shown here. -# -# import os -# import sys -# sys.path.insert(0, os.path.abspath('.')) -from datetime import datetime - -# -- Project information ----------------------------------------------------- - -project = 'pyTelegramBotAPI' -author = 'coder2020official' -copyright = f'2022-{datetime.now().year}, {author}' - -# The full version, including alpha/beta/rc tags -release = '4.31.0' - - -# -- General configuration --------------------------------------------------- - -# Add any Sphinx extension module names here, as strings. They can be -# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom -# ones. -extensions = [ - 'sphinx.ext.autosectionlabel', - 'sphinx.ext.autodoc', - "sphinx.ext.autosummary", - "sphinx.ext.napoleon", - "sphinx_copybutton", - -] - -# Add any paths that contain templates here, relative to this directory. -templates_path = ['_templates'] - -# List of patterns, relative to source directory, that match files and -# directories to ignore when looking for source files. -# This pattern also affects html_static_path and html_extra_path. -exclude_patterns = [] - - -# -- Options for HTML output ------------------------------------------------- - -# The theme to use for HTML and HTML Help pages. See the documentation for -# a list of builtin themes. -# -html_theme = 'furo' - -# Add any paths that contain custom static files (such as style sheets) here, -# relative to this directory. They are copied after the builtin static files, -# so a file named "default.css" will overwrite the builtin "default.css". -html_static_path = ['_static'] -#html_logo = 'logo.png' -html_theme_options = { - "light_css_variables": { - "color-brand-primary": "#7C4DFF", - "color-brand-content": "#7C4DFF", - }, - "light_logo": "logo.png", - "dark_logo": "logo2.png", -} - -locale_dirs = ["locales/"] +# Configuration file for the Sphinx documentation builder. +# +# This file only contains a selection of the most common options. For a full +# list see the documentation: +# https://www.sphinx-doc.org/en/master/usage/configuration.html + +# -- Path setup -------------------------------------------------------------- + +# If extensions (or modules to document with autodoc) are in another directory, +# add these directories to sys.path here. If the directory is relative to the +# documentation root, use os.path.abspath to make it absolute, like shown here. +# +# import os +# import sys +# sys.path.insert(0, os.path.abspath('.')) +from datetime import datetime + +# -- Project information ----------------------------------------------------- + +project = 'pyTelegramBotAPI' +author = 'coder2020official' +copyright = f'2022-{datetime.now().year}, {author}' + +# The full version, including alpha/beta/rc tags +release = '4.32.0' + + +# -- General configuration --------------------------------------------------- + +# Add any Sphinx extension module names here, as strings. They can be +# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom +# ones. +extensions = [ + 'sphinx.ext.autosectionlabel', + 'sphinx.ext.autodoc', + "sphinx.ext.autosummary", + "sphinx.ext.napoleon", + "sphinx_copybutton", + +] + +# Add any paths that contain templates here, relative to this directory. +templates_path = ['_templates'] + +# List of patterns, relative to source directory, that match files and +# directories to ignore when looking for source files. +# This pattern also affects html_static_path and html_extra_path. +exclude_patterns = [] + + +# -- Options for HTML output ------------------------------------------------- + +# The theme to use for HTML and HTML Help pages. See the documentation for +# a list of builtin themes. +# +html_theme = 'furo' + +# Add any paths that contain custom static files (such as style sheets) here, +# relative to this directory. They are copied after the builtin static files, +# so a file named "default.css" will overwrite the builtin "default.css". +html_static_path = ['_static'] +#html_logo = 'logo.png' +html_theme_options = { + "light_css_variables": { + "color-brand-primary": "#7C4DFF", + "color-brand-content": "#7C4DFF", + }, + "light_logo": "logo.png", + "dark_logo": "logo2.png", +} + +locale_dirs = ["locales/"] diff --git a/pyproject.toml b/pyproject.toml index 743b62475..94b615dde 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,46 +1,46 @@ -[build-system] -requires = ["hatchling"] -build-backend = "hatchling.build" - -[project] -name = "pyTelegramBotAPI" -version = "4.31.0" -description = "Python Telegram bot API." -authors = [{name = "eternnoir", email = "eternnoir@gmail.com"}] -license = {text = "GPL2"} -readme = "README.md" -requires-python = ">=3.9" -keywords = ["telegram", "bot", "api", "tools"] -classifiers = [ - "Development Status :: 5 - Production/Stable", - "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.10", - "Programming Language :: Python :: 3.11", - "Programming Language :: Python :: 3.12", - "Programming Language :: Python :: 3.13", - "Programming Language :: Python :: 3.14", - "Environment :: Console", - "License :: OSI Approved :: GNU General Public License v2 (GPLv2)" -] -dependencies = ["requests"] - -[project.urls] -Homepage = "https://github.com/eternnoir/pyTelegramBotAPI" -Documentation = "https://pytba.readthedocs.org" -Repository = "https://github.com/eternnoir/pyTelegramBotAPI" -Issues = "https://github.com/eternnoir/pyTelegramBotAPI/issues" - - -[project.optional-dependencies] -json = ["ujson"] -PIL = ["Pillow"] -redis = ["redis>=3.4.1"] -fastapi = ["fastapi"] -uvicorn = ["uvicorn"] -psutil = ["psutil"] -coloredlogs = ["coloredlogs"] -watchdog = ["watchdog"] - - -[tool.hatch.build.targets.wheel] -include = ["telebot/*"] +[build-system] +requires = ["hatchling"] +build-backend = "hatchling.build" + +[project] +name = "pyTelegramBotAPI" +version = "4.32.0" +description = "Python Telegram bot API." +authors = [{name = "eternnoir", email = "eternnoir@gmail.com"}] +license = {text = "GPL2"} +readme = "README.md" +requires-python = ">=3.9" +keywords = ["telegram", "bot", "api", "tools"] +classifiers = [ + "Development Status :: 5 - Production/Stable", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", + "Programming Language :: Python :: 3.14", + "Environment :: Console", + "License :: OSI Approved :: GNU General Public License v2 (GPLv2)" +] +dependencies = ["requests"] + +[project.urls] +Homepage = "https://github.com/eternnoir/pyTelegramBotAPI" +Documentation = "https://pytba.readthedocs.org" +Repository = "https://github.com/eternnoir/pyTelegramBotAPI" +Issues = "https://github.com/eternnoir/pyTelegramBotAPI/issues" + + +[project.optional-dependencies] +json = ["ujson"] +PIL = ["Pillow"] +redis = ["redis>=3.4.1"] +fastapi = ["fastapi"] +uvicorn = ["uvicorn"] +psutil = ["psutil"] +coloredlogs = ["coloredlogs"] +watchdog = ["watchdog"] + + +[tool.hatch.build.targets.wheel] +include = ["telebot/*"] diff --git a/telebot/version.py b/telebot/version.py index 9353cfe3c..d8353cdd7 100644 --- a/telebot/version.py +++ b/telebot/version.py @@ -1,3 +1,3 @@ -# Versions should comply with PEP440. -# This line is parsed in setup.py: -__version__ = '4.31.0' +# Versions should comply with PEP440. +# This line is parsed in setup.py: +__version__ = '4.32.0'