|
11 | 11 | # copies or substantial portions of the Software. |
12 | 12 | # |
13 | 13 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
14 | | -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS |
15 | | -# FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR |
16 | | -# COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER |
17 | | -# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN |
18 | | -# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
| 14 | +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 15 | +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 16 | +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 17 | +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| 18 | +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
| 19 | +# SOFTWARE. |
19 | 20 |
|
20 | | -import os |
21 | | -import re |
| 21 | +from setuptools import setup |
22 | 22 |
|
23 | | -from setuptools import setup, find_packages |
24 | | - |
25 | | -with open( |
26 | | - os.path.join(os.path.dirname(__file__), "sqlalchemy_datastore", "__init__.py") |
27 | | -) as v: |
28 | | - version_match = re.compile(r'.*__version__ = "(.*?)"', re.S).match(v.read()) |
29 | | -if not version_match: |
30 | | - raise RuntimeError("Unable to find version string in __init__.py.") |
31 | | -VERSION = version_match.group(1) |
32 | | - |
33 | | -readme = os.path.join(os.path.dirname(__file__), "README.md") |
34 | | -with open(readme) as f: |
35 | | - long_description = f.read() |
36 | | - |
37 | | - |
38 | | -setup( |
39 | | - name="python-datastore-sqlalchemy", |
40 | | - version=VERSION, |
41 | | - description="SQLAlchemy dialect for google cloud datastore", |
42 | | - long_description=long_description, |
43 | | - long_description_content_type="text/markdown", |
44 | | - url="https://github.com/splasky/python-datastore-sqlalchemy", |
45 | | - author="HY Chang(splasky)", |
46 | | - author_email="hychang.1997.tw@gmail.com", |
47 | | - license="MIT", |
48 | | - classifiers=[ |
49 | | - "Development Status :: 2 - Pre-Alpha", |
50 | | - "Intended Audience :: Developers", |
51 | | - "Programming Language :: Python", |
52 | | - "Programming Language :: Python :: 3", |
53 | | - "Programming Language :: Python :: Implementation :: CPython", |
54 | | - "Topic :: Database :: Front-Ends", |
55 | | - "Operating System :: POSIX :: Linux", |
56 | | - ], |
57 | | - keywords="SQLAlchemy GCP Datastore", |
58 | | - python_requires=">=3.9", |
59 | | - project_urls={ |
60 | | - "Documentation": "https://github.com/splasky/python-datastore-sqlalchemy/wiki", |
61 | | - "Source": "https://github.com/splasky/python-datastore-sqlalchemy", |
62 | | - "Tracker": "https://github.com/splasky/python-datastore-sqlalchemy/issues", |
63 | | - }, |
64 | | - packages=find_packages(include=["sqlalchemy_datastore"]), |
65 | | - include_package_data=True, |
66 | | - install_requires=[ |
67 | | - "sqlalchemy>=1.4.16,<3.0.0", |
68 | | - "google-cloud-datastore>=2.21.0", |
69 | | - "google-cloud-firestore>=2.21.0", |
70 | | - "google-cloud-bigquery>=3.35.0", |
71 | | - "google-auth>=2.40.0", |
72 | | - "sqlglot>=28.0.0", |
73 | | - "pandas>=2.0.0", |
74 | | - "requests", |
75 | | - ], |
76 | | - zip_safe=False, |
77 | | - entry_points={ |
78 | | - "sqlalchemy.dialects": ["datastore = sqlalchemy_datastore:CloudDatastoreDialect"] |
79 | | - }, |
80 | | -) |
| 23 | +setup() |
0 commit comments