Skip to content

Commit 4ede98f

Browse files
committed
Correctly include package data files.
1 parent 494c011 commit 4ede98f

File tree

1 file changed

+17
-14
lines changed

1 file changed

+17
-14
lines changed

pyproject.toml

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -89,19 +89,6 @@ where = ["./"]
8989
include = ["libcloud", "libcloud.test*", "libcloud.*" ]
9090

9191
[tool.setuptools.package-data]
92-
"*" = [
93-
"LICENSE",
94-
"NOTICE",
95-
"example*.py",
96-
"CHANGES.rst",
97-
"README.rst",
98-
"tox.ini",
99-
"pyproject.toml",
100-
"requirements-tests.txt",
101-
"requirements-lint.txt",
102-
"libcloud/test/secrets.py-dist",
103-
"demos/*"
104-
]
10592
"libcloud.data" = [
10693
"pricing.json"
10794
]
@@ -114,11 +101,27 @@ include = ["libcloud", "libcloud.test*", "libcloud.*" ]
114101
"*.crt",
115102
"*.csv",
116103
"*.txt",
117-
"*.html"
104+
"*.html",
105+
"secrets.py-dist",
118106
]
119107
"libcloud.test.compute.fixtures.misc" = ["*"]
120108
"libcloud.test.dns.fixtures.worldwidedns" = ["*"]
121109

110+
# Files outside of packages (in the repository root, demos directory, etc.)
111+
[tool.setuptools.data-files]
112+
"" = [
113+
"LICENSE",
114+
"NOTICE",
115+
"CHANGES.rst",
116+
"README.rst",
117+
"tox.ini",
118+
"pyproject.toml",
119+
"requirements-tests.txt",
120+
"requirements-lint.txt",
121+
]
122+
"demos" = ["demos/*"]
123+
124+
122125
[tool.setuptools]
123126
include-package-data = true
124127
exclude-package-data = { "*" = ["secrets.py"], "libcloud.test" = ["secrets.py"] }

0 commit comments

Comments
 (0)