Skip to content

Commit

Permalink
Remove Python 3.9 support (#363)
Browse files Browse the repository at this point in the history
Signed-off-by: Gábor Lipták <[email protected]>
  • Loading branch information
gliptak authored Jan 6, 2025
1 parent f00d0bd commit e62247a
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.9'
python-version: '3.10'
- name: Install dependencies
run: python -m pip install .[dev]
- name: Build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.9'
python-version: '3.10'
- name: Install dependencies
run: python -m pip install .[dev]
- name: Build and publish
Expand Down
14 changes: 6 additions & 8 deletions .github/workflows/test-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.9
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.9"
python-version: "3.10"
- name: Install dependencies
run: python -m pip install .[qa]
- name: Linting by ruff
Expand All @@ -33,7 +33,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [3.9, '3.10', '3.11', '3.12']
python-version: ['3.10', '3.11', '3.12']
spark-version: [3.2.4, 3.3.4, 3.4.2, 3.5.1]
pandas-version: [2.2.3, 1.5.3]
numpy-version: [2.1.2, 1.26.4]
Expand All @@ -42,8 +42,6 @@ jobs:
spark-version: 3.2.4
- python-version: '3.11'
spark-version: 3.3.4
- python-version: 3.9
numpy-version: 2.1.2
- pandas-version: 1.5.3
numpy-version: 2.1.2
env:
Expand Down Expand Up @@ -77,7 +75,7 @@ jobs:
run: |
python -m pip install .[dev_no_snowflake]
- name: Install Datacompy with all dev dependencies if Python 3.9, 3.10, or 3.11
- name: Install Datacompy with all dev dependencies if Python 3.10, or 3.11
if: ${{ matrix.python-version != '3.12' }}
run: |
python -m pip install .[dev]
Expand All @@ -92,7 +90,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [3.9, '3.10', '3.11', '3.12']
python-version: ['3.10', '3.11', '3.12']

env:
PYTHON_VERSION: ${{ matrix.python-version }}
Expand All @@ -119,7 +117,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [3.9, '3.10', '3.11']
python-version: ['3.10', '3.11']
env:
PYTHON_VERSION: ${{ matrix.python-version }}

Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ with the Pandas on Spark implementation. Spark plans to support Pandas 2 in [Spa

| | Spark 3.2.4 | Spark 3.3.4 | Spark 3.4.2 | Spark 3.5.1 |
|-------------|-------------|-------------|-------------|-------------|
| Python 3.9 |||||
| Python 3.10 |||||
| Python 3.11 |||||
| Python 3.12 |||||
Expand Down
2 changes: 1 addition & 1 deletion docs/source/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ conda (installs dependencies from Conda Forge)

::

conda create --name datacompy python=3.9 pip conda
conda create --name datacompy python=3.10 pip conda
source activate datacompy
conda config --add channels conda-forge
conda install datacompy
Expand Down
5 changes: 2 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,14 @@ maintainers = [
]
license = {text = "Apache Software License"}
dependencies = ["pandas<=2.2.3,>=0.25.0", "numpy<=2.2.0,>=1.22.0", "ordered-set<=4.1.0,>=4.0.2", "polars[pandas]<=1.17.1,>=0.20.4"]
requires-python = ">=3.9.0"
requires-python = ">=3.10.0"
classifiers = [
"Intended Audience :: Developers",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
Expand Down Expand Up @@ -71,7 +70,7 @@ dev = ["datacompy[fugue]", "datacompy[spark]", "datacompy[snowflake]", "datacomp
# Linters, formatters and type checkers
[tool.ruff]
extend-include = ["*.ipynb"]
target-version = "py39"
target-version = "py310"
src = ["src"]

[tool.ruff.lint]
Expand Down
4 changes: 2 additions & 2 deletions whitesource.config
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ python.ignorePipInstallErrors=true
python.ignoreSourceFiles=true
python.resolveHierarchyTree=true
python.resolveSetupPyFiles=true
python.path=python3.9
python.pipPath=pip3.9
python.path=python3.10
python.pipPath=pip3.10

0 comments on commit e62247a

Please sign in to comment.