~sircmpwn/core.sr.ht

4af873ba5a0ffd096d2b4054744ef95d08554bda — Conrad Hoffmann 9 days ago 1fbbcab bitfehler/pep440 master 0.74.0
pyproject.toml: properly define package data

Apparently even empty (i.e. non-Python) packages have to be defined as
packages, and the desired package data defined for each one. Also, as
long as `include-package-data` is true (the default), _everything_ will
be included, so set it to false.
1 files changed, 20 insertions(+), 13 deletions(-)

M pyproject.toml
M pyproject.toml => pyproject.toml +20 -13
@@ 32,27 32,34 @@ license.text = "BSD-3-Clause"
repository = "https://git.sr.ht/~sircmpwn/core.sr.ht"

[tool.setuptools]
# This defaults to true, but we explicitly specify what we want included in the
# package via packages and tool.setuptools.package-data below.
include-package-data = false
packages = [
    "srht",
    "srht.alembic",
    "srht.alembic.versions",
    "srht.graphql",
    "srht.oauth",
    "srht.scss",
    "srht.scss.bootstrap",
    "srht.scss.bootstrap.scss",
    "srht.scss.bootstrap.scss.mixins",
    "srht.scss.bootstrap.scss.utilities",
    "srht.static",
    "srht.static.icons",
    "srht.templates",
    "srht.webhook",
]
[tool.setuptools.package-data]
srht = [
    'Makefile',
    'minify-css.js',
    'templates/*.html',
    'scss/*.scss',
    'scss/*.css',
    'scss/bootstrap/LICENSE',
    'scss/bootstrap/scss/*.scss',
    'scss/bootstrap/scss/mixins/*.scss',
    'scss/bootstrap/scss/utilities/*.scss',
    'static/*',
    'static/icons/*',
]
"srht" = ['Makefile', 'minify-css.js']
"srht.templates" = ['*.html']
"srht.scss" = ['*.scss', '*.css']
"srht.scss.bootstrap" = ['LICENSE']
"srht.scss.bootstrap.scss" = ['*.scss']
"srht.scss.bootstrap.scss.mixins" = ['*.scss']
"srht.scss.bootstrap.scss.utilities" = ['*.scss']
"srht.static" = ['*']
"srht.static.icons" = ['*']

[tool.setuptools_scm]