From 983d2d788ec2ab7cd89cd0d5b7f7e4fdc53f861f Mon Sep 17 00:00:00 2001 From: Shanika Kuruppu Date: Wed, 8 Dec 2021 16:51:47 +1100 Subject: [PATCH 1/4] chore: release 1.0.0 Release-As: 1.0.0 --- README.md | 8 ++++---- setup.py | 10 +++++++++- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 46eae914..2ba11fbb 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Spanner dialect for SQLAlchemy represents an interface API designed to make it possible to control Cloud Spanner databases with SQLAlchemy API. The dialect is built on top of [the Spanner DB API](https://github.com/googleapis/python-spanner/tree/master/google/cloud/spanner_dbapi), which is designed in accordance with [PEP-249](https://www.python.org/dev/peps/pep-0249/). -This project has **Preview** release status. Known limitations are listed [here](#features-and-limitations). All supported features have been tested and verified to work with the test configurations. There may be configurations and/or data model variations that have not yet been covered by the tests and that show unexpected behavior. Please report any problems that you might encounter by [creating a new issue](https://github.com/cloudspannerecosystem/python-spanner-sqlalchemy/issues/new). +Known limitations are listed [here](#features-and-limitations). All supported features have been tested and verified to work with the test configurations. There may be configurations and/or data model variations that have not yet been covered by the tests and that show unexpected behavior. Please report any problems that you might encounter by [creating a new issue](https://github.com/googleapis/python-spanner-sqlalchemy/issues/new). **NOTE: This project may still make breaking changes without prior notice and should not yet be used for production purposes.** @@ -22,7 +22,7 @@ In order to use this package, you first need to go through the following steps: To install an in-development version of the package, clone its Git-repository: ``` -git clone https://github.com/cloudspannerecosystem/python-spanner-sqlalchemy.git +git clone https://github.com/googleapis/python-spanner-sqlalchemy.git ``` Next install the package from the package `setup.py` file: ``` @@ -291,11 +291,11 @@ The dialect test suite can be runned on [Spanner emulator](https://cloud.google. ## Contributing -Contributions to this library are welcome and encouraged. Please report issues, file feature requests, and send pull requests. See [CONTRIBUTING](https://github.com/cloudspannerecosystem/python-spanner-sqlalchemy/blob/main/contributing.md) for more information on how to get +Contributions to this library are welcome and encouraged. Please report issues, file feature requests, and send pull requests. See [CONTRIBUTING](https://github.com/googleapis/python-spanner-sqlalchemy/blob/main/contributing.md) for more information on how to get started. **Note that this project is not officially supported by Google as part of the Cloud Spanner product.** Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms. See the [Code -of Conduct](https://github.com/cloudspannerecosystem/python-spanner-sqlalchemy/blob/main/code-of-conduct.md) for more information. +of Conduct](https://github.com/googleapis/python-spanner-sqlalchemy/blob/main/code-of-conduct.md) for more information. diff --git a/setup.py b/setup.py index 09d67985..c2cfe3ea 100644 --- a/setup.py +++ b/setup.py @@ -12,6 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. +import os import setuptools @@ -32,6 +33,13 @@ ] } +BASE_DIR = os.path.dirname(__file__) +VERSION_FILENAME = os.path.join(BASE_DIR, "version.py") +PACKAGE_INFO = {} +with open(VERSION_FILENAME) as f: + exec(f.read(), PACKAGE_INFO) +version = PACKAGE_INFO["__version__"] + # Only include packages under the 'google' namespace. Do not include tests, # benchmarks, etc. packages = [ @@ -61,7 +69,7 @@ namespace_packages=namespaces, packages=packages, url="https://github.com/cloudspannerecosystem/python-spanner-sqlalchemy", - version="0.1", + version=version, include_package_data=True, zip_safe=False, ) From 87a56508c89c9d169a1bc9f29d26b9605769ac78 Mon Sep 17 00:00:00 2001 From: Shanika Kuruppu Date: Wed, 8 Dec 2021 16:54:25 +1100 Subject: [PATCH 2/4] chore: remove dev build --- setup.cfg | 3 --- 1 file changed, 3 deletions(-) diff --git a/setup.cfg b/setup.cfg index 7b1c6800..fd3202c4 100644 --- a/setup.cfg +++ b/setup.cfg @@ -14,9 +14,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -[egg_info] -tag_build = dev - [tool:pytest] addopts= --tb native -v -r fxX --maxfail=25 -p no:warnings python_files=test/*test_*.py From 34c41508a7dadaaf5f4729e3644411e2f672fb31 Mon Sep 17 00:00:00 2001 From: Shanika Kuruppu Date: Wed, 8 Dec 2021 16:58:45 +1100 Subject: [PATCH 3/4] fix: add version.py --- version.py | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 version.py diff --git a/version.py b/version.py new file mode 100644 index 00000000..498b5ee5 --- /dev/null +++ b/version.py @@ -0,0 +1,7 @@ +# Copyright 2021 Google LLC +# +# Use of this source code is governed by a BSD-style +# license that can be found in the LICENSE file or at +# https://developers.google.com/open-source/licenses/bsd + +__version__ = "1.0.0" From 20b23f01dc4b97b4e1d435e4bc3cfaceedd300bf Mon Sep 17 00:00:00 2001 From: Shanika Kuruppu Date: Wed, 8 Dec 2021 21:48:59 +1100 Subject: [PATCH 4/4] docs: remove breaking changes note --- README.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/README.md b/README.md index 2ba11fbb..5927cb35 100644 --- a/README.md +++ b/README.md @@ -4,8 +4,6 @@ Spanner dialect for SQLAlchemy represents an interface API designed to make it p Known limitations are listed [here](#features-and-limitations). All supported features have been tested and verified to work with the test configurations. There may be configurations and/or data model variations that have not yet been covered by the tests and that show unexpected behavior. Please report any problems that you might encounter by [creating a new issue](https://github.com/googleapis/python-spanner-sqlalchemy/issues/new). -**NOTE: This project may still make breaking changes without prior notice and should not yet be used for production purposes.** - - [Cloud Spanner product documentation](https://cloud.google.com/spanner/docs) - [SQLAlchemy product documentation](https://www.sqlalchemy.org/)