From 37a415d071d39e99f233a1c15c1c4b89bd436570 Mon Sep 17 00:00:00 2001 From: skuruppu Date: Thu, 9 Dec 2021 09:23:52 +1100 Subject: [PATCH] chore: setup release 1.0.0 (#165) Release-As: 1.0.0 --- README.md | 10 ++++------ setup.cfg | 3 --- setup.py | 10 +++++++++- version.py | 7 +++++++ 4 files changed, 20 insertions(+), 10 deletions(-) create mode 100644 version.py diff --git a/README.md b/README.md index 46eae914..5927cb35 100644 --- a/README.md +++ b/README.md @@ -2,9 +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). - -**NOTE: This project may still make breaking changes without prior notice and should not yet be used for production purposes.** +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). - [Cloud Spanner product documentation](https://cloud.google.com/spanner/docs) - [SQLAlchemy product documentation](https://www.sqlalchemy.org/) @@ -22,7 +20,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 +289,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.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 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, ) 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"