Commit graph

30 commits

Author SHA1 Message Date
Jan-Jelle Kester
31418d54f2
Changes for Jazzband (#269)
* Update repository references to Jazzband
Issue #268

* Add Jazzband badge to README
Issue #268

* Add Jazzband contribution guideline
Issue #268
2020-10-23 12:16:27 +02:00
Jan-Jelle Kester
3acab4322b Drop Python 2, support Django 3.0, update dependencies 2020-09-07 16:52:32 +02:00
Jan-Jelle Kester
ee8a700b1b Clean up project structure 2020-09-07 16:52:32 +02:00
Jan-Jelle
c3b06045e0
Use Travis CI deployment v2 2019-12-16 11:21:35 +01:00
Jan-Jelle Kester
16daa13575 Supply PyPI credentials via environment variables (#222) 2019-12-03 15:36:40 +01:00
Keith Bussell
2aecef2760
Fix TOXENV variable name in deploy step (#217) 2019-11-12 20:42:27 +01:00
Keith Bussell
e0e6acb49c Use matrix to define TOXENV in Travis 2019-11-11 18:13:06 +01:00
Keith Bussell
c1d25a9ab5 Update testing for supported Django versions
Add support for Django 2.1 and 2.2, and drop support for < 1.11
2019-11-11 18:13:06 +01:00
Jan-Jelle Kester
12af4d45a0
Fix deploy config
* Bump version

* Set pypi config in .travis.yml
2018-09-18 22:56:54 +02:00
Jan-Jelle Kester
aab8f47f97 Add deploy config for Travis CI (#183)
* Add deploy config for Travis CI

* Use binary psycopg2 distribution

* Remove group to get newer postgres version

* Revert "Remove group to get newer postgres version"

This reverts commit 2c22ae3248.

* Default to Postgres 9.4, Django 2.0 dropped support for <=9.3.

https://docs.travis-ci.com/user/database-setup/#using-a-different-postgresql-version
2018-09-17 14:30:08 -04:00
Ryan Castner
b410b40597
Add missing django 2.0 tox tests (#156) 2018-01-08 09:39:45 -05:00
Ryan Castner
45760c6316 Fixes #93 - Add 'changes_display_dict' property to 'LogEntry' model to display diff in a more human readable format (#94)
Fixes #93 - Add 'changes_display_dict' property to 'LogEntry' model to display diff in a more human readable format

'changes_display_dict' currently handles fields with choices, long textfields and charfields, datefields, timefields, and datetimefields. Supports `django-multiselectfield` with choices and Postgres's ArrayField with choices.

Textfields and Charfields longer than 140 characters are truncated with an ellipsis appended.
Date, Time and DateTime fields are rendered according to `L10N`, or if turned off fall back on Django settings defaults for DATE_FORMAT, TIME_FORMAT and DATETIME_FORMAT.

A new kwarg was added to 'AuditlogModelRegistry' called 'mapping_fields'. The kwarg allows the user to map the fields in the model to a more human readable or intuitive name. If a field isn't mapped it will default to the `verbose_name` as defined on the model or the Django default `verbose_name`. Partial mapping is supported, all fields do not need to be mapped to use the feature.

* Add django-multiselectfield test dep

* Add psycopg2 test dep

* Add postgres testing database and router

* Add postgres support to travis builds

* Add support for multiple databases. LogEntry saves to same database of the model its associated to

* If any literal evals fail default to None

* Add support for Postgres ArrayField in changes_display_dict

* Revert to old travis image while they are fixing issues with it

* Update docs

* Add full test coverage
2017-09-13 10:57:47 -04:00
Ryan Castner
ac8638dadd Chore -- Update testing (#126)
* Ignore new testing related files

* Add tox testing, coverage and codecov integration.
Drop Django 1.9 testing as support officially ended in April,
Add Django 1.11 testing, the new LTS version of Django
Add testing against Django for each versions supported python versions.
Remove Django from requirements, install handled through tox for tests and
regular repositories do not need us to install Django for them or enforce
a django version, they can choose to use a supported version or not.

* Update for python 3.6 tests
2017-07-05 09:32:27 -04:00
Jan-Jelle Kester
4f5a889ea9 Fix Django 1.11 Travis config 2017-02-16 15:43:25 +01:00
Jan-Jelle Kester
c0c858391f Add test configuration for Django 1.11
Allow for alpha releases and release candidates for now
2017-02-16 15:17:07 +01:00
Jan-Jelle Kester
74c2032d05 Drop Django 1.7
Issue #60
2016-08-02 17:03:03 +02:00
Jan-Jelle Kester
de355bc25c Let Travis use latest Django 1.9 release 2016-01-23 22:44:38 +01:00
Jan-Jelle Kester
eb686d3bad Explicitly set Django alpha version number 2015-10-07 22:34:43 +02:00
Jan-Jelle Kester
b4b5be8c68 Add Travis testing for Django 1.9 alpha versions 2015-10-07 22:32:48 +02:00
Jan-Jelle Kester
dab0342cf6 Merge branch 'master' into release-0.3.0
Conflicts:
	src/auditlog/diff.py
2015-07-22 01:06:32 +02:00
Jan-Jelle Kester
882415ea18 Explicitly specify sudo in travis.yml 2015-07-22 00:17:04 +02:00
Jan-Jelle Kester
8728454368 Fix travis config 2015-05-15 11:49:31 +02:00
Jan-Jelle Kester
1d5118460f Refactor tests to not use a Django project 2015-05-15 11:41:15 +02:00
Jan-Jelle Kester
580bb0c60f Use latest Django releases for CI 2015-05-15 01:49:55 +02:00
Jan-Jelle Kester
42d9d767ac Drop Django 1.5 support (unsupported version) 2015-05-15 00:17:50 +02:00
Jan-Jelle Kester
bafce4d72c Change Travis CI config test script to work with Django 1.5 2015-05-15 00:15:50 +02:00
Jan-Jelle Kester
2affded385 Reduce number of Travis environments 2015-05-15 00:05:59 +02:00
Jan-Jelle Kester
718595f555 Fix broken Travis CI config again 2015-05-15 00:02:02 +02:00
Jan-Jelle Kester
fd16002ce2 Fix broken Travis CI config 2015-05-14 23:55:58 +02:00
Jan-Jelle Kester
5f7fdc5a1d Add Travis CI support 2015-05-14 23:51:37 +02:00