Gwardia-Czapli / GwardiaHub

All-in-one webite for school assistance and efficient management of Gwardia activities.
https://gwardiahub.fly.dev/
GNU General Public License v3.0
4 stars 1 forks source link

[Bug]: Package mode in poetry #11

Closed Norbiros closed 3 months ago

Norbiros commented 3 months ago

Description

Warning: The current project could not be installed: No file/folder found for package gwardiahub
If you do not want to install the current project use --no-root.
If you want to use Poetry only for dependency management but not for packaging, you can disable package mode by setting package-mode = false in your pyproject.toml file.
In a future version of Poetry this warning will become an error!

We can safely add package-mode = false, because we have different project structure due to Django <3

Steps to reproduce

  1. poetry install

Demonstration(s) and additional context

Fix:

Index: pyproject.toml
<+>UTF-8
===================================================================
diff --git a/pyproject.toml b/pyproject.toml
--- a/pyproject.toml    (revision 3f85fa690bcb54f56c75407819500696629b186a)
+++ b/pyproject.toml    (date 1711136959959)
@@ -6,6 +6,7 @@
 license = "GPL-3.0"
 readme = "README.md"
 homepage="https://github.com/Gwardia-Czapli/GwardiaHub"
+package-mode = false

 [tool.poetry.dependencies]
 python = "^3.11"