Skip to content
This repository has been archived by the owner on Jan 25, 2025. It is now read-only.

Bump minimum supported versions to get a working CI config. #30

Merged
merged 6 commits into from
Jan 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@

version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
# Check for updates on Sunday, 8PM UTC
interval: "weekly"
day: "sunday"
time: "20:00"

- package-ecosystem: "pip"
directory: "/"
schedule:
# Check for updates on Sunday, 8PM UTC
interval: "weekly"
day: "sunday"
time: "20:00"
48 changes: 21 additions & 27 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- main
workflow_call:

jobs:
beefore:
Expand All @@ -17,11 +18,18 @@ jobs:
- 'towncrier-check'
- 'package'
steps:
- uses: actions/checkout@v1
# Fetch main branch for comparison, then check out current branch.
- uses: actions/checkout@v3
with:
fetch-depth: 0
ref: main
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v1
uses: actions/setup-python@v4.5.0
with:
python-version: 3.8
python-version: 3.X
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand All @@ -31,37 +39,23 @@ jobs:
run: |
tox -e ${{ matrix.task }}

smoke:
name: Smoke test (3.6)
needs: beefore
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up Python 3.6
uses: actions/setup-python@v1
with:
python-version: 3.6
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade setuptools
python -m pip install tox
- name: Test
run: |
tox -e py

python-versions:
name: Python compatibility test
needs: smoke
needs: beefore
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: [3.7, 3.8, 3.9]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12-dev"]
include:
- experimental: false

- python-version: "3.12-dev"
experimental: true

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
uses: actions/setup-python@v4.5.0
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/dependabot-changenote.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Dependabot Change Note

on:
push:
branches:
- 'dependabot/**'

jobs:
changenote:
name: Dependabot Change Note
uses: beeware/.github/.github/workflows/dependabot-changenote.yml@main
secrets: inherit
1 change: 1 addition & 0 deletions changes/30.misc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
A range of README and CI configuration changes were made.
10 changes: 8 additions & 2 deletions changes/template.rst
Original file line number Diff line number Diff line change
@@ -1,26 +1,32 @@
{% for section, _ in sections.items() %}
{% set underline = underlines[0] %}{% if section %}{{section}}
{{ underline * section|length }}{% set underline = underlines[1] %}

{% endif %}

{% if sections[section] %}
{% for category, val in definitions.items() if category in sections[section]%}

{{ definitions[category]['name'] }}
{{ underline * definitions[category]['name']|length }}

{% if definitions[category]['showcontent'] %}
{% for text, values in sections[section][category].items() %}
* {{ text }} ({{ values|join(', ') }})
{% endfor %}

{% else %}
* {{ sections[section][category]['']|join(', ') }}

{% endif %}
{% if sections[section][category]|length == 0 %}
No significant changes.

{% else %}
{% endif %}

{% endfor %}
{% else %}

No significant changes.

{% endif %}
{% endfor %}
8 changes: 5 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@ classifiers=
License :: OSI Approved :: BSD License
Operating System :: OS Independent
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 :: 3.12
Programming Language :: Python :: 3 :: Only
Topic :: Software Development
Topic :: Software Development :: User Interfaces
Expand All @@ -28,7 +30,7 @@ long_description = file: README.rst
long_description_content_type = text/x-rst

[options]
python_requires = >= 3.6
python_requires = >= 3.7
packages = find:
package_dir =
= src
Expand Down
6 changes: 3 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# and then run "tox" from this directory.

[tox]
envlist = flake8,towncrier-check,package,py{36,37,38,39}
envlist = flake8,towncrier-check,package,py{37,38,39,310,311,312}
skip_missing_interpreters = true

[testenv]
Expand All @@ -25,12 +25,12 @@ skip_install = True
deps =
{[testenv:towncrier]deps}
commands =
python -m towncrier.check
python -m towncrier.check --compare-with origin/main

[testenv:towncrier]
skip_install = True
deps =
towncrier >= 18.5.0
towncrier ~= 22.8
commands =
towncrier {posargs}

Expand Down