Skip to content

Commit

Permalink
Fix _version location for sdist. (#2729)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jasper authored Mar 20, 2023
1 parent 25e6fd2 commit bb48fa3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ graft docs
graft requirements
graft test

includes *.md
include NOTICE

prune .devtools
Expand All @@ -21,3 +20,6 @@ prune evaluations
exclude .dockerignore
exclude .gitignore
exclude dev_setup.sh

global-exclude */__pycache__/*
global-exclude *.pyc
3 changes: 2 additions & 1 deletion src/gluonts/meta/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit bb48fa3

Please sign in to comment.