From 071cffa204e8e48e7f001a1e1b85804e9a9081ca Mon Sep 17 00:00:00 2001 From: Chris Lovering Date: Tue, 25 Oct 2022 21:53:20 +0100 Subject: Support 3.11 & bump all deps --- pyproject.toml | 30 +++++++++++++++++++----------- 1 file changed, 19 insertions(+), 11 deletions(-) (limited to 'pyproject.toml') diff --git a/pyproject.toml b/pyproject.toml index 97d79457..51cb596f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -32,31 +32,39 @@ aiodns = "3.0.0" [tool.poetry.extras] async-rediscache = ["async-rediscache"] -[tool.poetry.dev-dependencies] -typing-extensions = "4.4.0" -flake8 = "5.0.4" +[tool.poetry.group.dev.dependencies] +taskipy = "1.10.3" +python-dotenv = "0.21.0" + +[tool.poetry.group.test.dependencies] +pytest = "7.2.0" +pytest-cov = "4.0.0" +pytest-xdist = "3.1.0" + +[tool.poetry.group.lint.dependencies] +flake8 = "6.0.0" flake8-annotations = "2.9.1" -flake8-bugbear = "22.10.27" +flake8-bugbear = "22.12.6" flake8-docstrings = "1.6.0" -flake8-import-order = "0.18.1" +flake8-import-order = "0.18.2" flake8-string-format = "0.3.0" flake8-tidy-imports = "4.8.0" flake8-todo = "0.7" pep8-naming = "0.13.2" pre-commit = "2.20.0" -taskipy = "1.10.3" -python-dotenv = "0.21.0" -pytest = "7.2.0" -pytest-cov = "4.0.0" -pytest-xdist = "3.0.2" +typing-extensions = "4.4.0" + +[tool.poetry.group.doc.dependencies] Sphinx = "5.3.0" GitPython = "3.1.29" sphinx-autodoc-typehints = "1.19.5" -furo = "2022.9.29" +furo = "2022.12.7" six = "1.16.0" releases = "1.6.3" sphinx-multiversion = "0.2.4" docstring-parser = "0.15" +typing-extensions = "4.4.0" +tomli = "2.0.1" [tool.taskipy.tasks] lint = "pre-commit run --all-files" -- cgit v1.2.3 From 5ca70e57a13a0e302fc461c717d1549bd9091934 Mon Sep 17 00:00:00 2001 From: Chris Lovering Date: Tue, 25 Oct 2022 21:56:39 +0100 Subject: Support 3.11 and bump CI to use 3.11 --- .github/workflows/docs.yaml | 8 ++++---- .github/workflows/lint-test.yaml | 4 ++-- poetry.lock | 2 +- pyproject.toml | 3 ++- 4 files changed, 9 insertions(+), 8 deletions(-) (limited to 'pyproject.toml') diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index 372a2b8f..6d6c9569 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -21,10 +21,10 @@ jobs: - uses: actions/checkout@v2 - name: Install Python Dependencies - uses: HassanAbouelela/actions/setup-python@setup-python_v1.3.1 + uses: HassanAbouelela/actions/setup-python@setup-python_v1.3.2 with: dev: true - python_version: "3.10" + python_version: "3.11" install_args: "--extras async-rediscache" - name: Generate HTML Site @@ -46,10 +46,10 @@ jobs: fetch-depth: 0 # We need to check out the entire repository to find all tags - name: Install Python Dependencies - uses: HassanAbouelela/actions/setup-python@setup-python_v1.3.1 + uses: HassanAbouelela/actions/setup-python@setup-python_v1.3.2 with: dev: true - python_version: "3.10" + python_version: "3.11" install_args: "--extras async-rediscache" - name: Build All Doc Versions diff --git a/.github/workflows/lint-test.yaml b/.github/workflows/lint-test.yaml index dc83086b..222deb24 100644 --- a/.github/workflows/lint-test.yaml +++ b/.github/workflows/lint-test.yaml @@ -16,11 +16,11 @@ jobs: runs-on: ubuntu-latest steps: - name: Install Python Dependencies - uses: HassanAbouelela/actions/setup-python@setup-python_v1.3.1 + uses: HassanAbouelela/actions/setup-python@setup-python_v1.3.2 with: # Set dev=true to run pre-commit which is a dev dependency dev: true - python_version: "3.10" + python_version: "3.11" install_args: "--extras async-rediscache" # We will not run `flake8` here, as we will use a separate flake8 diff --git a/poetry.lock b/poetry.lock index 55f6424d..f4e22885 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1059,7 +1059,7 @@ async-rediscache = ["async-rediscache"] [metadata] lock-version = "1.1" python-versions = "3.10.* || 3.11.*" -content-hash = "119e62742a07e541682c834953a8c11eb459b4fd4b90bc46ab66341b2b709ba4" +content-hash = "f8b98393f7a10f019afb94260f87e92280533dda4057e9f7799dcd64512e13f2" [metadata.files] aiodns = [ diff --git a/pyproject.toml b/pyproject.toml index 51cb596f..93164917 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -23,7 +23,8 @@ repository = "https://github.com/python-discord/bot-core" keywords = ["bot", "discord", "discord.py"] [tool.poetry.dependencies] -python = "3.10.*" +python = "3.10.* || 3.11.*" + "discord.py" = "2.1.0" async-rediscache = { version = "1.0.0rc2", extras = ["fakeredis"], optional = true } statsd = "4.0.1" -- cgit v1.2.3 From 20e7f08e657157e77fe4cbd21494292480c24cce Mon Sep 17 00:00:00 2001 From: Chris Lovering Date: Sun, 11 Dec 2022 13:28:58 +0000 Subject: Mark project as requiring poetry-core>=1.2.0 This is required due to the use of dependancy groups --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pyproject.toml') diff --git a/pyproject.toml b/pyproject.toml index 93164917..77b9db88 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -75,7 +75,7 @@ test = "pytest -n 8 --ff" retest = "pytest -n 8 --lf" [build-system] -requires = ["poetry-core>=1.0.0"] +requires = ["poetry-core>=1.2.0"] build-backend = "poetry.core.masonry.api" [tool.coverage.run] -- cgit v1.2.3 From 21fcc58884c81badfec3eebf6375a168460975db Mon Sep 17 00:00:00 2001 From: Chris Lovering Date: Tue, 25 Oct 2022 21:59:20 +0100 Subject: Add changelog for 3.11 and new decorator --- docs/changelog.rst | 4 ++++ pyproject.toml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'pyproject.toml') diff --git a/docs/changelog.rst b/docs/changelog.rst index 610b2d37..ed46f90e 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -4,12 +4,16 @@ Changelog ========= +- :release:`9.2.0 <17th November 2022>` +- :support:`151` Add support for Python 3.11 + - :release:`9.1.1 <14th November 2022>` - :bug:`162` Handle not being able to delete the interaction message on button press/timeout. - :release:`9.1.0 <13th November 2022>` - :feature:`158` Bump Discord.py to :literal-url:`2.1.0 `. +- :feature:`88` Add a decorator that stops successive duplicate invocations of commands - :release:`9.0.0 <5th November 2022>` diff --git a/pyproject.toml b/pyproject.toml index 77b9db88..0b080c3a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "pydis_core" -version = "9.1.1" +version = "9.2.0" description = "PyDis core provides core functionality and utility to the bots of the Python Discord community." authors = ["Python Discord "] license = "MIT" -- cgit v1.2.3