Skip to content

Commit

Permalink
explicitly list package data (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
bryan-brancotte authored Jan 27, 2024
1 parent c15ebbd commit bc10217
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion requirements/lint.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
black
black~=22.6.0
isort
flake8
8 changes: 8 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,15 @@
"Framework :: Django :: 3.2",
"Framework :: Django :: 4.0",
"Framework :: Django :: 4.1",
"Framework :: Django :: 4.2",
"Framework :: Django :: 5.0",
],
package_data={
"crispy_forms_bootstrap2": [
"templates/bootstrap/*",
"templates/bootstrap/layout/*",
],
},
include_package_data=True,
zip_safe=False,
)
7 changes: 5 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,18 @@ max_line_length=118

[tox]
envlist =
{py37,py38,py39,py310}-django{32}-crispy{-latest},
{py38,py39,py310}-django{40,41,-latest}-crispy{-latest},
{py37,py38,py39,py310}-django{32}-crispy{2.0},
{py38,py39,py310}-django{40,41,42,-latest}-crispy{2.0},
{py310}-django{42,50,-latest}-crispy{-latest},
lint

[testenv]
deps =
django32: django>=3.2,<3.3
django40: django>=4.0a,<4.1
django41: django>=4.1a,<4.2
django42: django>=4.2a,<5.0
django50: django>=5.0,<5.1
crispy-latest: https://github.com/django-crispy-forms/django-crispy-forms/archive/main.tar.gz
-rrequirements/testing.txt
commands = python -W error::DeprecationWarning -W error::PendingDeprecationWarning -m pytest {posargs}
Expand Down

0 comments on commit bc10217

Please sign in to comment.