From 3df8df2112be0e43ee865ddb9edaa237024b3163 Mon Sep 17 00:00:00 2001 From: Charlie Denton Date: Wed, 26 Feb 2020 23:34:36 +0000 Subject: [PATCH] Add poetry build info into pyproject.toml This doesn't appear to work at the moment, as when building the wheel, I get the following output: Building django-schema-graph (1.1.0) - Building sdist - Built django-schema-graph-1.1.0.tar.gz [IndexError] list index out of range When I remove `schema_graph/static/schema_graph/main.js` from `.gitignore`, the build succeeds... but I want that file to be ignored. Related to https://github.com/meshy/django-schema-graph/issues/11 --- .gitignore | 1 + pyproject.toml | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 pyproject.toml diff --git a/.gitignore b/.gitignore index 1fdce6b..da737c0 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,4 @@ build dist node_modules schema_graph/static/schema_graph/main.js +poetry.lock diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..c7aa926 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,20 @@ +[tool.poetry] +name = "django-schema-graph" +version = "1.1.0" +description = "An interactive graph of your Django model structure." +authors = ["Charlie Denton "] +license = "MIT" +packages = [ + { include = "schema_graph" }, + { include = "schema_graph/static/schema_graph/main.js" }, +] + +[tool.poetry.dependencies] +python = "~2.7 || ^3.5" +attrs = "" + +[tool.poetry.dev-dependencies] + +[build-system] +requires = ["poetry>=0.12"] +build-backend = "poetry.masonry.api"