Skip to content

Commit

Permalink
Official support for Python 3.11 , Update to black 22.12
Browse files Browse the repository at this point in the history
  • Loading branch information
mar10 committed Jan 16, 2023
1 parent c4e5163 commit a0f2ca5
Show file tree
Hide file tree
Showing 8 changed files with 237 additions and 248 deletions.
9 changes: 6 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@ matrix:
include:
# - python: "3.9"
# env: TOXENV=check
- python: "3.11" # EOL 2027-10-24
env: TOXENV=check,py311
dist: bionic
- python: "3.10" # EOL 2026-10-04
env: TOXENV=check,py310
env: TOXENV=py310
dist: bionic
- python: "3.9" # EOL 2025-10-05
env: TOXENV=py39
Expand All @@ -24,11 +27,11 @@ matrix:
# env: TOXENV=py35
# - python: "3.4" # EOL 2019-03-18
# env: TOXENV=py34
- python: "3.11-dev"
- python: "3.12-dev"
env: TOXENV=py311
dist: bionic
allow_failures:
- python: "3.11-dev"
- python: "3.12-dev"
env: TOXENV=py311
dist: bionic

Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## 4.2.0 / Unreleased
- #277 Add quota-used-bytes and quota-available-bytes (RFC4331) (@NewbieOrange)
- Official support for Python 3.11
- Update to black 22.12

## 4.1.0 / 2022-11-11
- #246 Add dir_browser/htdocs folder setup.cfg (for install with `pip install .`)
Expand Down
8 changes: 4 additions & 4 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ verify_ssl = true
name = "pypi"

[dev-packages]
black = "~=22.6"
black = "~=22.12"
Cheroot = "*" # "~=8.5"
cx_Freeze = {version = "*", os_name = "== 'nt'"}
flake8 = "*" # "~=3.8"
flake8-bugbear = "*" # "~=20.1"
flake8-quotes = "*" # "~=1.0"
flake8 = "~=6.0"
flake8-bugbear = "~=23.1"
flake8-quotes = "~=3.3"
isort = "*"
mypy = "*"
Paste = "*" # "~=2.0"
Expand Down
434 changes: 208 additions & 226 deletions Pipfile.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/source/development.rst
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ We need `Python 2.7 <https://www.python.org/downloads/>`_,
and `pip <https://pip.pypa.io/en/stable/installing/#do-i-need-to-install-pip>`_ on our system.

If you want to run tests on *all supported* platforms, install Python 3.7, 3.8,
3.9, and 3.10.
3.9, 3.10, and 3.11.

On Linux/OS X, we recommend to use `pipenv <https://github.com/kennethreitz/pipenv>`_
to activate a virtual environment::
Expand Down
9 changes: 4 additions & 5 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@

cheroot~=8.5
Paste~=2.0
# Black is beta and therefore requires --pre flag for installation unless we give the exact number
black~=22.1
flake8~=3.8
flake8-bugbear~=20.1
flake8-quotes~=1.0
black~=22.12
flake8~=6.0
flake8-bugbear~=23.1
flake8-quotes~=3.3
pytest~=2.7
pytest-cov~=1.8
recommonmark
Expand Down
8 changes: 5 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ license = MIT
license_files = LICENSE
classifiers =
# Development Status :: 3 - Alpha
Development Status :: 4 - Beta
# Development Status :: 5 - Production/Stable
# Development Status :: 4 - Beta
Development Status :: 5 - Production/Stable
Environment :: Console
Intended Audience :: Developers
Intended Audience :: Information Technology
Expand All @@ -40,6 +40,7 @@ classifiers =
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Topic :: Internet :: WWW/HTTP
Topic :: Internet :: WWW/HTTP :: HTTP Servers
Topic :: Internet :: WWW/HTTP :: Dynamic Content
Expand Down Expand Up @@ -168,7 +169,8 @@ max-line-length = 99
# - W605 invalid escape sequence '\/' (we want to allow ascii-art)
# - A003 class attribute "open" is shadowing a python builtin
# - N806 variable 'VAR_NAME' in function should be lowercase
ignore = E203, E501, W503, P101, A003, N806, W605
# - B028 'STR' is manually surrounded by quotes, consider using the `!r` conversion flag.
ignore = E203, E501, W503, P101, A003, N806, W605, B028

# Instead of strict E501, enable B950 for relaxed line length checking (and other bugbear warnings)
# select = B,C,D,E,F,I,N,P,PT,Q,S,T,W,B9
Expand Down
13 changes: 7 additions & 6 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ basepython = python3.9
envlist =
check
# mypy
py311 # EOL 2027-10-24
py310 # EOL 2026-10-04
py39 # EOL 2025-10-05
py38 # EOL 2024-10-14
Expand Down Expand Up @@ -76,11 +77,11 @@ commands =
skip_install = true
deps =
# Required by flake8-bandit
bandit
# bandit
# Flake8
# Configuration is defined in the [flake8] section of setup.cfg.
# Run `flake8 --help` to see the available options of *installed* plugins.
flake8
flake8 ~=6.0

# --- Helper to generate HTML reports:
# flake8-html
Expand All @@ -89,13 +90,13 @@ deps =
flake8-annotations-complexity # TAE002 too complex annotation (X > Y)
# flake8-bandit # Security checks, e.g. S101
flake8-breakpoint # Check forgotten breakpoints and debugger calls
flake8-bugbear # (B...) Check for error-prone constructs
flake8-bugbear ~=23.1 # (B...) Check for error-prone constructs
# flake8-builtins # Check for python builtins being used as variables or parameters (A...)
flake8-coding # C101 Coding magic comment not found, ...
# flake8-commas # C812 missing trailing comma -> Handled by Black # flake8-comprehensions # flake8-docstrings # flake8-eradicate # E800 Found commented out code # flake8-expression-complexity # ECE001 Expression is too complex (X > Y) # flake8-if-expr # KEK100 don`t use "[on_true] if [expression] else [on_false]" syntax # flake8-import-order # (we run `isort --check`) # flake8-isort # (we run `isort --check`) # flake8-logging-format # G001 Logging statement uses string.format() # flake8-pep3101 # Use "".format instead of %
# flake8-print # T001 print found
# flake8-pytest-style # PT009 use a regular assert instead of unittest-style 'assertTrue'
flake8-quotes # See also [flake8] config
flake8-quotes ~=3.3 # See also [flake8] config
# flake8-return # R503 you should add explicit return at end of the function if function have return value except None
# flake8-rst-docstrings # Docstrings should work with Sphinx (RSTnnn)
# flake8-string-format # Check for valid string.format() args
Expand All @@ -114,7 +115,7 @@ commands =
description = Check Black formatting compliance and add flake8-bugbear checks
skip_install = true
deps =
black ~=22.6
black ~=22.12
isort
{[testenv:flake8]deps}
changedir = {toxinidir}
Expand All @@ -128,7 +129,7 @@ commands =
description = Reformat python code using Black and isort
# skip_install = true
deps =
black ~=22.6
black ~=22.12
isort
{[testenv:flake8]deps}
changedir = {toxinidir}
Expand Down

0 comments on commit a0f2ca5

Please sign in to comment.