Skip to content

Commit

Permalink
fix: Fix install (included missing VERSION)
Browse files Browse the repository at this point in the history
Refs #637
  • Loading branch information
last-partizan committed May 15, 2022
1 parent 84c5355 commit ab66e8d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .versionrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"repository": "django-modeltranslation",
"bumpFiles": [
{
"filename": "modeltranslation/VERSION",
"filename": "VERSION",
"type": "plain-text"
}
]
Expand Down
3 changes: 2 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
include *.txt *.rst
include *.txt *.rst VERSION
prune modeltranslation/tests
recursive-include docs *.rst conf.py Makefile make.bat
recursive-include modeltranslation/static *
File renamed without changes.
2 changes: 1 addition & 1 deletion modeltranslation/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
except ImportError:
pass

__version__ = (Path(__file__).parent / "VERSION").open().read().strip()
__version__ = (Path(__file__).parent.parent / "VERSION").read_text().strip()

0 comments on commit ab66e8d

Please # to comment.