Skip to content

Commit

Permalink
fix(poetry): Fixed Poetry dev dependencies group assignment
Browse files Browse the repository at this point in the history
When running 'init', dev dependencies are stored in -> 'tool.group.dev.dependencies'.

Must be part of 'tool.poetry'. Now builds as -> 'tool.poetry.group.dev.dependencies'.
  • Loading branch information
Achronus committed Aug 1, 2024
1 parent 8faac30 commit 891d7e4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
10 changes: 5 additions & 5 deletions zentra_api/cli/builder/poetry.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,11 @@ def to_dict(self) -> dict:
**self.desc.model_dump(),
"scripts": self._scripts_to_dict(),
"dependencies": self._deps_to_dict(self.core_deps),
},
"group": {
"dev": {
"dependencies": self._deps_to_dict(self.dev_deps),
}
"group": {
"dev": {
"dependencies": self._deps_to_dict(self.dev_deps),
}
},
},
},
"build-system": self.build_system,
Expand Down
1 change: 1 addition & 0 deletions zentra_api/cli/constants/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ def pypi_url(package: str) -> str:

DEV_PIP_PACKAGES = [
"pytest",
"pytest-cov",
]


Expand Down

0 comments on commit 891d7e4

Please sign in to comment.