Skip to content

Commit

Permalink
allow access to path to access requirement.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonykim1 committed Jan 30, 2024
1 parent 3f25b72 commit e0eb242
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
File renamed without changes.
26 changes: 26 additions & 0 deletions .github/workflows/pypi_notifier.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# import github
# import os

# GH = github.Github(os.getenv("GITHUB_ACCESS_TOKEN"))
# GH_REPO = GH.get_repo(os.getenv("GITHUB_REPOSITORY"))


import pathlib


def main():
# load in list of packages and its version from requirements.txt that is in one directory above
root_path = pathlib.Path(__file__).parent.parent.parent
requirement_path = pathlib.Path(root_path, "requirements.txt").read_text(
encoding="utf-8"
)
# with open(requirement_path, "r") as f:
# packages = f.readlines()
# packages = [package.strip() for package in packages]
# packages = [package.split("==") for package in packages]
# print(packages)
print(requirement_path)


if __name__ == "__main__":
main()

0 comments on commit e0eb242

Please sign in to comment.