Skip to content

Commit

Permalink
Merge branch 'master' into update-url-regex
Browse files Browse the repository at this point in the history
  • Loading branch information
mmerickel committed Jan 2, 2023
2 parents b58b1e9 + eb8d904 commit 311e7ef
Show file tree
Hide file tree
Showing 19 changed files with 390 additions and 410 deletions.
1 change: 0 additions & 1 deletion .coveragerc
Expand Up @@ -12,4 +12,3 @@ source =
[report]
show_missing = true
precision = 2

72 changes: 0 additions & 72 deletions .github/workflows/ci-linux.yml

This file was deleted.

34 changes: 0 additions & 34 deletions .github/workflows/ci-macos.yml

This file was deleted.

85 changes: 85 additions & 0 deletions .github/workflows/ci-tests.yml
@@ -0,0 +1,85 @@
name: Build and test

on:
# Only on pushes to main or one of the release branches we build on push
push:
branches:
- main
- "[0-9].[0-9]+-branch"
tags:
# Build pull requests
pull_request:

jobs:
test:
strategy:
matrix:
py:
- "3.7"
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "pypy-3.8"
os:
- "ubuntu-latest"
- "windows-latest"
- "macos-latest"
architecture:
- x64
- x86
exclude:
# Linux and macOS don't have x86 python
- os: "ubuntu-latest"
architecture: x86
- os: "macos-latest"
architecture: x86
name: "Python: ${{ matrix.py }}-${{ matrix.architecture }} on ${{ matrix.os }}"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.py }}
architecture: ${{ matrix.architecture }}
- run: pip install tox
- name: Running tox
run: tox -e py
coverage:
runs-on: ubuntu-latest
name: Validate coverage
steps:
- uses: actions/checkout@v3
- name: Setup python 3.10
uses: actions/setup-python@v4
with:
python-version: "3.10"
architecture: x64

- run: pip install tox
- run: tox -e py310,coverage
docs:
runs-on: ubuntu-latest
name: Build the documentation
steps:
- uses: actions/checkout@v3
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: "3.10"
architecture: x64
- run: pip install tox
- run: tox -e docs
lint:
runs-on: ubuntu-latest
name: Lint the package
steps:
- uses: actions/checkout@v3
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: "3.10"
architecture: x64
- run: pip install tox
- run: tox -e lint
30 changes: 0 additions & 30 deletions .github/workflows/ci-windows.yml

This file was deleted.

8 changes: 0 additions & 8 deletions .hgignore

This file was deleted.

16 changes: 14 additions & 2 deletions CHANGES.rst
@@ -1,5 +1,17 @@
1.8.4 (Unreleased)
==================
unreleased
==========

- Drop support for Python 2.7, 3.4, 3.5, 3.6.

- Add support for Python 3.10, 3.11.

- **[breaking]** If a ``bytes`` object is serialized by a ``String`` schema
node with the ``encoding`` parameter specified, it will be passed through
directly to ``str`` first, causing it to come out with a ``b''`` prefix. In
order to serialize it properly, it should be decoded to a string first.
Previously, when the ``encoding`` parameter was specified it would be decoded
and re-encoded, effectively passing it through untouched, despite not being a
string type.

- Add IDN support to ``colander.url``.

Expand Down
1 change: 1 addition & 0 deletions CONTRIBUTORS.txt
Expand Up @@ -143,3 +143,4 @@ Contributors
- Damian Dimmich, 2020/07/19
- Keith M Franklin, 2020/07/30
- Scott Maki, 2020/11/15
- Jens Troeger, 2022/07/03
2 changes: 1 addition & 1 deletion MANIFEST.in
Expand Up @@ -15,7 +15,7 @@ include COPYRIGHT.txt
include CHANGES.rst

include setup.cfg pyproject.toml
include .coveragerc .flake8
include .coveragerc .flake8 pytest.ini
include tox.ini rtd.txt

exclude TODO.txt
Expand Down
2 changes: 2 additions & 0 deletions docs/api.rst
Expand Up @@ -83,6 +83,8 @@ Validators

.. autoclass:: Email

.. autoclass:: DataURL

.. autofunction:: luhnok

.. attribute:: url
Expand Down
12 changes: 8 additions & 4 deletions pyproject.toml
Expand Up @@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
[tool.black]
line-length = 79
skip-string-normalization = true
py36 = false
target_version = ["py37"]
exclude = '''
/(
\.git
Expand All @@ -23,8 +23,12 @@ exclude = '''
# This next section only exists for people that have their editors
# automatically call isort, black already sorts entries on its own when run.
[tool.isort]
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
profile = "black"
py_version = 3
combine_as_imports = true
line_length = 79
force_sort_within_sections = true
no_lines_before = "THIRDPARTY"
sections = "FUTURE,THIRDPARTY,FIRSTPARTY,LOCALFOLDER"
default_section = "THIRDPARTY"
known_first_party = "hupper"
4 changes: 4 additions & 0 deletions pytest.ini
@@ -0,0 +1,4 @@
[pytest]
python_files = test_*.py
testpaths =
tests
19 changes: 2 additions & 17 deletions setup.cfg
Expand Up @@ -11,15 +11,12 @@ classifiers =
Development Status :: 6 - Mature
Intended Audience :: Developers
Programming Language :: Python
Programming Language :: Python :: 2
Programming Language :: Python :: 2.7
Programming Language :: Python :: 3
Programming Language :: Python :: 3.5
Programming Language :: Python :: 3.6
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 :: Implementation :: CPython
Programming Language :: Python :: Implementation :: PyPy
Operating System :: OS Independent
Expand All @@ -39,11 +36,10 @@ package_dir=
=src
packages=find:
include_package_data = True
python_requires = >=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*
python_requires = >=3.7
install_requires =
translationstring
iso8601
enum34; python_version in "2.7"
setuptools >= 11.3 # pkg_resources.EntryPoint.resolve()

[options.packages.find]
Expand All @@ -60,17 +56,6 @@ docs =
docutils
pylons-sphinx-themes>=1.0.9

[bdist_wheel]
universal = 1

[tool:pytest]
python_files = test_*.py
# For the benefit of test_wasyncore.py
python_classes = Test_*
testpaths =
tests
addopts = -W always --cov --cov-report=term-missing

[check-manifest]
ignore-bad-ideas =
src/colander/locale/**/*.mo
Expand Down

0 comments on commit 311e7ef

Please sign in to comment.