Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release v0.10.0 #443

Merged
merged 70 commits into from
Mar 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
bc8860a
Bump version
sergeyklay Jun 15, 2022
0c7640b
Removed deprecated `Env.unicode()`
sergeyklay Jun 15, 2022
1f220bf
Merge pull request #395 from joke2k/drop/unicode
sergeyklay Jun 15, 2022
e119e6f
Cleanup change log
sergeyklay Jun 15, 2022
586666a
Deprecate Python < 3.5
sergeyklay Jun 15, 2022
4948a02
Merge pull request #396 from joke2k/deprecate/python3.5
sergeyklay Jun 15, 2022
27fcdc3
Provide a dedicated function to return postgresql driver
sergeyklay Jun 15, 2022
4ef047f
Add core redis compat if django 4+
glasnt Jun 16, 2022
c1b7034
Provide a function to return RedisCache driver
sergeyklay Jun 16, 2022
abc7df0
Fix tests
sergeyklay Jun 16, 2022
7ee07ab
Cleanup tests
sergeyklay Jun 16, 2022
6985d8f
Merge pull request #397 from glasnt/feat/redis-django
sergeyklay Jun 16, 2022
62b5d0a
Amend tests
sergeyklay Jun 16, 2022
0fee796
Amended change log
sergeyklay Jun 16, 2022
00e03d3
Simplify code a bit
sergeyklay Jun 16, 2022
7656729
Add CodeQL Analyze workflow
sergeyklay Jun 16, 2022
12976c3
Add timeout to run GitHub actions
sergeyklay Jun 16, 2022
6628b09
Merge pull request #398 from joke2k/feature/amend-tests
sergeyklay Jun 16, 2022
ddf9cba
Remove `environ.register_schemes` calls
Jun 16, 2022
2144df9
Merge pull request #399 from joke2k/drop/register_schemes
sergeyklay Jun 16, 2022
84bd435
Value of dict can now contain an equal sign
ATNC Jun 19, 2022
bad3614
Correct code style
sergeyklay Jun 19, 2022
495be60
Merge pull request #400 from joke2k/feature/enhanced-dict
sergeyklay Jun 19, 2022
8ea6e2b
Fix code style
sergeyklay Jun 19, 2022
4a5cb61
Amend docs
sergeyklay Jun 19, 2022
75ba092
Use UTF-8 as a encoding when open .env file
sergeyklay Jun 19, 2022
28e486f
Normalize logging format
sergeyklay Jun 19, 2022
293e3d7
Amend docs
sergeyklay Jun 19, 2022
afb98f0
Use UTF-8 as a encoding when open .env file
sergeyklay Jun 19, 2022
7a532e0
Ignore some errors found by pylint
sergeyklay Jun 19, 2022
20ba2d1
Lint code using pylint
sergeyklay Jun 19, 2022
6fc36d8
Merge pull request #401 from joke2k/fix/codestyle
sergeyklay Jun 19, 2022
4e5c05c
Amend documentation
sergeyklay Jun 20, 2022
aaf0377
Add support for Python 3.11
sergeyklay Jun 21, 2022
9c201d4
Merge pull request #402 from joke2k/feature/python-3.11
sergeyklay Jun 21, 2022
c5e425a
Add failing test for `url('UNSET_VAR', '')`
jnm Jun 29, 2022
3c1594a
Skip parsing only when `default=None`, not for…
jnm Jun 29, 2022
64813ed
Merge pull request #405 from jnm/stricter-check-for-none-default-value
sergeyklay Jul 7, 2022
055a3e7
Update changelog
sergeyklay Jul 7, 2022
ebd3a73
Bump actions/setup-python from 4.0.0 to 4.1.0
dependabot[bot] Jul 11, 2022
86716ac
Merge pull request #407 from joke2k/dependabot/github_actions/actions…
sergeyklay Jul 11, 2022
b30e56d
Access DB_SCHEMES through cls rather than Env in db_url_config.
fizyk Aug 22, 2022
f3c04d2
Add CONN_HEALTH_CHECKS to _DB_BASE_OPTIONS
denys-pidlisnyi Sep 16, 2022
466c89c
Merge pull request #418 from denys-pidlisnyi/main
sergeyklay Sep 20, 2022
77796fd
Update change log
sergeyklay Sep 20, 2022
78076b3
Tune up dependabot
sergeyklay Sep 20, 2022
c2b35db
Merge pull request #414 from fizyk/allow-override_db_schemes_children
sergeyklay Sep 20, 2022
bd1e640
Update change log
sergeyklay Sep 20, 2022
d630183
Add support for Django 4.1
foarsitter Nov 5, 2022
a3d2884
Delete duplicated include in docs/quickstart.md
imomaliev Feb 15, 2023
bd3559d
Correct CI workflow to use supported Python versions/OS matrix
sergeyklay Mar 1, 2023
c4b186b
Use ubuntu-20.04 for old Python versions
sergeyklay Mar 1, 2023
300b828
Move Python 3.7 to the risky versions section
sergeyklay Mar 1, 2023
d307861
Merge pull request #440 from joke2k/fix/ci
sergeyklay Mar 1, 2023
2856786
Bump actions/checkout to 3.3.0
sergeyklay Mar 1, 2023
ee78d7f
Rework trigger workflows strategy
sergeyklay Mar 1, 2023
a90770d
Bump actions/setup-python to 4.5.0
sergeyklay Mar 1, 2023
998ad13
Make sure new PRs are sent to develop
sergeyklay Mar 1, 2023
227db14
Merge pull request #441 from joke2k/feature/rework-ci
sergeyklay Mar 1, 2023
6948d3a
Merge pull request #439 from imomaliev/patch-1
sergeyklay Mar 1, 2023
a4b594d
Adds encoding parameter to read_env with default value 'utf8'
mrodal Feb 9, 2023
8abbe77
Correct code style
sergeyklay Mar 1, 2023
a7d208c
Merge pull request #442 from joke2k/fix/read_env-encoding
sergeyklay Mar 1, 2023
dbe5672
Merge pull request #425 from foarsitter/django41
sergeyklay Mar 1, 2023
47e756a
Updated change log
sergeyklay Mar 1, 2023
294c451
Correct change log format
sergeyklay Mar 1, 2023
7be412d
Update release date
sergeyklay Mar 1, 2023
3c1937e
Amend contributing documentation
sergeyklay Mar 1, 2023
0a7e92a
Improve formatting for Contributing
sergeyklay Mar 2, 2023
2191f5d
Simplify build and test package distribution
sergeyklay Mar 2, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
20 changes: 18 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,32 @@ updates:
- package-ecosystem: pip
# setup.py stored in repository root.
directory: '/'
# Raise pull requests for version updates
# to pip against the `develop` branch
target-branch: develop
schedule:
interval: daily
# Check for updates managed by pip once a week
interval: weekly
# Specify labels for npm pull requests
labels:
- pip
- dependencies
assignees:
- sergeyklay

