From 8ea48bc15699274a64590fc7d146fc4fa72d1681 Mon Sep 17 00:00:00 2001 From: Gaurav Sheni Date: Mon, 17 Apr 2023 11:17:43 -0400 Subject: [PATCH] Add Python 3.11 markers and add 3.11 for unit tests (#53) * Update pyproject.toml * Update unit_tests_with_latest_deps.yml * Update pyproject.toml * Update Makefile --- .github/workflows/unit_tests_with_latest_deps.yml | 2 +- Makefile | 2 +- pyproject.toml | 14 +++++++++++--- 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/.github/workflows/unit_tests_with_latest_deps.yml b/.github/workflows/unit_tests_with_latest_deps.yml index b04644b..45ca4cf 100644 --- a/.github/workflows/unit_tests_with_latest_deps.yml +++ b/.github/workflows/unit_tests_with_latest_deps.yml @@ -12,7 +12,7 @@ jobs: strategy: fail-fast: false matrix: - python_version: ["3.8", "3.9", "3.10"] + python_version: ["3.8", "3.9", "3.10", "3.11"] env: ALTERYX_OPEN_SRC_UPDATE_CHECKER: False steps: diff --git a/Makefile b/Makefile index ccaa8d8..4dc78bc 100644 --- a/Makefile +++ b/Makefile @@ -44,6 +44,6 @@ upgradesetuptools: .PHONY: package package: upgradepip upgradebuild upgradesetuptools python -m build - $(eval PACKAGE=$(shell python -c "from pep517.meta import load; metadata = load('.'); print(metadata.version)")) + $(eval PACKAGE=$(shell python -c 'import setuptools; setuptools.setup()' --version)) tar -zxvf "dist/alteryx_open_src_update_checker-${PACKAGE}.tar.gz" mv "alteryx_open_src_update_checker-${PACKAGE}" unpacked_sdist diff --git a/pyproject.toml b/pyproject.toml index 86d604f..071d9a1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -14,6 +14,7 @@ classifiers = [ "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", "Operating System :: Microsoft :: Windows", "Operating System :: POSIX", "Operating System :: Unix", @@ -40,9 +41,9 @@ dependencies = [ [project.optional-dependencies] dev = [ - "ruff", - "black == 22.12.0", - "pre-commit == 2.20.0", + "ruff >= 0.0.239", + "black[jupyter] >= 23.1.0", + "pre-commit >= 2.20.0", ] test = [ "pip >= 21.3.1", @@ -119,3 +120,10 @@ exclude_lines =[ "if profile:", "pytest.skip" ] + +[build-system] +requires = [ + "setuptools >= 61.0.0", + "wheel" +] +build-backend = "setuptools.build_meta"