| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 961eacd commit f38cd44
8 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -34,7 +34,17 @@ | |||
| 34 | 34 | ||
| 35 | 35 | DEFAULT_PYTHON_VERSION = "3.14" | |
| 36 | 36 | ||
| 37 | - UNIT_TEST_PYTHON_VERSIONS = ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"] | ||
| 37 | + UNIT_TEST_PYTHON_VERSIONS = [ | ||
| 38 | + "3.10", | ||
| 39 | + "3.11", | ||
| 40 | + "3.12", | ||
| 41 | + "3.13", | ||
| 42 | + "3.14", | ||
| 43 | + # Not supported, but included so that we can explicitly skip the session | ||
| 44 | + # from here. Keep unsupported versions last so that they don't conflict with | ||
| 45 | + # the prerelease_deps session. | ||
| 46 | + "3.9", | ||
| 47 | + ] | ||
| 38 | 48 | ||
| 39 | 49 | UNIT_TEST_STANDARD_DEPENDENCIES = [ | |
| 40 | 50 | "mock", | |
@@ -54,7 +64,7 @@ | |||
| 54 | 64 | "geopandas", | |
| 55 | 65 | ] | |
| 56 | 66 | UNIT_TEST_EXTRAS_BY_PYTHON = { | |
| 57 | - "3.9": [], | ||
| 67 | + "3.10": [], | ||
| 58 | 68 | } | |
| 59 | 69 | ||
| 60 | 70 | SYSTEM_TEST_PYTHON_VERSIONS = ["3.12"] | |
@@ -225,6 +235,8 @@ def default(session): | |||
| 225 | 235 | @_calculate_duration | |
| 226 | 236 | def unit(session): | |
| 227 | 237 | """Run the unit test suite.""" | |
| 238 | + if session.python == "3.9": | ||
| 239 | + session.skip("Python 3.9 is not supported.") | ||
| 228 | 240 | default(session) | |
| 229 | 241 | ||
| 230 | 242 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -18,7 +18,6 @@ | |||
| 18 | 18 | ||
| 19 | 19 | import pandas_gbq.core.resource_references | |
| 20 | 20 | ||
| 21 | - | ||
| 22 | 21 | _DRY_RUN_TEMPLATE = """ | |
| 23 | 22 | SELECT * | |
| 24 | 23 | FROM `{project}.{catalog}.{namespace}.{table}` | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -8,7 +8,6 @@ | |||
| 8 | 8 | import re | |
| 9 | 9 | from typing import Union | |
| 10 | 10 | ||
| 11 | - | ||
| 12 | 11 | _TABLE_REFEREENCE_PATTERN = re.compile( | |
| 13 | 12 | # In the past, organizations could prefix their project IDs with a domain | |
| 14 | 13 | # name. Such projects still exist, especially at Google. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -13,10 +13,10 @@ | |||
| 13 | 13 | import psutil | |
| 14 | 14 | ||
| 15 | 15 | import pandas_gbq.constants | |
| 16 | - import pandas_gbq.core.read | ||
| 17 | 16 | import pandas_gbq.core.biglake | |
| 18 | - import pandas_gbq.gbq_connector | ||
| 17 | + import pandas_gbq.core.read | ||
| 19 | 18 | import pandas_gbq.core.resource_references | |
| 19 | + import pandas_gbq.gbq_connector | ||
| 20 | 20 | ||
| 21 | 21 | # Only import at module-level at type checking time to avoid circular | |
| 22 | 22 | # dependencies in the pandas package, which has an optional dependency on | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -22,10 +22,10 @@ | |||
| 22 | 22 | release_status = "Development Status :: 4 - Beta" | |
| 23 | 23 | dependencies = [ | |
| 24 | 24 | "setuptools", | |
| 25 | - "db-dtypes >=1.0.4,<2.0.0", | ||
| 26 | - "numpy >=1.18.1", | ||
| 27 | - "pandas >=1.1.4", | ||
| 28 | - "pyarrow >= 4.0.0", | ||
| 25 | + "db-dtypes >=1.1.1,<2.0.0", | ||
| 26 | + "numpy >=1.26.4", | ||
| 27 | + "pandas >=1.5.3", | ||
| 28 | + "pyarrow >= 12.0.0", | ||
| 29 | 29 | # See https://arrow.apache.org/release/22.0.0.html | |
| 30 | 30 | "pyarrow >= 22.0.0; python_version >= '3.14'", | |
| 31 | 31 | "pydata-google-auth >=1.5.0", | |
@@ -46,7 +46,7 @@ | |||
| 46 | 46 | "google-cloud-bigquery-storage >=2.16.2, <3.0.0", | |
| 47 | 47 | ], | |
| 48 | 48 | "tqdm": ["tqdm>=4.23.0"], | |
| 49 | - "geopandas": ["geopandas>=0.9.0", "Shapely>=1.8.4"], | ||
| 49 | + "geopandas": ["geopandas>=0.14.4", "Shapely>=1.8.5"], | ||
| 50 | 50 | } | |
| 51 | 51 | ||
| 52 | 52 | # Setup boilerplate below this line. | |
@@ -88,7 +88,6 @@ | |||
| 88 | 88 | "License :: OSI Approved :: BSD License", | |
| 89 | 89 | "Programming Language :: Python", | |
| 90 | 90 | "Programming Language :: Python :: 3", | |
| 91 | - "Programming Language :: Python :: 3.9", | ||
| 92 | 91 | "Programming Language :: Python :: 3.10", | |
| 93 | 92 | "Programming Language :: Python :: 3.11", | |
| 94 | 93 | "Programming Language :: Python :: 3.12", | |
@@ -102,7 +101,7 @@ | |||
| 102 | 101 | packages=packages, | |
| 103 | 102 | install_requires=dependencies, | |
| 104 | 103 | extras_require=extras, | |
| 105 | - python_requires=">=3.9", | ||
| 104 | + python_requires=">=3.10", | ||
| 106 | 105 | include_package_data=True, | |
| 107 | 106 | zip_safe=False, | |
| 108 | 107 | ) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,23 @@ | |||
| 1 | + # This constraints file is used to check that lower bounds | ||
| 2 | + # are correct in setup.py | ||
| 3 | + # List *all* library dependencies and extras in this file. | ||
| 4 | + # Pin the version to the lower bound. | ||
| 5 | + # | ||
| 6 | + # e.g., if setup.py has "foo >= 1.14.0, < 2.0.0dev", | ||
| 7 | + # Then this file should have foo==1.14.0 | ||
| 8 | + db-dtypes==1.1.1 | ||
| 9 | + numpy==1.26.4 | ||
| 10 | + pandas==1.5.3 | ||
| 11 | + psutil==5.9.8 | ||
| 12 | + pyarrow==12.0.0 | ||
| 13 | + pydata-google-auth==1.5.0 | ||
| 14 | + google-api-core==2.15.0 | ||
| 15 | + google-auth==2.14.1 | ||
| 16 | + google-auth-oauthlib==0.7.0 | ||
| 17 | + google-cloud-bigquery==3.20.0 | ||
| 18 | + packaging==22.0.0 | ||
| 19 | + # Extras | ||
| 20 | + google-cloud-bigquery-storage==2.16.2 | ||
| 21 | + tqdm==4.23.0 | ||
| 22 | + geopandas==0.14.4 | ||
| 23 | + Shapely==1.8.5 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -7,8 +7,7 @@ | |||
| 7 | 7 | ||
| 8 | 8 | import google.cloud.bigquery | |
| 9 | 9 | ||
| 10 | - from pandas_gbq.core import biglake | ||
| 11 | - from pandas_gbq.core import resource_references | ||
| 10 | + from pandas_gbq.core import biglake, resource_references | ||
| 12 | 11 | ||
| 13 | 12 | ||
| 14 | 13 | def test_get_table_metadata(mock_bigquery_client): | |
| Back | FazBrowse Home | New Git URL |
0 commit comments