Skip to content

Commit

Permalink
Merge pull request #181 from Bubobubobubobubo/npm-build
Browse files Browse the repository at this point in the history
Automatically build fishery client during wheel creation
  • Loading branch information
Bubobubobubobubo authored Mar 11, 2023
2 parents e2b362e + bb7faf9 commit b43dd15
Show file tree
Hide file tree
Showing 6 changed files with 511 additions and 368 deletions.
4 changes: 4 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
prune **/.svelte-kit
prune **/__pycache__
prune **/build
prune **/node_modules
34 changes: 17 additions & 17 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
requires = ["setuptools>=67.6.0"]
build-backend = "setuptools.build_meta"

[project]
name = "sardine-system"
Expand All @@ -9,10 +9,9 @@ description = "Python's missing algorave module"
authors = [
{ name = "Raphaël Forment" },
{ email = "raphael.forment@gmail.com" },
{ name = "thegamecracks" },
{ name = "thegamecracks" },
]
license = "GPL-3.0-only"
license-files = { paths = ["LICENSE.txt"] }
license = { text = "GPL-3.0-only" }
readme = "README.md"
requires-python = ">=3.10"

Expand Down Expand Up @@ -56,24 +55,25 @@ dependencies = [
"exceptiongroup>=1.0.4",
]

[tool.hatch.build]
exclude = ["sardine/client/node_modules"]
packages = ["fishery", "sardine"]
[tool.setuptools]
# Explicitly declare data files in [tool.setuptools.package-data]
include-package-data = false

[tool.setuptools.dynamic]
version = { attr = "sardine.__version__" }

[tool.hatch.build.targets.sdist]
exclude = ["sardine/client/node_modules", "sardine/client/build"]
packages = ["sardine", "fishery", "tests"]
[tool.setuptools.packages.find]
include = ["fishery**", "sardine**"]
namespaces = false

[tool.hatch.version]
path = "sardine/__init__.py"
[tool.setuptools.package-data]
"sardine.sequences.sardine_parser" = ["*.lark"]
"sardine.superdirt" = ["*.scd"]

[tool.isort]
profile = "black"
skip_gitignore = true

[tool.setuptools]
py-modules = []

[project.optional-dependencies]
dev = [
"black>=22.8",
Expand All @@ -95,7 +95,7 @@ Documentation = "https://sardine.raphaelforment.fr"
fishery = 'fishery.__main__:main'
sardine-config-python = 'sardine.cli.main:edit_python_configuration'
sardine-config-superdirt = 'sardine.cli.main:edit_superdirt_configuration'
sardine-config = 'sardine.cli.main:main'
sardine-config = 'sardine.cli:main'

[tool.black]
target_version = ['py311']
Expand Down
Loading

0 comments on commit b43dd15

Please sign in to comment.