Skip to content

Commit

Permalink
fix ModuleNotFoundError
Browse files Browse the repository at this point in the history
was failing to find version info and crashing the app; now deploys successfully
  • Loading branch information
mfebrizio committed Jul 2, 2024
1 parent 0735f8c commit 1692ab2
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
15 changes: 8 additions & 7 deletions regdigest/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
__release__ = {
"title": "regulation-digest",
"description": "Program to collect Federal Register documents for the weekly Regulation Digest newsletter.",
"version": "0.4.0",
"author": "Mark Febrizio",
"license": "MIT License"
}
from ._version import __release__

__version__ = __release__.get("version")

__all__ = [
"__release__",
"__version__",
]
7 changes: 7 additions & 0 deletions regdigest/_version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
__release__ = {
"title": "regulation-digest",
"description": "Program to collect Federal Register documents for the weekly Regulation Digest newsletter.",
"version": "0.4.0",
"author": "Mark Febrizio",
"license": "MIT License"
}
2 changes: 1 addition & 1 deletion regdigest/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
from shiny.express import input, render, ui

from retrieve_documents import retrieve_documents
from regdigest import __release__

from _version import __release__

# end date defaults to today's date
TODAY = date.today()
Expand Down

0 comments on commit 1692ab2

Please sign in to comment.