Skip to content

Commit

Permalink
Merge pull request #644 from tableau/python-version-compatibility
Browse files Browse the repository at this point in the history
Add support for Python version 3.10, 3.11, and 3.12 (Remove support for 3.7, 3.8)
  • Loading branch information
jakeichikawasalesforce authored Sep 5, 2024
2 parents 3203ee6 + 63ef5fa commit f6c7741
Show file tree
Hide file tree
Showing 12 changed files with 24 additions and 25 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:

strategy:
matrix:
python-version: [3.7]
python-version: [3.12]
os: [ubuntu-latest]

steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:

strategy:
matrix:
python-version: [3.7]
python-version: [3.12]
os: [ubuntu-latest]

steps:
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,8 @@ jobs:

strategy:
matrix:
# TODO: Add 3.7 to python-versions after GitHub action regression is resolved.
# https://github.com/actions/setup-python/issues/682
# TODO: switch macos-13 to macos-latest@arm64
python-version: ['3.8', '3.9', '3.10']
python-version: ['3.9', '3.10', '3.11', '3.12']
# TODO: switch macos-13 to macos-latest
os: [ubuntu-latest, windows-latest, macos-13]

steps:
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,8 @@ jobs:

strategy:
matrix:
# TODO: Add 3.7 to python-versions after GitHub action regression is resolved.
# https://github.com/actions/setup-python/issues/682
# TODO: switch macos-13 to macos-latest@arm64
python-version: ['3.8', '3.9', '3.10']
python-version: ['3.9', '3.10', '3.11', '3.12']
# TODO: switch macos-13 to macos-latest
os: [ubuntu-latest, windows-latest, macos-13]

steps:
Expand Down
2 changes: 1 addition & 1 deletion .scrutinizer.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
build:
environment:
python: 3.7.6
python: 3.12.5
nodes:
coverage:
project_setup:
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## v2.11.0

### Improvements

- Add support for Python 3.10, 3.11, and 3.12. End support Python for
3.7 and 3.8.

## v2.10.0

### Improvements
Expand Down
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ and run it locally.
These are prerequisites for an environment required for a contributor to
be able to work on TabPy changes:

- Python 3.7, 3.8 or 3.9:
- To see which version of Python you have installed, run `python --version`.
- Supported 64-bit Python version (see
[README](https://github.com/tableau/TabPy) for a list of compatible versions).
- git
- Node.js for npm packages - install from <https://nodejs.org>.
- NPM packages - install all with
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
[![GitHub Workflow Status](https://img.shields.io/github/workflow/status/tableau/tabpy/Test%20Run%20on%20Push)](https://github.com/tableau/TabPy/actions?query=workflow%3A%22Test+Run+on+Push%22)
[![Coverage Status](https://coveralls.io/repos/github/tableau/TabPy/badge.svg?branch=master)](https://coveralls.io/github/tableau/TabPy?branch=master)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/tableau/TabPy/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/tableau/TabPy/?branch=master)
[![Requirements Status](https://requires.io/github/tableau/TabPy/requirements.svg?branch=master)](https://requires.io/github/tableau/TabPy/requirements/?branch=master)

![PyPI - Python Version](https://img.shields.io/pypi/pyversions/tabpy?label=PyPI%20Python%20versions)
[![PyPI version](https://badge.fury.io/py/tabpy.svg)](https://pypi.python.org/pypi/tabpy/)
Expand Down
10 changes: 3 additions & 7 deletions docs/server-install.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,9 @@ These instructions explain how to install and start up TabPy Server.

## TabPy Installation

### Prerequisites

- TabPy only supports Python versions 3.7, 3.8, 3.9, and 3.10
- TabPy 2.7.0 added support for data streaming via
Apache Arrow Flight (`pyarrow`). When using TabPy >= 2.7.0, we
recommend using a Python 64-bit installer to avoid incompatibility issues
related to `pyarrow`.
First, ensure that you are using a supported 64-bit Python version.
Refer to the [README](https://github.com/tableau/TabPy) for a list
of compatible versions.

### Installation

Expand Down
2 changes: 1 addition & 1 deletion docs/tabpy-virtualenv.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ Linux and Mac run shell.
3. Create the virtual Anaconda environment

```sh
conda create --name my-tabpy-env python=3.7
conda create --name my-tabpy-env python=3.12
```

4. Activate your virtual environment
Expand Down
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,10 @@ def read(fname):
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"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",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Information Analysis",
"Operating System :: Microsoft :: Windows",
Expand Down
2 changes: 1 addition & 1 deletion tabpy/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.10.0
2.11.0

0 comments on commit f6c7741

Please sign in to comment.