diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 8aff507e..5ed54136 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.7', '3.8', '3.9', '3.10'] + python-version: ['3.8', '3.9', '3.10', '3.11'] os: [ubuntu-latest, macos-latest, windows-latest] steps: - uses: actions/checkout@v1 @@ -18,11 +18,6 @@ jobs: uses: actions/setup-python@v2 with: python-version: ${{ matrix.python-version }} - - if: matrix.os == 'windows-latest' - name: Install dependencies - Windows - run: | - python -m pip install --upgrade pip - python -m pip install 'torch>=1.8,<2' -f https://download.pytorch.org/whl/cpu/torch/ - name: Install dependencies run: | python -m pip install --upgrade pip diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index cfe84fcb..967c1b2a 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -10,10 +10,10 @@ jobs: runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v1 - - name: Set up Python 3.8 + - name: Set up Python 3.9 uses: actions/setup-python@v2 with: - python-version: 3.8 + python-version: 3.9 - name: Install dependencies run: | python -m pip install --upgrade pip diff --git a/.github/workflows/minimum.yml b/.github/workflows/minimum.yml index 862b0a67..e56b5a5e 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.7', '3.8', '3.9', '3.10'] + python-version: ['3.8', '3.9', '3.10', '3.11'] os: [ubuntu-latest, macos-latest, windows-latest] steps: - uses: actions/checkout@v1 @@ -18,16 +18,6 @@ jobs: uses: actions/setup-python@v2 with: python-version: ${{ matrix.python-version }} - - if: matrix.os == 'windows-latest' && matrix.python-version != 3.10 - name: Install dependencies - Windows - run: | - python -m pip install --upgrade pip - python -m pip install 'torch==1.8' -f https://download.pytorch.org/whl/cpu/torch/ - - if: matrix.os == 'windows-latest' && matrix.python-version == 3.10 - name: Install dependencies - Windows - run: | - python -m pip install --upgrade pip - python -m pip install 'torch==1.11.0' -f https://download.pytorch.org/whl/cpu/torch/ - name: Install dependencies run: | python -m pip install --upgrade pip diff --git a/.github/workflows/readme.yml b/.github/workflows/readme.yml index a27919ee..b3a44130 100644 --- a/.github/workflows/readme.yml +++ b/.github/workflows/readme.yml @@ -10,7 +10,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - python-version: ['3.7', '3.8', '3.9', '3.10'] + python-version: ['3.8', '3.9', '3.10', '3.11'] os: [ubuntu-latest, macos-latest] # skip windows bc rundoc fails steps: - uses: actions/checkout@v1 diff --git a/.github/workflows/unit.yml b/.github/workflows/unit.yml index 97d6edca..4805cc3a 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.7', '3.8', '3.9', '3.10'] + python-version: ['3.8', '3.9', '3.10', '3.11'] os: [ubuntu-latest, macos-latest, windows-latest] steps: - uses: actions/checkout@v1 @@ -18,17 +18,9 @@ jobs: uses: actions/setup-python@v2 with: python-version: ${{ matrix.python-version }} - - if: matrix.os == 'windows-latest' - name: Install dependencies - Windows - run: | - python -m pip install --upgrade pip - python -m pip install 'torch>=1.8,<2' -f https://download.pytorch.org/whl/cpu/torch/ - name: Install dependencies run: | python -m pip install --upgrade pip python -m pip install invoke .[test] - name: Run unit tests run: invoke unit - - if: matrix.os == 'ubuntu-latest' && matrix.python-version == 3.8 - name: Upload codecov report - uses: codecov/codecov-action@v2 diff --git a/HISTORY.md b/HISTORY.md index 4db5dd00..ec42d6ca 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -1,5 +1,15 @@ # History +## v0.7.4 - 2023-07-25 + +This release adds support for Python 3.11 and drops support for Python 3.7. + +### Maintenance + +* Why is there an upper bound in the packaging requirement? (packaging<22) - Issue [#276](https://github.com/sdv-dev/CTGAN/issues/276) by @fealho +* Add support for Python 3.11 - Issue [#296](https://github.com/sdv-dev/CTGAN/issues/296) by @fealho +* Drop support for Python 3.7 - Issue [#302](https://github.com/sdv-dev/CTGAN/issues/302) by @fealho + ## v0.7.3 - 2023-05-25 This release adds support for Torch 2.0! diff --git a/ctgan/__init__.py b/ctgan/__init__.py index 0f3ff219..568dbc3d 100644 --- a/ctgan/__init__.py +++ b/ctgan/__init__.py @@ -4,7 +4,7 @@ __author__ = 'DataCebo, Inc.' __email__ = 'info@sdv.dev' -__version__ = '0.7.3' +__version__ = '0.7.4.dev1' from ctgan.demo import load_demo from ctgan.synthesizers.ctgan import CTGAN diff --git a/setup.cfg b/setup.cfg index 44aa5dee..041193e5 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 0.7.3 +current_version = 0.7.4.dev1 commit = True tag = True parse = (?P\d+)\.(?P\d+)\.(?P\d+)(\.(?P[a-z]+)(?P\d+))? diff --git a/setup.py b/setup.py index c623e8f2..35284f6f 100644 --- a/setup.py +++ b/setup.py @@ -12,14 +12,15 @@ history = history_file.read() install_requires = [ - 'packaging>=20,<22', "numpy>=1.20.0,<2;python_version<'3.10'", "numpy>=1.23.3,<2;python_version>='3.10'", "pandas>=1.1.3;python_version<'3.10'", - "pandas>=1.3.4;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'", "scikit-learn>=1.1.3,<2;python_version>='3.10'", "torch>=1.8.0;python_version<'3.10'", - "torch>=1.11.0;python_version>='3.10'", + "torch>=1.11.0;python_version>='3.10' and python_version<'3.11'", + "torch>=2.0.0;python_version>='3.11'", 'rdt>=1.3.0,<2.0', ] @@ -87,10 +88,10 @@ 'License :: Free for non-commercial use', 'Natural Language :: English', 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 3.10', + 'Programming Language :: Python :: 3.11', 'Topic :: Scientific/Engineering :: Artificial Intelligence', ], description='Create tabular synthetic data using a conditional GAN', @@ -112,11 +113,11 @@ keywords='ctgan CTGAN', name='ctgan', packages=find_packages(include=['ctgan', 'ctgan.*']), - python_requires='>=3.7,<3.11', + python_requires='>=3.8,<3.12', setup_requires=setup_requires, test_suite='tests', tests_require=tests_require, url='https://github.com/sdv-dev/CTGAN', - version='0.7.3', + version='0.7.4.dev1', zip_safe=False, ) diff --git a/tox.ini b/tox.ini index 8b1caedb..e7fc1ac6 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py38-lint, py3{7,8,9,10}-{unit,integration,readme} +envlist = py39-lint, py3{8,9,10,11}-{unit,integration,readme} [testenv] skipsdist = false