Skip to content

Commit

Permalink
Merge pull request PrefectHQ#311 from PrefectHQ/small-changes
Browse files Browse the repository at this point in the history
Three small changes
  • Loading branch information
cicdw authored Nov 1, 2018
2 parents 40e0307 + 93e6de5 commit e42fce4
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 123 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -120,5 +120,6 @@ node_modules

# docs
docs/api
docs/changelog.md
docs/deploy/dist
docs/.vuepress/public/prefect-coverage
121 changes: 0 additions & 121 deletions docs/changelog.md

This file was deleted.

19 changes: 19 additions & 0 deletions docs/generate_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,8 @@ def get_class_methods(obj):
shutil.rmtree("api", ignore_errors=True)
os.makedirs("api", exist_ok=True)
generate_coverage()

## UPDATE README
with open("api/README.md", "w+") as f:
f.write(
textwrap.dedent(
Expand Down Expand Up @@ -516,6 +518,23 @@ def get_class_methods(obj):
f.write("\n" + readme[readme.index("# Prefect") :])
f.write(auto_generated_footer)

## UPDATE CHANGELOG
with open("changelog.md", "w+") as f:
f.write(
textwrap.dedent(
"""
---
sidebarDepth: 1
editLink: false
---
"""
).lstrip()
)
with open("../CHANGELOG.md", "r") as g:
changelog = g.read()
f.write(changelog)
f.write(auto_generated_footer)

for page in OUTLINE:
# collect what to document
fname, classes, fns = (
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

install_requires = [
"click >= 6.7, < 7.0",
"cloudpickle == 0.5.3",
"cloudpickle >= 0.6.0",
"croniter >= 0.3.23, < 0.4",
"cryptography >= 2.2.2, < 3.0",
"dask >= 0.18, < 0.19",
Expand Down
4 changes: 3 additions & 1 deletion src/prefect/utilities/collections.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ def flatten_seq(seq: Iterable) -> Generator:
class DotDict(MutableMapping):
"""
A `dict` that also supports attribute ("dot") access. Think of this as an extension
to the standard python `dict` object.
to the standard python `dict` object. **Note**: while any hashable object can be added to
a `DotDict`, _only_ valid Python identifiers can be accessed with the dot syntax; this excludes
strings which begin in numbers, special characters, or double underscores.
Args:
- init_dict (dict, optional): dictionary to initialize the `DotDict`
Expand Down

0 comments on commit e42fce4

Please sign in to comment.