Skip to content

Commit 96574c0

Browse files
committed
fix: bundle flaresolverr in python package build
1 parent 28c14ac commit 96574c0

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

pyproject.toml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[build-system]
22
requires = ["setuptools>=61.0"]
33
build-backend = "setuptools.build_meta"
4+
45
[project]
56
name = "ItchClaim"
67
authors = [
@@ -33,17 +34,20 @@ classifiers = [
3334
[project.scripts]
3435
itchclaim = "ItchClaim.__main__:main"
3536

36-
[tool.setuptools]
37-
packages = ["ItchClaim"]
37+
[tool.setuptools.packages.find]
38+
where = ["."]
39+
include = ["ItchClaim*"]
3840

3941
# FIXME: this is a workaround; see:
4042
# - https://github.com/rst2pdf/rst2pdf/pull/1257/commits/e15dee4fba5dcc78c6991a8566c0b7ee603092bf
4143
# - https://github.com/pypa/setuptools/issues/4759
42-
license-files = []
44+
[tool.setuptools]
45+
license-files = []
4346

4447
[tool.setuptools.dynamic]
4548
dependencies = {file = ["requirements.txt"]}
4649
version = {attr = "ItchClaim.__init__.__version__"}
4750

4851
[tool.setuptools.package-data]
49-
ItchClaim = ["*.html"]
52+
# Include all html files, and recursively include everything in the flaresolverr folder
53+
ItchClaim = ["*.html", "flaresolverr/**/*"]

0 commit comments

Comments
 (0)