Skip to content

Commit

Permalink
Bump requirements, fix flake8 E305 violations
Browse files Browse the repository at this point in the history
  • Loading branch information
numberoverzero committed Mar 9, 2017
1 parent 94eccaf commit 4e51090
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 13 deletions.
1 change: 1 addition & 0 deletions bloop/types.py
Expand Up @@ -181,6 +181,7 @@ def dynamo_dump(self, value, *, context, **kwargs):
return None
return str(value)


FIXED_ISO8601_FORMAT = "%Y-%m-%dT%H:%M:%S.%f+00:00"


Expand Down
1 change: 1 addition & 0 deletions bloop/util.py
Expand Up @@ -153,4 +153,5 @@ def __missing__(self, key):

__iter__ = weakref.WeakKeyDictionary.__iter__


missing = Sentinel("missing")
3 changes: 2 additions & 1 deletion examples/documents.py
Expand Up @@ -24,7 +24,7 @@
Product = Map(**{
'Name': String,
'Rating': Number,
'Updated': DateTime('US/Pacific'),
'Updated': DateTime,
'Description': Map(**{
'Title': String,
'Body': String
Expand All @@ -37,6 +37,7 @@ class Item(BaseModel):
id = Column(UUID, hash_key=True)
data = Column(Product)


engine = Engine()
engine.bind(BaseModel)

Expand Down
3 changes: 2 additions & 1 deletion examples/tweet.py
Expand Up @@ -36,12 +36,13 @@ class Meta:
account = Column(UUID, hash_key=True)
id = Column(String, range_key=True)
content = Column(String)
date = Column(DateTime(timezone='EU/Paris'))
date = Column(DateTime)
favorites = Column(Integer)

by_date = GlobalSecondaryIndex(
hash_key='date', projection='keys')


engine = Engine()
engine.bind(BaseModel)

Expand Down
20 changes: 10 additions & 10 deletions requirements.txt
@@ -1,15 +1,15 @@
alabaster==0.7.9
arrow==0.8.0
alabaster==0.7.10
arrow==0.10.0
blinker==1.4
boto3==1.4.1
coverage==4.2
boto3==1.4.4
coverage==4.3.4
declare==0.9.11
delorean==0.6.0
flake8==3.0.4
pendulum==0.6.5
pytest==3.0.3
Sphinx==1.4.8
sphinx_rtd_theme==0.1.9
tox==2.4.1
flake8==3.3.0
pendulum==1.1.0
pytest==3.0.6
Sphinx==1.5.3
sphinx-rtd-theme==0.2.4
tox==2.6.0
twine==1.8.1
wheel==0.29.0
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -26,7 +26,7 @@ def get_version():

REQUIREMENTS = [
"blinker==1.4",
"boto3==1.4.1",
"boto3==1.4.4",
"declare==0.9.11",
]

Expand Down
3 changes: 3 additions & 0 deletions tests/helpers/models.py
Expand Up @@ -93,6 +93,7 @@ class ProjectedIndexes(BaseModel):
by_gsi = GlobalSecondaryIndex(hash_key="h", projection=["both", "gsi_only"])
by_lsi = LocalSecondaryIndex(range_key="r", projection=["both", "lsi_only"])


conditions = set()


Expand Down Expand Up @@ -152,4 +153,6 @@ def _build_conditions():
between_small, between_big, between_strings,
in_small, in_big, in_numbers
))


_build_conditions()
1 change: 1 addition & 0 deletions tests/unit/test_conditions.py
Expand Up @@ -41,6 +41,7 @@ def __init__(self, name):
# Mock model so this can render as M.name
self.model = type("M", tuple(), {})


c = MockColumn("c")
d = MockColumn("d")

Expand Down
1 change: 1 addition & 0 deletions tests/unit/test_search.py
Expand Up @@ -103,6 +103,7 @@ class TestModel(BaseModel):

return TestModel, by_index_


# LSIs always require a model range key, and index range key.
lsi_for = functools.partial(model_for, has_model_range=True, has_index=True, has_index_range=True, index_type="lsi")
gsi_for = functools.partial(model_for, has_index=True, index_type="gsi")
Expand Down

0 comments on commit 4e51090

Please sign in to comment.