- package-ecosystem: github-actions
# Workflow files stored in the
# default location of `.github/workflows`
directory: '/'
# Raise pull requests for version updates
# to pip against the `develop` branch
target-branch: develop
schedule:
interval: daily
# Check for updates for GitHub actions once a week
interval: weekly
# Specify labels for npm pull requests
labels:
- github_actions
- dependencies
assignees:
- sergeyklay
27 changes: 12 additions & 15 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@ name: Build

on:
push:
branches:
- develop
- main
- 'feature/**'
- 'release/**'
- 'fix/**'
branches-ignore:
# These should always correspond to pull requests, so ignore them for
# the push trigger and let them be triggered by the pull_request
# trigger, avoiding running the workflow twice. This is a minor
# optimization so there's no need to ensure this is comprehensive.
- 'dependabot/**'
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'

# The branches below must be a subset of the branches above
pull_request:
branches:
- develop
Expand All @@ -19,18 +20,14 @@ on:
jobs:
build:
name: Build and test package distribution
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3.0.2
uses: actions/checkout@v3.3.0

- name: Set up Python 3.10
uses: actions/setup-python@v4.0.0
uses: actions/setup-python@v4.5.0
with:
python-version: '3.10'

Expand Down Expand Up @@ -67,10 +64,10 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3.0.2
uses: actions/checkout@v3.3.0

- name: Set up Python 3.10
uses: actions/setup-python@v4.0.0
uses: actions/setup-python@v4.5.0
with:
python-version: '3.10'

Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/change-pr-target.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Make sure new PRs are sent to develop

on:
pull_request_target:
types: [opened, edited]

jobs:
check-branch:
runs-on: ubuntu-latest
steps:
- uses: Vankka/pr-target-branch-action@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
target: main
exclude: develop # Don't prevent going from develop -> main
change-to: develop
comment: |
Your PR was set to target `main`, PRs should be target `develop`
The base branch of this PR has been automatically changed to `develop`, please check that there are no merge conflicts.
35 changes: 23 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@ name: CI

