Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Commit

Permalink
pkg: add missing requirements in manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda committed Feb 22, 2023
1 parent 3d459fb commit 33ca862
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ include LICENSE
include versioneer.py
include rising/_version.py

# Include the Requirements
recursive-include requirements *.txt

# Exclude build configs
exclude *.yml
exclude *.yaml
Expand Down
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,14 @@


def resolve_requirements(file):
path_dir = os.path.dirname(file)
requirements = []
with open(file) as f:
req = f.read().splitlines()
for r in req:
r_path = os.path.join(path_dir, r.split(" ")[1])
if r.startswith("-r"):
requirements += resolve_requirements(os.path.join(os.path.dirname(file), r.split(" ")[1]))
requirements += resolve_requirements(r_path)
else:
requirements.append(r)
return requirements
Expand Down

0 comments on commit 33ca862

Please sign in to comment.