diff --git a/MANIFEST.in b/MANIFEST.in index 8f1cd37f7c..a0882f6fb1 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -9,7 +9,6 @@ graft docs graft requirements graft test -includes *.md include NOTICE prune .devtools @@ -21,3 +20,6 @@ prune evaluations exclude .dockerignore exclude .gitignore exclude dev_setup.sh + +global-exclude */__pycache__/* +global-exclude *.pyc diff --git a/src/gluonts/meta/_version.py b/src/gluonts/meta/_version.py index e5743986f0..44e409800a 100644 --- a/src/gluonts/meta/_version.py +++ b/src/gluonts/meta/_version.py @@ -243,7 +243,8 @@ def make_release_tree(self, base_dir, files): super().make_release_tree(base_dir, files) write_version( - Path(base_dir) / package_root.relative_to(dist_root()) + Path(base_dir) + / Path(__file__).parent.resolve().relative_to(dist_root()) ) return {"sdist": sdist, "build_py": build_py}