pax_global_header00006660000000000000000000000064145204225710014514gustar00rootroot0000000000000052 comment=92bd434ada847410ded5c83f2dd4eaacdbad67f4 wtforms-3.1.1/000077500000000000000000000000001452042257100132175ustar00rootroot00000000000000wtforms-3.1.1/.github/000077500000000000000000000000001452042257100145575ustar00rootroot00000000000000wtforms-3.1.1/.github/ISSUE_TEMPLATE.md000066400000000000000000000015341452042257100172670ustar00rootroot00000000000000### Actual Behavior ```python # Paste a minimal piece of code that causes the problem: # - try to avoid using side projects like flask-wtf # or wtforms-alchemy in your sample ; # - delete all the irrelevant code (comments, irrelevant fields etc.). # Here is an example: >>> import wtforms >>> class F(wtforms.Form): ... foo = wtforms.StringField() >>> f = F(foo="bar") >>> print(f.foo.shrug) Traceback (most recent call last): File "", line 1, in AttributeError: 'StringField' object has no attribute 'shrug' ``` ### Expected Behavior ```python # Show us, and explain what behavior you would have expected. # Here is an example: >>> import wtforms >>> class F(wtforms.Form): ... foo = wtforms.StringField() >>> f = F(foo="bar") >>> print(f.foo.shrug) ¯\_(ツ)_/¯ ``` ### Environment * Python version: * wtforms version: wtforms-3.1.1/.github/PULL_REQUEST_TEMPLATE.md000066400000000000000000000006651452042257100203670ustar00rootroot00000000000000Describe the issue you are attempting to fix. Link to any relevant issues or pull requests. Describe what this patch does to fix the issue. wtforms-3.1.1/.github/workflows/000077500000000000000000000000001452042257100166145ustar00rootroot00000000000000wtforms-3.1.1/.github/workflows/tests.yaml000066400000000000000000000031301452042257100206370ustar00rootroot00000000000000--- name: tests on: push: branches: - master - '*.x' pull_request: branches: - master - '*.x' jobs: tests: name: ${{ matrix.python }} runs-on: ubuntu-latest strategy: fail-fast: false matrix: python: - '3.12' - '3.11' - '3.10' - '3.9' - '3.8' - 'pypy-3.10' steps: - uses: actions/checkout@v2 - uses: actions/setup-python@v2 with: python-version: ${{ matrix.python }} - uses: actions/cache@v1 with: path: ~/.cache/pip key: pip|${{ hashFiles('setup.py') }}|${{ hashFiles('tox.ini') }} - run: pip install tox - run: tox -e py style: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - uses: actions/setup-python@v2 with: python-version: '3.12' - uses: actions/cache@v1 with: path: ~/.cache/pip key: pip|${{ hashFiles('setup.py') }}|${{ hashFiles('tox.ini') }} - uses: actions/cache@v1 with: path: ~/.cache/pre-commit key: pre-commit|${{ hashFiles('.pre-commit-config.yaml') }} - run: pip install tox - run: tox -e style docs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - uses: actions/setup-python@v2 with: python-version: '3.12' - uses: actions/cache@v1 with: path: ~/.cache/pip key: pip|${{ hashFiles('setup.py') }}|${{ hashFiles('tox.ini') }} - run: pip install tox - run: tox -e docs wtforms-3.1.1/.gitignore000066400000000000000000000002731452042257100152110ustar00rootroot00000000000000/.idea/ /.vscode/ /env/ /venv/ __pycache__/ *.pyc .eggs/ *.egg-info/ /build/ /dist/ /.pytest_cache/ /.tox/ .coverage .coverage.* /htmlcov/ /docs/_build/ /src/wtforms/locale/**/wtforms.mo wtforms-3.1.1/.pre-commit-config.yaml000066400000000000000000000014331452042257100175010ustar00rootroot00000000000000--- repos: - repo: https://github.com/asottile/pyupgrade rev: v3.13.0 hooks: - id: pyupgrade args: ["--py38-plus"] - repo: https://github.com/asottile/reorder_python_imports rev: v3.11.0 hooks: - id: reorder-python-imports args: ["--application-directories", "src"] - repo: https://github.com/psf/black rev: 23.9.1 hooks: - id: black - repo: https://github.com/pycqa/flake8 rev: 6.1.0 hooks: - id: flake8 additional_dependencies: - flake8-bugbear - flake8-implicit-str-concat - flake8-pyproject - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.4.0 hooks: - id: check-byte-order-marker - id: trailing-whitespace - id: end-of-file-fixer wtforms-3.1.1/.readthedocs.yaml000066400000000000000000000003251452042257100164460ustar00rootroot00000000000000version: 2 python: install: - method: pip path: . - requirements: docs/requirements.txt sphinx: builder: dirhtml formats: - pdf - epub build: os: "ubuntu-22.04" tools: python: "3.11" wtforms-3.1.1/CHANGES.rst000066400000000000000000000531761452042257100150350ustar00rootroot00000000000000.. currentmodule:: wtforms Version 3.1.1 ------------- Released 2023-11-01 - Display :class:`~wtforms.Flags` values in their repr. :pr:`808` - :class:`~fields.SelectField` and :class:`~fields.SelectMultipleField` ``choices`` can be `None` if `validate_choice` is `False` :pr:`809` - Documentation improvements :pr:`812` :pr:`815` :pr:`817` - Unit tests improvements :pr:`813` - Python 3.12 support :pr:`818` - Restored support for 3-items tuple return value from `iter_choices` :pr:`816` Version 3.1.0 ------------- Released 2023-10-10 - Documentation improvements :pr:`726` :pr:`733` :pr:`749` :pr:`767` :pr:`788` :pr:`789` :pr:`793` - Translation improvements :pr:`732` :pr:`734` :pr:`754` - Implement :class:`~fields.ColorField` :pr:`755` - Delayed import of ``email_validator``. :issue:`727` - ``