Commit graph

51 commits

Author SHA1 Message Date
Alieh Rymašeŭski
b2ec2c6b79 Merge commit '2e9466d1b49f97a5f89d6945aa4f78e1935bf760' 2022-06-13 16:14:08 +03:00
Alieh Rymašeŭski
4915969283 Merge commit 'ba19a8ca35894a9f4f36fe1efb6823ab0da910c6' 2022-06-13 14:01:50 +03:00
George Leslie-Waksman
128555fa29
Add date based auditlog filter for auditlogflush command (#365) 2022-05-31 21:35:50 +04:30
Hasan Ramezani
46abfbdc2d Use Python3.7 for building the doc 2022-05-23 10:46:43 +02:00
Alieh Rymašeŭski
047fca9165 Merge upstream master 2022-05-20 12:58:34 +03:00
Hasan Ramezani
4c0bfabab2 Fix lint entry in tox.ini 2022-05-01 13:48:26 +02:00
Hasan Ramezani
de0625b378 Drop Django 2.2 support. 2022-05-01 13:48:26 +02:00
Hasan Ramezani
dad4fb893b Use pre-commit as lint command 2022-03-09 11:31:58 +01:00
Hasan Ramezani
8d6c6d4fb8 Update supported versions in testing matrix 2022-02-24 17:43:28 +03:00
Hasan Ramezani
03a2207408 Pin psycopg2-binary to 2.8.6 2022-02-24 17:37:47 +03:00
Alieh Rymašeŭski
2bf4f4af6f Remove the backport of mock 2022-02-24 11:36:47 +03:00
Hasan Ramezani
edc03e30fa Add Django4.0 to test pipeline. 2022-01-10 10:18:20 +01:00
Hasan Ramezani
2c9d7047c9 Remove Django 3.1 support. 2022-01-10 10:18:20 +01:00
Hasan Ramezani
4773a28cf4 Add Django main to test pipeline. 2022-01-10 10:18:20 +01:00
François Magimel
50beb70a19 ci(tox): remove hyphens in django version aliases
This will be more consistent with python version aliases
2022-01-05 15:01:32 +01:00
François Magimel
6fe3220a28 build(python): remove python 3.6 support 2022-01-05 15:01:32 +01:00
Hasan Ramezani
3dee9f1555 Pin psycopg2-binary to 2.8.6 2021-11-04 20:40:23 +01:00
Hasan Ramezani
1b96d8f828 Add Python 3.10 to testing matrix. 2021-11-04 20:40:23 +01:00
Alieh Rymašeŭski
bdf595e4dc Use predictable names for coverage reports 2021-06-25 13:21:04 +03:00
Alieh Rymašeŭski
a13f8d9e60 Pin psycopg2 to version compatible with Django 2.2 2021-06-25 12:21:03 +03:00
Hasan Ramezani
093b8093de Add Django 3.2 support. 2021-06-24 14:41:09 +03:00
Hasan Ramezani
cf63860dad Remove Django 3.0 support. 2021-06-24 14:41:05 +03:00
Hasan Ramezani
ea57dfd9c1 Remove Python 3.5 support. (#301) 2021-06-24 14:40:12 +03:00
Alieh Rymašeŭski
783316331f Support Python 3.9 2021-06-24 14:37:07 +03:00
Alieh Rymašeŭski
e404e82795 Apply CI changes from upstream
Notable changes include:
- removal of Travis in favor of GH Actions;
- configuration to get version from git and not from code.
2021-06-24 14:37:03 +03:00
Alieh Rymašeŭski
b130e3088e Add isort 2021-06-24 14:31:18 +03:00
Alieh Rymašeŭski
c57be3a2c1 Add black 2021-06-24 13:03:36 +03:00
Hasan Ramezani
da7b1441d0 Add Django 3.2 support. 2021-05-25 00:50:02 +02:00
Hasan Ramezani
ca5aa82714 Remove Django 3.0 support. 2021-05-25 00:50:02 +02:00
Hasan Ramezani
2e477ab04a
Remove Python 3.5 support. (#301) 2021-05-24 01:25:46 +02:00
Hasan Ramezani
497c83fc83 Add isort and sort orders with isort. 2020-12-06 23:10:18 +01:00
Hasan Ramezani
f5bb5cb1a2 Add black and format files with black. 2020-12-06 23:10:18 +01:00
Hasan Ramezani
e9cfdb2e48 Add Python 3.9 support. 2020-12-06 21:42:21 +01:00
Jannis Leidel
910089597e
Initial GitHub Actions workflow. (#283)
* Initial GitHub Actions workflow.

* Use correct Postgres port.

* Fix duplicate.

* Use POSTGRES_HOST?

* Fixing postgres config?

* Pass test env vars with Tox.

* Work around issue with Django 3.1.

* Write coverage file.

* Add release workflow.

* Remove Travis config file.

* Update .github/workflows/test.yml

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>

* Update auditlog_tests/tests.py

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>

* Update .github/workflows/test.yml

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>

* Update README.md

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>

* Add Django 3.1 to tox config.

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2020-11-26 10:45:20 +01:00
Jannis Leidel
50da34125c
Simplified travis config and added Jazzband release config. (#281)
* Simplified travis config and added Jazzband release config.

* Migrate to travis-ci.com.

* Split requirements to prevent env spoilage.

* Add docs requirements.

* Huh

* type

* Add psycopg2 doc requirements.
2020-11-25 22:15:14 +01:00
Alieh Rymašeŭski
8d2bb0f319 Drop support for outdated Django versions 2020-11-12 16:15:12 +03:00
Alieh Rymašeŭski
47a268eef9 Clean up project structure
Cherry-picking ee8a700b1b
2020-11-12 16:15:05 +03:00
Jan-Jelle Kester
c619b8c606 Support Django 3.1 2020-09-07 16:52:32 +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
Alieh Rymašeŭski
45a27ec1d6 Support Django 3.0 2020-06-10 15:31:41 +03:00
Alieh Rymašeŭski
fd169771df Support running tox -p 2020-06-10 15:21:48 +03:00
Alieh Rymašeŭski
33c35b42db Support python 3.8 2020-06-10 14:08:33 +03: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
Alieh Rymašeŭski
2a43cff96f Add python3.7 to tox and classifiers 2019-08-22 16:31:08 +03:00
Alieh Rymašeŭski
9152d225bb Remove obsolete versions from setup and tox 2019-08-22 16:31:08 +03:00
Alieh Rymašeŭski
c53b766132 Drop python2.7 support
Our dependency jsonfield broke compatibility with python2.7 recently,
and having no real reasons to support python2.7 we just drop it now.
2019-08-22 16:31:08 +03:00
Alieh Rymašeŭski
aa28009d3b Configure tests for Django 2.2 2019-05-11 18:16:00 +03:00
Alieh Rymašeŭski
03b8616dac Configure tests for Django 2.1 2019-05-11 18:15:58 +03:00
Rod Manning
4dee03497c Add Django 2.0 Support (#154)
* Add changes for django 2.0

Made the following changes to ensure compatibility with django 2.0:

1. Replaced function calls to `is_authenticated()` with reference to
   property `is_authenticated`.

2. Added try/except call to import `django.core.urlresolvers` (now
   called `django.urls`.

   Also added an `... as ...` statement to ensure that references in the
   code to `urlresolvers` don't need to be changed.

3. Fixed calls statement of `on_delete` arg to all ForeignKey
   fields.

   Note that previously a kwarg was acceptable, but this is now a
   positional arg, and the selected `on_delete` method has been
   retained.

* Update tox tests and consequentual changes

Updated tox.ini to also test django 2.0 on python 3+. Some changes made
to previous commits required to ensure all tests passed:

- Added `compat.py` to have a `is_authenticated()` function to check
  authentication.

  This was necessary as the property/method call for `is_authenticated`
  is no compatible between django 1.8 (LTS) and 2.0.

  Changed AuditLogMiddleware to call this compatibility function instead
  of the django built-ins as a result.

- Changes made to `auditlog/models.py` to apply kwargs to both `to=` and
  `on_delete=` for consistency of handling in all version tested.

Incorrect django version specified for tox.ini. Now fixed.

* Add 'on_delete' kwarg to initial migration

Added and re-arranged 'on_delete' and 'to' kwargs in initial migration
to ensure compatbility with later versions of Django.

Also included updated manifest with changes required due to django 2.0
work.

* Add TestCase for compat.py

Added simple test case for compat.py file.

* Changes follow code review 2017-12-21

* More changes following code review 2017-12-28

1. Added detailed commentary to `compat.py` to ensure reason why
   `is_authenticated()` compatibility function is needed

2. Changed `hasattr` to `callable` in compat.is_authenticated()

3. Fixed typo in migration 0001 to use correct `on_delete` function
2018-01-02 13:50:45 -05:00