[project] updating project structure
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
import tomlkit
|
||||
import pathlib
|
||||
|
||||
|
||||
def load_project_settings(project_root):
|
||||
# Read the pyproject.toml file
|
||||
with open(pathlib.Path.joinpath(project_root, 'pyproject.toml'), 'r') as f:
|
||||
with open(pathlib.Path.joinpath(project_root, "pyproject.toml"), "r") as f:
|
||||
pyproject_content = f.read()
|
||||
|
||||
# Parse the toml content
|
||||
@@ -11,16 +12,16 @@ def load_project_settings(project_root):
|
||||
|
||||
# Access project settings
|
||||
return {
|
||||
'name': pyproject['tool']['poetry']['name'],
|
||||
'version': pyproject['tool']['poetry']['version'],
|
||||
'description': pyproject['tool']['poetry']['description'],
|
||||
'authors': pyproject['tool']['poetry']['authors'],
|
||||
'readme': pyproject['tool']['poetry']['authors'],
|
||||
'licence': pyproject['tool']['poetry']['license'],
|
||||
'organization': pyproject['tool']['poetry']['organization'],
|
||||
'classifiers': pyproject['tool']['poetry']['classifiers'],
|
||||
'copyright': pyproject['tool']['poetry']['copyright'],
|
||||
"repository": pyproject['tool']['poetry']['repository'],
|
||||
"name": pyproject["tool"]["poetry"]["name"],
|
||||
"version": pyproject["tool"]["poetry"]["version"],
|
||||
"description": pyproject["tool"]["poetry"]["description"],
|
||||
"authors": pyproject["tool"]["poetry"]["authors"],
|
||||
"readme": pyproject["tool"]["poetry"]["authors"],
|
||||
"licence": pyproject["tool"]["poetry"]["license"],
|
||||
"organization": pyproject["project"]["organization"],
|
||||
"classifiers": pyproject["tool"]["poetry"]["classifiers"],
|
||||
"copyright": pyproject["project"]["copyright"],
|
||||
"repository": pyproject["tool"]["poetry"]["repository"],
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user