Commit graph

826 commits

Author SHA1 Message Date
Emil Stenström
c38343928c Add more examples in README. 2020-06-06 09:17:20 +02:00
Emil Stenström
45ee016169 Bump version. 2020-06-06 09:11:53 +02:00
Emil Stenström
d1405dda13 Add slots to components that can be filled when using component. 2020-06-06 09:11:27 +02:00
Emil Stenström
f6d2c5e003 Ignore stupid flake8 rule. 2020-06-06 09:10:16 +02:00
Emil Stenström
cb3236e063 Update dependencies. 2020-06-06 09:08:43 +02:00
Emil Stenström
b2726a6832 Contain all registry logic in helper methods. 2020-06-06 09:07:23 +02:00
Emil Stenström
ecba6e3ed9
Merge pull request #5 from EmilStenstrom/dependabot/pip/django-3.0.7
Bump django from 3.0.3 to 3.0.7
2020-06-05 23:31:48 +02:00
dependabot[bot]
614ef904b8
Bump django from 3.0.3 to 3.0.7
Bumps [django](https://github.com/django/django) from 3.0.3 to 3.0.7.
- [Release notes](https://github.com/django/django/releases)
- [Commits](https://github.com/django/django/compare/3.0.3...3.0.7)

Signed-off-by: dependabot[bot] <support@github.com>
2020-06-05 20:53:19 +00:00
Emil Stenström
60c51f4ae5 Update README.md 2020-02-08 13:39:59 +01:00
Emil Stenström
ed93b05db6 Update README to mention Django 3.0. 2020-02-08 10:31:09 +01:00
Emil Stenström
f3eb1d373e Upgrade tox environment to supprort django 3. 2020-02-08 10:30:10 +01:00
Emil Stenström
101f4a0041 Update dev requirements to latest version. 2020-02-08 10:29:57 +01:00
Emil Stenström
5356546efd Rename package and upload to pypi. 2020-02-08 10:22:07 +01:00
Emil Stenström
de59992288 Add more metadata about project. 2020-02-08 10:09:34 +01:00
Emil Stenström
64258b2a06 Replace requirements.txt with requirements-dev.txt and use pip-tools. 2020-02-08 10:09:34 +01:00
Emil Stenström
76b7e4550f
Create LICENSE 2019-11-28 21:38:10 +01:00
Emil Stenström
a52e1a324d
Create CODE_OF_CONDUCT.md 2019-11-28 21:37:41 +01:00
Emil Stenström
1da8977d63
Update README.md 2019-11-24 11:19:06 +01:00
Emil Stenström
9d48a8e93f Add test for passing two variables to template tag. 2019-11-24 11:17:17 +01:00
Emil Stenström
701e1e3ac2 Add test for more complex template that uses built-in django filter. 2019-11-24 11:10:14 +01:00
Emil Stenström
d91f014b4b Move test components into test cases. 2019-11-24 11:09:40 +01:00
Emil Stenström
40ebd6b936 Install isort and fix all imports. 2019-11-24 11:09:14 +01:00
Emil Stenström
cbe2bcc9c9 Use six to allow metaclass usage in both Python 2 and 3. 2019-11-24 10:57:55 +01:00
Emil Stenström
f60b443f07 Add test for calling the component template tag with positional arg. 2019-11-24 10:55:57 +01:00
Emil Stenström
aa4a3092c8 Make test suite ignore insignificant differences in HTML and whitespace. 2019-11-24 10:55:30 +01:00
Emil Stenström
6949dc286f Add tests for defining multiple css and js files. 2019-11-24 10:33:14 +01:00
Emil Stenström
096057b33d Use built-in django form assets instead of custom logic. 2019-11-24 10:31:23 +01:00
Emil Stenström
379c35d0b1 Add flake8 dev dependency. 2019-11-24 10:25:33 +01:00
Emil Stenström
99d761b340 Simplify instructions on how to run tests locally. 2019-11-23 22:02:38 +01:00
Emil Stenström
ebb180c540 Use list instead of tuple to avoid errors with missing comma. 2019-11-23 19:26:16 +01:00
Emil Stenström
8abf8c5e3b Add compatibility information to README. 2019-11-23 19:23:43 +01:00
Emil Stenström
f87f87dadf Update readme (thanks @mohammedalhaddar). 2019-11-23 19:18:08 +01:00
Emil Stenström
458b5383e0 Fix modern django compatibility. 2019-11-23 19:04:10 +01:00
Emil Stenström
d280fa84a8 Update tox to run against all valid python/django combination. 2019-11-23 18:26:37 +01:00
Emil Stenström
29118b83d6 Add requirements files to make local development easier. 2019-11-23 18:25:54 +01:00
Emil Stenström
f1748a4d61 Merge pull request #3 from EmilStenstrom/django17
Add support for Django 1.7.
2015-06-22 22:40:11 +02:00
Emil Stenström
17eb54e18a Change test setup to make test run on Django 1.7. 2015-06-22 22:37:07 +02:00
Ryan Hiebert
f435762773 Add Django 1.7 to the build matrix 2015-06-22 13:16:56 -05:00
Ryan Hiebert
69ea93fd4e Mark Django 1.7 as supported in setup.py 2015-06-22 13:16:56 -05:00
Emil Stenström
62c556f530 Improve README by adding detailed instructions. 2015-06-19 20:22:58 +02:00
Emil Stenström
7bc1096e94 Registering the same component twice only renders one dependency <link> and <script> tag. 2015-06-19 19:30:20 +02:00
Emil Stenström
be574fb520 Merge pull request #2 from EmilStenstrom/supported-versions
Support Django 1.8 on Python 2.7, 3.3, and 3.4 only.
2015-06-15 18:21:53 +02:00
Ryan Hiebert
4f1a6c1ade Document some alternate ways to run the tests 2015-06-14 21:35:41 -05:00
Ryan Hiebert
0f52cb845e More clearly define support
This started out as a plan to support Django 1.7 and 1.8, and on all
current versions of Python. This turned into supporting Django 1.8 on
Python 2.7, 3.3, and 3.4 only.

The tests don't pass under Django 1.7 because 1.8 introduced new
settings for configuring templates. Because of this the install_requires
section of setup.py declares that it must be using Django 1.8+.

Python 3.3 support was added, since that's a supported version of Python
under Django 1.8.

Also added pytest-xdist to the tox dependencies, to support running

    tox -e py34 -- -f

in order to have it watch and rerun the tests in development.
2015-06-14 21:25:27 -05:00
Emil Stenström
ef663e4478 Make docs easier to understand by removing blocks. 2015-06-14 14:49:39 +02:00
Emil Stenström
1d2a8a6909 Update docs to latest version of API. 2015-06-14 14:46:22 +02:00
Emil Stenström
666c4f70a8 Remove trailing spaces. 2015-06-14 14:46:07 +02:00
Emil Stenström
9a91df7978 Add component tag. 2015-06-14 14:43:57 +02:00
Emil Stenström
57286f8389 Clear global component.registry before each test. 2015-06-14 14:43:43 +02:00
Emil Stenström
a2e829f8af Use single quotes for all templates, we might need double quotes inside later. 2015-06-14 14:43:11 +02:00