on:
push:
branches:
- develop
- main
- 'feature/**'
- 'release/**'
- 'fix/**'

branches-ignore:
# These should always correspond to pull requests, so ignore them for
# the push trigger and let them be triggered by the pull_request
# trigger, avoiding running the workflow twice. This is a minor
# optimization so there's no need to ensure this is comprehensive.
- 'dependabot/**'

# The branches below must be a subset of the branches above
pull_request:
branches:
- develop
Expand Down Expand Up @@ -46,23 +47,33 @@ jobs:

matrix:
python:
- '3.5'
- '3.6'
- '3.7'
- '3.8'
- '3.9'
- '3.10'
- '3.11'
- 'pypy-3.7'
os: [ ubuntu-latest, macos-latest, windows-latest ]

# These versions are no longer supported by Python team, and may
# eventually be dropped from GitHub Actions. The support of these
# versions by django-environ will continue for as long as possible,
# and may be discontinued at any time.
include:
- python: '3.5'
os: ubuntu-20.04
- python: '3.6'
os: ubuntu-20.04
- python: '3.7'
os: ubuntu-20.04

steps:
- name: Checkout code
uses: actions/checkout@v3.0.2
uses: actions/checkout@v3.3.0
with:
fetch-depth: 5

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

Expand Down
60 changes: 60 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: CodeQL

on:
push:
branches:
- develop
- main

# The branches below must be a subset of the branches above
pull_request:
branches:
- develop
- main

schedule:
- cron: '40 22 * * 5'
# | | | | |
# | | | | |____ day of the week (0 - 6 or SUN-SAT)
# | | | |____ month (1 - 12 or JAN-DEC)
# | | |____ day of the month (1 - 31)
# | |____ hour (0 - 23)
# |____ minute (0 - 59)

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

# The maximum number of minutes to let a workflow run
# before GitHub automatically cancels it. Default: 360
timeout-minutes: 30

strategy:
# When set to true, GitHub cancels
# all in-progress jobs if any matrix job fails.
fail-fast: false

matrix:
language:
- python

steps:
- name: Checkout repository
uses: actions/checkout@v3.3.0

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}

- name: Autobuild
uses: github/codeql-action/autobuild@v2

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
20 changes: 12 additions & 8 deletions .github/workflows/cs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ name: CS

on:
push:
branches:
- develop
- main
- 'feature/**'
- 'release/**'
- 'fix/**'
branches-ignore:
# These should always correspond to pull requests, so ignore them for
# the push trigger and let them be triggered by the pull_request
# trigger, avoiding running the workflow twice. This is a minor
# optimization so there's no need to ensure this is comprehensive.
- 'dependabot/**'

pull_request:
branches:
Expand All @@ -19,12 +19,16 @@ jobs:
runs-on: ubuntu-latest
name: Code linting

# The maximum number of minutes to let a workflow run
# before GitHub automatically cancels it. Default: 360
timeout-minutes: 30

steps:
- name: Checkout code
uses: actions/checkout@v3.0.2
uses: actions/checkout@v3.3.0

- name: Set up Python 3.10
uses: actions/setup-python@v4.0.0
uses: actions/setup-python@v4.5.0
with:
python-version: '3.10'

Expand Down
23 changes: 14 additions & 9 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@ name: Docs

on:
push:
branches:
- develop
- main
- 'feature/**'
- 'release/**'
- 'fix/**'

branches-ignore:
# These should always correspond to pull requests, so ignore them for
# the push trigger and let them be triggered by the pull_request
# trigger, avoiding running the workflow twice. This is a minor
# optimization so there's no need to ensure this is comprehensive.
- 'dependabot/**'

# The branches below must be a subset of the branches above
pull_request:
branches:
- develop
Expand All @@ -19,12 +20,16 @@ jobs:
runs-on: ubuntu-latest
name: Build and test package documentation

# The maximum number of minutes to let a workflow run
# before GitHub automatically cancels it. Default: 360
timeout-minutes: 30

steps:
- name: Checkout code
uses: actions/checkout@v3.0.2
uses: actions/checkout@v3.3.0

- name: Set up Python 3.10
uses: actions/setup-python@v4.0.0
uses: actions/setup-python@v4.5.0
with:
python-version: '3.10'

Expand Down