Skip to content

Commit

Permalink
Merge branch 'main' into pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
  • Loading branch information
Secrus authored Oct 7, 2024
2 parents a10f9f8 + 624ac98 commit 5ca3f31
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/poetry_plugin_export/exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

from cleo.io.io import IO
from poetry.core.packages.dependency_group import MAIN_GROUP
from poetry.core.packages.utils.utils import create_nested_marker
from poetry.core.version.markers import parse_marker
from poetry.repositories.http_repository import HTTPRepository

from poetry_plugin_export.walker import get_project_dependency_packages
Expand Down Expand Up @@ -93,11 +95,17 @@ def _export_generic_txt(
list(self._groups), only=True
)

python_marker = parse_marker(
create_nested_marker(
"python_version", self._poetry.package.python_constraint
)
)

for dependency_package in get_project_dependency_packages(
self._poetry.locker,
project_requires=root.all_requires,
root_package_name=root.name,
project_python_marker=root.python_marker,
project_python_marker=python_marker,
extras=self._extras,
):
line = ""
Expand Down

0 comments on commit 5ca3f31

Please sign in to comment.