Skip to content

Commit 6bad6dd

Browse files
authored
Merge branch 'main' into release-please--branches--main
2 parents dd54944 + ba35a9c commit 6bad6dd

File tree

11 files changed

+42
-49
lines changed

11 files changed

+42
-49
lines changed

.github/sync-repo-settings.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ branchProtectionRules:
1111
- 'OwlBot Post Processor'
1212
- 'docs'
1313
- 'lint'
14-
- 'unit (3.8)'
1514
- 'unit (3.9)'
1615
- 'unit (3.10)'
1716
- 'unit (3.11)'
@@ -20,7 +19,6 @@ branchProtectionRules:
2019
- 'cover'
2120
- 'Kokoro'
2221
- 'Samples - Lint'
23-
- 'Samples - Python 3.8'
2422
- 'Samples - Python 3.9'
2523
- 'Samples - Python 3.10'
2624
- 'Samples - Python 3.11'

.github/workflows/unittest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-22.04
1212
strategy:
1313
matrix:
14-
python: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
14+
python: ['3.9', '3.10', '3.11', '3.12', '3.13']
1515
steps:
1616
- name: Checkout
1717
uses: actions/checkout@v4

.kokoro/presubmit/system-3.8.cfg renamed to .kokoro/presubmit/system-3.9.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
# Only run the following session(s)
44
env_vars: {
55
key: "NOX_SESSION"
6-
value: "system-3.8"
7-
}
6+
value: "system-3.9"
7+
}

CONTRIBUTING.rst

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ In order to add a feature:
2222
documentation.
2323

2424
- The feature must work fully on the following CPython versions:
25-
3.8, 3.9, 3.10, 3.11, 3.12 and 3.13 on both UNIX and Windows.
25+
3.9, 3.10, 3.11, 3.12 and 3.13 on both UNIX and Windows.
2626

2727
- The feature must not add unnecessary dependencies (where
2828
"unnecessary" is of course subjective, but new dependencies should
@@ -148,7 +148,7 @@ Running System Tests
148148

149149
.. note::
150150

151-
System tests are only configured to run under Python 3.8, 3.9, 3.10, 3.11, 3.12 and 3.13.
151+
System tests are only configured to run under Python 3.9, 3.10, 3.11, 3.12 and 3.13.
152152
For expediency, we do not run them in older versions of Python 3.
153153

154154
This alone will not run the tests. You'll need to change some local
@@ -221,14 +221,12 @@ Supported Python Versions
221221

222222
We support:
223223

224-
- `Python 3.8`_
225224
- `Python 3.9`_
226225
- `Python 3.10`_
227226
- `Python 3.11`_
228227
- `Python 3.12`_
229228
- `Python 3.13`_
230229

231-
.. _Python 3.8: https://docs.python.org/3.8/
232230
.. _Python 3.9: https://docs.python.org/3.9/
233231
.. _Python 3.10: https://docs.python.org/3.10/
234232
.. _Python 3.11: https://docs.python.org/3.11/
@@ -241,7 +239,7 @@ Supported versions can be found in our ``noxfile.py`` `config`_.
241239
.. _config: https://github.com/googleapis/python-bigquery-pandas/blob/main/noxfile.py
242240

243241

244-
We also explicitly decided to support Python 3 beginning with version 3.8.
242+
We also explicitly decided to support Python 3 beginning with version 3.9.
245243
Reasons for this include:
246244

247245
- Encouraging use of newest versions of Python 3

noxfile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
DEFAULT_PYTHON_VERSION = "3.10"
3636

3737

38-
UNIT_TEST_PYTHON_VERSIONS = ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
38+
UNIT_TEST_PYTHON_VERSIONS = ["3.9", "3.10", "3.11", "3.12", "3.13"]
3939
UNIT_TEST_STANDARD_DEPENDENCIES = [
4040
"mock",
4141
"asyncmock",
@@ -57,7 +57,7 @@
5757
"3.9": [],
5858
}
5959

60-
SYSTEM_TEST_PYTHON_VERSIONS = ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
60+
SYSTEM_TEST_PYTHON_VERSIONS = ["3.9", "3.10", "3.11", "3.12", "3.13"]
6161
SYSTEM_TEST_STANDARD_DEPENDENCIES = [
6262
"mock",
6363
"pytest",

owlbot.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@
3535
extras = ["tqdm", "geopandas"]
3636
templated_files = common.py_library(
3737
default_python_version="3.10",
38-
unit_test_python_versions=["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"],
39-
system_test_python_versions=["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"],
38+
unit_test_python_versions=["3.9", "3.10", "3.11", "3.12", "3.13"],
39+
system_test_python_versions=["3.9", "3.10", "3.11", "3.12", "3.13"],
4040
cov_level=96,
4141
unit_test_external_dependencies=["freezegun"],
4242
unit_test_extras=extras,
@@ -57,8 +57,9 @@
5757
"docs/multiprocessing.rst",
5858
"noxfile.py",
5959
"README.rst",
60-
# exclude this file as we have an alternate prerelease.cfg
6160
".github/workflows/docs.yml",
61+
".github/sync-repo-settings.yaml",
62+
# exclude this file as we have an alternate prerelease.cfg
6263
".kokoro/presubmit/prerelease-deps.cfg",
6364
".kokoro/presubmit/presubmit.cfg",
6465
],

pandas_gbq/__init__.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111
from .gbq import read_gbq, to_gbq # noqa
1212

1313
sys_major, sys_minor, sys_micro = _versions_helpers.extract_runtime_version()
14-
if sys_major == 3 and sys_minor in (7, 8):
14+
if sys_major == 3 and sys_minor < 9:
1515
warnings.warn(
16-
"The python-bigquery library will stop supporting Python 3.7 "
17-
"and Python 3.8 in a future major release expected in Q4 2024. "
18-
f"Your Python version is {sys_major}.{sys_minor}.{sys_micro}. We "
19-
"recommend that you update soon to ensure ongoing support. For "
20-
"more details, see: [Google Cloud Client Libraries Supported Python Versions policy](https://cloud.google.com/python/docs/supported-python-versions)",
21-
PendingDeprecationWarning,
16+
"pandas-gbq no longer supports Python versions older than 3.9. "
17+
"Your Python version is "
18+
f"{sys_major}.{sys_minor}.{sys_micro}. Please update "
19+
"to Python 3.9 or newer to ensure ongoing support. For more details, "
20+
"see: https://cloud.google.com/python/docs/supported-python-versions",
21+
FutureWarning,
2222
)
2323

2424
__version__ = pandas_gbq_version.__version__

samples/snippets/requirements.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
google-cloud-bigquery-storage==2.29.1
22
google-cloud-bigquery==3.30.0
33
pandas-gbq==0.28.0
4-
pandas===2.0.3; python_version == '3.8'
5-
pandas==2.2.3; python_version >= '3.9'
6-
pyarrow==19.0.1; python_version >= '3.9'
4+
pandas==2.2.3
5+
pyarrow==19.0.1

setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@
8585
"License :: OSI Approved :: BSD License",
8686
"Programming Language :: Python",
8787
"Programming Language :: Python :: 3",
88-
"Programming Language :: Python :: 3.8",
8988
"Programming Language :: Python :: 3.9",
9089
"Programming Language :: Python :: 3.10",
9190
"Programming Language :: Python :: 3.11",
@@ -99,7 +98,7 @@
9998
packages=packages,
10099
install_requires=dependencies,
101100
extras_require=extras,
102-
python_requires=">=3.8",
101+
python_requires=">=3.9",
103102
include_package_data=True,
104103
zip_safe=False,
105104
)

testing/constraints-3.8.txt

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)