From 94d4e36ba00a9fba7cec37da9967eb22ed2f2f3c Mon Sep 17 00:00:00 2001 From: Felipe Date: Thu, 4 Apr 2024 08:13:30 -0700 Subject: [PATCH] Add py12 support --- .github/workflows/integration.yml | 2 +- .github/workflows/minimum.yml | 2 +- .github/workflows/unit.yml | 2 +- pyproject.toml | 23 ++++++++++++----------- tox.ini | 2 +- 5 files changed, 16 insertions(+), 15 deletions(-) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 248faa54a..6d5d7902b 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -10,7 +10,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - python-version: [ '3.8', '3.9', '3.10', '3.11'] + python-version: [ '3.8', '3.9', '3.10', '3.11', '3.12'] os: [ubuntu-latest, macos-latest, windows-latest] steps: - uses: actions/checkout@v1 diff --git a/.github/workflows/minimum.yml b/.github/workflows/minimum.yml index 4e9590c3b..e5ecfe3b1 100644 --- a/.github/workflows/minimum.yml +++ b/.github/workflows/minimum.yml @@ -10,7 +10,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - python-version: [ '3.8', '3.9', '3.10', '3.11'] + python-version: [ '3.8', '3.9', '3.10', '3.11', '3.12'] os: [ubuntu-latest, macos-latest, windows-latest] steps: - uses: actions/checkout@v1 diff --git a/.github/workflows/unit.yml b/.github/workflows/unit.yml index 7201df2c1..9ccda0316 100644 --- a/.github/workflows/unit.yml +++ b/.github/workflows/unit.yml @@ -10,7 +10,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - python-version: [ '3.8', '3.9', '3.10', '3.11'] + python-version: [ '3.8', '3.9', '3.10', '3.11', '3.12'] os: [ubuntu-latest, macos-latest, windows-latest] steps: - uses: actions/checkout@v1 diff --git a/pyproject.toml b/pyproject.toml index 12c250048..282101c85 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -12,12 +12,13 @@ classifiers = [ 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 3.10', 'Programming Language :: Python :: 3.11', + 'Programming Language :: Python :: 3.12', 'Topic :: Scientific/Engineering :: Artificial Intelligence', ] keywords = ['sdv', 'synthetic-data', 'synhtetic-data-generation', 'timeseries', 'single-table', 'multi-table'] dynamic = ['version'] license = { text = 'BSL-1.1' } -requires-python = '>=3.8,<3.12' +requires-python = '>=3.8,<3.13' readme = 'README.md' dependencies = [ 'boto3>=1.15.0,<2', @@ -25,16 +26,17 @@ dependencies = [ 'cloudpickle>=2.1.0,<3.0', 'graphviz>=0.13.2,<1', "numpy>=1.20.0,<2;python_version<'3.10'", - "numpy>=1.23.3,<2;python_version>='3.10'", + "numpy>=1.23.3,<2;python_version>='3.10' and python_version<'3.12'", + "numpy>=1.26.0,<2;python_version>='3.12'", "pandas>=1.1.3;python_version<'3.10'", "pandas>=1.3.4;python_version>='3.10' and python_version<'3.11'", "pandas>=1.5.0;python_version>='3.11'", - 'tqdm>=4.15,<5', - 'copulas>=0.9.0,<0.10', - 'ctgan>=0.9.0,<0.10', - 'deepecho>=0.5,<0.6', - 'rdt>=1.10.0,<2', - 'sdmetrics>=0.13.0,<0.14', + 'tqdm>=4.29,<5', + 'copulas@git+ssh://git@github.com/sdv-dev/copulas.git', + 'ctgan@git+ssh://git@github.com/sdv-dev/ctgan.git', + 'deepecho@git+ssh://git@github.com/sdv-dev/deepecho.git', + 'rdt@git+ssh://git@github.com/sdv-dev/rdt.git', + 'sdmetrics@git+ssh://git@github.com/sdv-dev/sdmetrics.git', ] [project.urls] @@ -51,7 +53,7 @@ sdv = { main = 'sdv.cli.__main__:main' } test = [ 'pytest>=3.4.2', 'pytest-cov>=2.6.0', - 'pytest-rerunfailures>10', + 'pytest-rerunfailures>=10.3,<15', 'jupyter>=1.0.0,<2', 'rundoc>=0.4.3,<0.5', 'pytest-runner >= 2.11.1', @@ -65,7 +67,7 @@ dev = [ 'build>=1.0.0,<2', 'bump-my-version>=0.18.3,<1', 'pip>=9.0.1', - 'watchdog>=0.8.3,<0.9', + 'watchdog>=1.0.1,<5', # docs 'docutils>=0.12,<0.18', @@ -139,7 +141,6 @@ namespaces = false '*.png', '*.gif' ] -'tests' = ['*'] [tool.setuptools.exclude-package-data] '*' = [ diff --git a/tox.ini b/tox.ini index 57f7816f7..f96d47042 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py38-lint, py3{8,9,10,11}-{readme,pytest,minimum} +envlist = py38-lint, py3{8,9,10,11,12}-{readme,pytest,minimum} [testenv] skipsdist = false