Skip to content

Commit

Permalink
use package name in pip requirements again
Browse files Browse the repository at this point in the history
a relative local directory has du be indicated like file:/../directory
  • Loading branch information
CagtayFabry committed May 21, 2024
1 parent b8316b2 commit a46462b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pydeps2env/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ def _get_dependencies(
if (
not isinstance(r, Requirement) or r.name in _pip_packages
) and r.name not in remove:
pip.append(str(r) if not r.url else r.url)
pip.append(str(r))
pip.sort(key=str.lower)

return deps, pip
Expand Down
6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,9 @@ find = { exclude = [

[tool.setuptools_scm]
write_to = "pydeps2env/_version.py"

[tool.pytest.ini_options]
addopts = "--tb=short --color=yes -rsw --cov=pydeps2env"
testpaths = [
"test",
]

0 comments on commit a46462b

Please sign in to comment.