|
14 | 14 |
|
15 | 15 | import io |
16 | 16 | import os |
17 | | -import warnings |
18 | 17 |
|
19 | 18 | import setuptools |
20 | 19 |
|
|
37 | 36 | } |
38 | 37 |
|
39 | 38 | BASE_DIR = os.path.dirname(__file__) |
40 | | -VERSION_FILENAME = os.path.join(BASE_DIR, "version.py") |
| 39 | +VERSION_FILENAME = os.path.join(BASE_DIR, "google/cloud/sqlalchemy_spanner/version.py") |
41 | 40 | PACKAGE_INFO = {} |
42 | 41 | with open(VERSION_FILENAME) as f: |
43 | 42 | exec(f.read(), PACKAGE_INFO) |
|
56 | 55 | if package.startswith("google") |
57 | 56 | ] |
58 | 57 |
|
59 | | -# Determine which namespaces are needed. |
60 | | -namespaces = ["google"] |
61 | | -if "google.cloud" in packages: |
62 | | - namespaces.append("google.cloud") |
63 | | - |
64 | | -with warnings.catch_warnings(): |
65 | | - warnings.simplefilter("ignore") |
66 | | - setuptools.setup( |
67 | | - author="Google LLC", |
68 | | - author_email="cloud-spanner-developers@googlegroups.com", |
69 | | - classifiers=["Intended Audience :: Developers"], |
70 | | - description=description, |
71 | | - long_description=readme, |
72 | | - entry_points={ |
73 | | - "sqlalchemy.dialects": [ |
74 | | - "spanner.spanner = google.cloud.sqlalchemy_spanner:SpannerDialect" |
75 | | - ] |
76 | | - }, |
77 | | - install_requires=dependencies, |
78 | | - extras_require=extras, |
79 | | - name=name, |
80 | | - namespace_packages=namespaces, |
81 | | - packages=packages, |
82 | | - url="https://github.com/cloudspannerecosystem/python-spanner-sqlalchemy", |
83 | | - version=version, |
84 | | - include_package_data=True, |
85 | | - zip_safe=False, |
86 | | - ) |
| 58 | +setuptools.setup( |
| 59 | + author="Google LLC", |
| 60 | + author_email="googleapis-packages@google.com", |
| 61 | + classifiers=["Intended Audience :: Developers"], |
| 62 | + description=description, |
| 63 | + long_description=readme, |
| 64 | + entry_points={ |
| 65 | + "sqlalchemy.dialects": [ |
| 66 | + "spanner.spanner = google.cloud.sqlalchemy_spanner:SpannerDialect" |
| 67 | + ] |
| 68 | + }, |
| 69 | + install_requires=dependencies, |
| 70 | + extras_require=extras, |
| 71 | + name=name, |
| 72 | + packages=packages, |
| 73 | + url="https://github.com/cloudspannerecosystem/python-spanner-sqlalchemy", |
| 74 | + version=version, |
| 75 | + include_package_data=True, |
| 76 | + zip_safe=False, |
| 77 | +) |
0 commit comments