Skip to content

Commit

Permalink
Add poetry build info into pyproject.toml
Browse files Browse the repository at this point in the history
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 #11
  • Loading branch information
meshy committed Feb 26, 2020
1 parent 902a04b commit 3df8df2
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ build
dist
node_modules
schema_graph/static/schema_graph/main.js
poetry.lock
20 changes: 20 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 <charlie@meshy.co.uk>"]
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"

0 comments on commit 3df8df2

Please sign in to comment.