Skip to content

Commit

Permalink
FIX: exclude .egg-info directories (#236)
Browse files Browse the repository at this point in the history
  • Loading branch information
redeboer authored Dec 3, 2023
1 parent cf04dc0 commit ac32680
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/repoma/check_dev_files/github_workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,12 @@ def __get_package_name() -> str:
if os.path.exists(f"src/{package_name}/"):
return package_name
src_dirs = os.listdir("src/")
candidate_dirs = [s for s in src_dirs if s.startswith(pypi_name[0].lower())]
candidate_dirs = [
s
for s in src_dirs
if s.startswith(pypi_name[0].lower())
if not s.endswith(".egg-info")
]
if candidate_dirs:
return sorted(candidate_dirs)[0]
return sorted(src_dirs)[0]
Expand Down

0 comments on commit ac32680

Please sign in to comment.