-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7abbc54
commit 9b9ba02
Showing
9 changed files
with
680 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
all: | ||
docker-compose build | ||
docker compose build | ||
|
||
shell: | ||
docker-compose run --rm app /bin/bash | ||
docker compose run --rm app /bin/bash | ||
|
||
test: | ||
docker-compose run --rm app tox | ||
docker compose run --rm app tox -p auto | ||
|
||
mypy: | ||
docker-compose run --rm app mypy --strict ./src | ||
docker compose run --rm app mypy --strict ./src | ||
|
||
package: | ||
rm -rf ./dist | ||
python3 -m build | ||
poetry build | ||
|
||
test-publish: package | ||
twine upload --repository testpypi dist/* | ||
poetry publish -r testpypi | ||
|
||
publish: package | ||
twine upload dist/* | ||
poetry publish | ||
|
||
pre-commit: | ||
pre-commit run -a |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,65 @@ | ||
[tool.poetry] | ||
name = "django-static-precompiler" | ||
version = "3.0a1" | ||
description = "Django template tags to compile all kinds of static files (SASS, LESS, Stylus, CoffeeScript, Babel, LiveScript, Handlebars)." | ||
authors = ["Andrey Fedoseev <[email protected]>"] | ||
license = "MIT" | ||
readme = ["README.md", "CHANGES.md"] | ||
homepage = "https://github.com/andreyfedoseev/django-static-precompiler" | ||
repository = "https://github.com/andreyfedoseev/django-static-precompiler" | ||
documentation = "https://django-static-precompiler.readthedocs.io/" | ||
keywords = ["django", "sass", "scss"] | ||
classifiers = [ | ||
"Development Status :: 5 - Production/Stable", | ||
"Framework :: Django :: 3", | ||
"Framework :: Django :: 4", | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: MIT License", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
"Topic :: Internet :: WWW/HTTP" | ||
] | ||
packages = [ | ||
{include = "static_precompiler", from = "src"} | ||
] | ||
include = [ | ||
"AUTHORS", | ||
"README.md", | ||
"CHANGES.md", | ||
"LICENSE", | ||
"py.typed", | ||
{ path = "tests", format = "sdist" } | ||
] | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.8" | ||
Django = "^3.2.0" | ||
libsass = {version = "*", optional = true} | ||
watchdog = {version = "*", optional = true} | ||
|
||
[tool.poetry.group.test.dependencies] | ||
pytest = "~7.4.0" | ||
pytest-django = "~4.5.0" | ||
pretend = "~1.0.9" | ||
libsass = "~0.22.0" | ||
pytest-cov = "~4.0.0" | ||
watchdog = "~3.0.0" | ||
coverage = "~7.3.0" | ||
tox = "~4.9.0" | ||
mypy = "~1.4.0" | ||
django-stubs = {extras = ["compatible-mypy"], version = "~4.2.3"} | ||
|
||
[tool.poetry.extras] | ||
libsass = ["libsass"] | ||
watchdog = ["watchdog"] | ||
|
||
[build-system] | ||
requires = ["setuptools>=42"] | ||
build-backend = "setuptools.build_meta" | ||
requires = ["poetry-core>=1.0.0"] | ||
build-backend = "poetry.core.masonry.api" | ||
|
||
[tool.black] | ||
line-length = 120 | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
[tox] | ||
isolated_build = True | ||
isolated_build = true | ||
envlist = | ||
py38-django32, | ||
py39-django42 | ||
py310-django42 | ||
py311-django42 | ||
py312-django42 | ||
|
||
[testenv] | ||
passenv = GEM_PATH | ||
allowlist_externals = poetry | ||
deps = | ||
-rrequirements-test.txt | ||
django32: Django>=3.2,<4 | ||
django42: Django>=4.2,<4.3 | ||
commands = pytest --cov static_precompiler --cov-report xml --cov-append | ||
setenv = | ||
PYTHONPATH = {toxinidir} | ||
commands_pre = | ||
poetry install --all-extras | ||
commands = poetry run pytest --cov static_precompiler --cov-report xml --cov-append |