Commit graph

1748 commits

Author SHA1 Message Date
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
Emil Stenström
5cfd5d2ec7 Use simpler component name. 2015-06-14 14:42:34 +02:00
Emil Stenström
005460543b Make variable required. 2015-06-14 14:42:01 +02:00
Emil Stenström
51ca8e3a15 Better variable name. 2015-06-14 14:41:41 +02:00
Emil Stenström
176574a9cc Add component_dependencies template tag. 2015-06-14 14:29:20 +02:00
Emil Stenström
33b1930ed5 Dependencies are the same for all instances, so convert to classmethod. 2015-06-14 14:28:43 +02:00
Emil Stenström
143918e2cf Move django bootstrapping to separate file so it can be reused between test modules. 2015-06-14 14:16:50 +02:00
Emil Stenström
d3261ca50a Add link to Travis CI build. 2015-06-14 12:57:44 +02:00
Emil Stenström
92d3e58f72 Add Travis CI badge. 2015-06-14 12:56:01 +02:00
Emil Stenström
f35f2063ed Merge pull request #1 from EmilStenstrom/ci
Setup Travis CI to test against both Python 2 and Python 3.
2015-06-14 12:27:23 +02:00
Emil Stenström
41122d1592 Move environment setup to the module to get Travis CI to pass. 2015-06-14 12:23:12 +02:00
Ryan Hiebert
48e6ea1e12 Add Travis CI configuration 2015-06-13 13:42:28 -05:00
Ryan Hiebert
8b119e1e30 Add documentation of the process to run tests 2015-06-13 13:42:27 -05:00
Ryan Hiebert
bc2950e1b4 Use tox to test 2015-06-13 13:42:27 -05:00
Ryan Hiebert
f219370be2 Use dictionary to compare registry
The registry is a dictionary, so comparing items() has a couple of
problems:

1. The order of a dictionary is unstable, so it may not turn out as
   expected.
2. items() returns a list in Python 2, but a dict_items in Python 3,
   which makes the comparison fail.
2015-06-13 13:42:27 -05:00
Emil Stenström
6492081b64 Add render() and render_dependencies() to Compoent. 2015-06-12 22:15:09 +02:00
Emil Stenström
972f99af05 Make test slightly more interesting. 2015-06-11 21:28:50 +02:00
Emil Stenström
31261ece08 Add a basic Component class. 2015-06-11 21:14:21 +02:00
Emil Stenström
df22a4049f Move registry to separate file. 2015-06-11 21:11:13 +02:00
Emil Stenström
ebf4ac1d20 Add way to unregister components. 2015-06-11 20:52:46 +02:00
Emil Stenström
00bd40aaaf Don't allow registering the same component twice. 2015-06-11 20:47:35 +02:00
Emil Stenström
313852ce21 A simple ComponentRegistry to store components. 2015-06-11 20:42:16 +02:00
Emil Stenström
22b00a4a62 Simple test runner that discovers tests. 2015-06-11 20:40:47 +02:00
Emil Stenström
28f243d50a Require Django, some old version. 2015-06-11 20:40:06 +02:00
Emil Stenström
0c5ada8eb7 Add GitHubs default gitignore. 2015-06-11 19:58:44 +02:00
Emil Stenström
0f69d431ba First description of how the django-components could work. 2015-06-11 19:35:31 +02:00
Emil Stenström
b46b1d87f7 Initial commit 2015-06-11 19:23:48 +02:00