-
Notifications
You must be signed in to change notification settings - Fork 85
build: update package to use pyproject.toml #1230
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
ef15d73
3057ea5
845a978
f897743
d32db7a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,84 @@ | ||
| # Copyright 2025 Google LLC | ||
| # | ||
| # Licensed under the Apache License, Version 2.0 (the "License"); | ||
| # you may not use this file except in compliance with the License. | ||
| # You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
|
|
||
| [build-system] | ||
| requires = ["setuptools"] | ||
| build-backend = "setuptools.build_meta" | ||
|
|
||
| [project] | ||
| description = "Google Cloud SQL Python Connector library" | ||
| name = "cloud-sql-python-connector" | ||
| authors = [{ name = "Google LLC", email = "googleapis-packages@google.com" }] | ||
| license = { text = "Apache 2.0" } | ||
| requires-python = ">=3.9" | ||
| readme = "README.md" | ||
| classifiers = [ | ||
| # Should be one of: | ||
| # "Development Status :: 3 - Alpha" | ||
| # "Development Status :: 4 - Beta" | ||
| # "Development Status :: 5 - Production/Stable" | ||
| "Development Status :: 5 - Production/Stable", | ||
| "Intended Audience :: Developers", | ||
| "License :: OSI Approved :: Apache Software License", | ||
| "Programming Language :: Python", | ||
| "Programming Language :: Python :: 3", | ||
| "Programming Language :: Python :: 3.9", | ||
| "Programming Language :: Python :: 3.10", | ||
| "Programming Language :: Python :: 3.11", | ||
| "Programming Language :: Python :: 3.12", | ||
| "Programming Language :: Python :: 3.13", | ||
| "Operating System :: OS Independent", | ||
| ] | ||
| dependencies = [ | ||
| "aiofiles", | ||
| "aiohttp", | ||
| "cryptography>=42.0.0", | ||
| "dnspython>=2.0.0", | ||
| "Requests", | ||
| "google-auth>=2.28.0", | ||
| ] | ||
| dynamic = ["version"] | ||
|
|
||
| [project.urls] | ||
| Homepage = "https://github.com/GoogleCloudPlatform/cloud-sql-python-connector" | ||
| Repository = "https://github.com/GoogleCloudPlatform/cloud-sql-python-connector.git" | ||
| Issues = "https://github.com/GoogleCloudPlatform/cloud-sql-python-connector/issues" | ||
| Changelog = "https://github.com/GoogleCloudPlatform/cloud-sql-python-connector/blob/main/CHANGELOG.md" | ||
|
|
||
| [project.optional-dependencies] | ||
| pymysql = ["PyMySQL>=1.1.0"] | ||
| pg8000 = ["pg8000>=1.31.1"] | ||
| pytds = ["python-tds>=1.15.0"] | ||
| asyncpg = ["asyncpg>=0.30.0"] | ||
|
|
||
| [tool.setuptools.dynamic] | ||
| version = { attr = "google.cloud.sql.connector.version.__version__" } | ||
|
|
||
| [tool.setuptools.package-data] | ||
| "google.cloud.sql.connector" = ["py.typed"] | ||
|
|
||
| [tool.setuptools.packages.find] | ||
| # Only include packages under the 'google' namespace. Do not include tests, | ||
| # benchmarks, etc. | ||
| include = ["google*"] | ||
|
|
||
| [tool.mypy] | ||
| python_version = "3.9" | ||
| namespace_packages = true | ||
| ignore_missing_imports = true | ||
| warn_unused_configs = true | ||
| exclude = ['docs/*', 'samples/*'] | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just curious: are we currently excluding
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nope, just copied the guidance from the google api core PR |
||
|
|
||
| [tool.pytest.ini_options] | ||
| asyncio_mode = "auto" | ||
This file was deleted.
This file was deleted.
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.