Skip to content
This repository has been archived by the owner on Aug 19, 2023. It is now read-only.

Commit

Permalink
v0.1.1: added missing dependency on google.auth package. cleaned up i…
Browse files Browse the repository at this point in the history
…mports
  • Loading branch information
SteveAlexander committed Aug 1, 2021
1 parent 92b028e commit 0725d9c
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 13 deletions.
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
google-cloud-firestore>=2.1.3
google-auth>=1.33.0
18 changes: 9 additions & 9 deletions retirable_resources/resource_manager.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
from typing import cast, Literal, Optional, Any, Generator, Union, Iterable

from google.auth.credentials import Credentials
from google.cloud.exceptions import Conflict
from google.cloud.firestore_v1.base_query import BaseQuery
from google.cloud.firestore_v1.field_path import (
get_field_path,
FieldPath,
)
from google.cloud.firestore_v1 import (
Client,
DocumentReference,
Expand All @@ -7,15 +16,6 @@
transactional,
DELETE_FIELD,
)
from google.cloud.firestore_v1.base_query import BaseQuery
from google.cloud.firestore_v1.field_path import (
parse_field_path,
get_field_path,
FieldPath,
)
from google.auth.credentials import Credentials
from typing import cast, Literal, Optional, Any, Generator, Union, Iterable
from google.cloud.exceptions import Conflict


class RetirableResourcesException(Exception):
Expand Down
2 changes: 1 addition & 1 deletion retirable_resources/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.1.0"
__version__ = "0.1.1"
2 changes: 2 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[metadata]
description-file = README.md
8 changes: 5 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
_here = os.path.abspath(os.path.dirname(__file__))

if sys.version_info[0] < 3:
with open(os.path.join(_here, "README.rst")) as f:
with open(os.path.join(_here, "README.md")) as f:
long_description = f.read()
else:
with open(os.path.join(_here, "README.rst"), encoding="utf-8") as f:
with open(os.path.join(_here, "README.md"), encoding="utf-8") as f:
long_description = f.read()

version = {}
with open(os.path.join(_here, "somepackage", "version.py")) as f:
with open(os.path.join(_here, "retirable_resources", "version.py")) as f:
exec(f.read(), version)

setup(
Expand All @@ -23,10 +23,12 @@
author="Steve Alexander",
author_email="steve@stevea.com",
url="https://github.com/SteveAlexander/retirable_resources",
download_url="https://github.com/SteveAlexander/retirable_resources/archive/refs/tags/0.1.1.tar.gz",
license="MIT",
packages=["retirable_resources"],
install_requires=[
"google-cloud-firestore>=2.1.3",
"google-auth>=1.33.0",
],
# no scripts in this example
# scripts=['bin/a-script'],
Expand Down

0 comments on commit 0725d9c

Please sign in to comment.