Skip to content

Commit

Permalink
Maintanence (#74)
Browse files Browse the repository at this point in the history
* Maintanence
  • Loading branch information
chinskiy authored Jan 9, 2024
1 parent 93d63c2 commit 21044e5
Show file tree
Hide file tree
Showing 8 changed files with 67 additions and 43 deletions.
38 changes: 20 additions & 18 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,32 +15,34 @@ jobs:
max-parallel: 10
matrix:
include:
- python-version: '3.7'
tox-env: py37-django22
- python-version: '3.8'
tox-env: py38-django22
- python-version: '3.9'
tox-env: py39-django22
- python-version: '3.7'
tox-env: py37-django32
- python-version: '3.8'
tox-env: py38-django32
- python-version: '3.9'
tox-env: py39-django32
- python-version: '3.10'
tox-env: py310-django32
- python-version: '3.8'
tox-env: py38-django40
tox-env: py38-django42
- python-version: '3.9'
tox-env: py39-django40
tox-env: py39-django42
- python-version: '3.10'
tox-env: py310-django42
- python-version: '3.11'
tox-env: py311-django42
- python-version: '3.12'
tox-env: py312-django42
- python-version: '3.10'
tox-env: py310-django40
tox-env: py310-django50
- python-version: '3.11'
tox-env: py311-django50
- python-version: '3.12'
tox-env: py312-django50

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

Expand All @@ -54,7 +56,7 @@ jobs:
run: |
tox -v
- name: Upload coverage
uses: codecov/codecov-action@v2
uses: codecov/codecov-action@v3
with:
name: Python ${{ matrix.python-version }}
fail_ci_if_error: true
Expand All @@ -67,16 +69,16 @@ jobs:
max-parallel: 2
matrix:
include:
- python-version: '3.10'
- python-version: '3.12'
tox-env: flake8
- python-version: '3.10'
- python-version: '3.12'
tox-env: isort

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

Expand Down
22 changes: 22 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# .readthedocs.yaml
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

# Required
version: 2

# Set the version of Python and other tools you might need
build:
os: ubuntu-22.04
tools:
python: "3.11"

# Build documentation in the docs/ directory with Sphinx
sphinx:
configuration: docs/conf.py

# We recommend specifying your dependencies to enable reproducible builds:
# https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
# python:
# install:
# - requirements: docs/requirements.txt
2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2022 Preply Inc.
Copyright (c) 2024 Preply Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
1 change: 0 additions & 1 deletion dj_anonymizer/anonymizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ def anonymize(self, only=None):
queryset = anonym_cls.Meta.queryset.only(
*anonym_cls.get_fields_names()
)

print(f'Anonymizing model {self.key(queryset.model)}')

i = 0
Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
# -- Project information -----------------------------------------------------

project = 'dj_anonymizer'
copyright = '2022, Preply'
copyright = '2024, Preply'
author = 'Preply'

# The short X.Y version
Expand Down
14 changes: 7 additions & 7 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
Django>=2.2,<=2.3
Django>=3.2,<=3.3
django-appconf
flake8==4.0.1
isort==5.10.1
pytest==6.2.5
pytest-django==4.5.2
pytest-cov==3.0.0
pytest-mock==3.6.1
flake8==7.0.0
isort==5.13.2
pytest==7.1.3
pytest-django==4.7.0
pytest-cov==4.1.0
pytest-mock==3.12.0
sphinx==4.3.2
9 changes: 5 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,18 @@ def read(*rnames):
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.7',
'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',
'Framework :: Django',
'Framework :: Django :: 2.2',
'Framework :: Django :: 3.2',
'Framework :: Django :: 4.0',
'Framework :: Django :: 4.2',
'Framework :: Django :: 5.0',
'Topic :: Database'
],
install_requires=[
'Django>=2.2',
'Django>=3.2',
]
)
22 changes: 11 additions & 11 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
[tox]
envlist =
py{37,38,39}-django22
py{37,38,39,310}-django32
py{38,39,310}-django40
py{38,39,310}-django32
py{38,39,310,311,312}-django42
py{310,311,312}-django50
flake8
isort

[testenv]
deps =
django22: Django>=2.2,<2.3
django32: Django>=3.2,<3.3
django40: Django>=4.0,<4.1
django42: Django>=4.2,<4.3
django50: Django>=5.0,<5.1
django-appconf
pytest==6.2.5
pytest-django==4.5.2
pytest-mock==3.6.1
pytest-cov==3.0.0
pytest==7.1.3
pytest-django==4.7.0
pytest-mock==3.12.0
pytest-cov==4.1.0
codecov
allowlist_externals =
make
Expand All @@ -31,8 +31,8 @@ commands =

[testenv:flake8]
commands = make flake8
deps = flake8==4.0.1
deps = flake8==7.0.0

[testenv:isort]
commands = make isort
deps = isort==5.10.1
deps = isort==5.13.2

0 comments on commit 21044e5

Please sign in to comment.