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

fix: increase range of supported versions of python #1540

Closed
wants to merge 8 commits into from
Closed
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
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
# moved from v1 to v2 20230301
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/conventional-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Install dependencies
run: npm install @commitlint/cli @commitlint/config-conventional
Expand Down
18 changes: 10 additions & 8 deletions .github/workflows/python-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
# Note: mac-os latest has transitioned to arm64. Only macos-13 and lower are x86_64 and support python 3.7.
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: [3.8, 3.12]
include:
- os: ubuntu-latest
path: ~/.cache/pip
Expand All @@ -25,24 +27,24 @@ jobs:
path: ~/.cache/pip
python-version: 3.7
# optional 3.7 test
- os: macos-latest
- os: macos-13
path: ~/Library/Caches/pip
python-version: 3.7.16
# optional 3.7 test
- os: windows-latest
path: ~\AppData\Local\pip\Cache
python-version: 3.7
python-version: [3.8, 3.9]


steps:
- name: Don't mess with line endings
run: |
git config --global core.autocrlf false
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
submodules: true
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- uses: actions/cache@v2
Expand Down Expand Up @@ -103,7 +105,7 @@ jobs:
fetch-depth: 0
token: ${{ secrets.ADMIN_PAT }}
- name: Set up Python 3.8
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: 3.8
- name: Install build tools
Expand All @@ -126,13 +128,13 @@ jobs:
# Temporary hack: allow develop as well as master to deploy docs.
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0
token: ${{ secrets.ADMIN_PAT }}
- name: Set up Python 3.8
uses: actions/setup-python@v2
uses: actions/setup-python@v5
# This is deliberately not using a custom credential as it relies on native github actions token to have push rights.
with:
python-version: 3.8
Expand All @@ -153,7 +155,7 @@ jobs:
cancel-in-progress: true
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
submodules: true
ref: main
Expand Down
26 changes: 13 additions & 13 deletions .github/workflows/python-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ jobs:
- name: Don't mess with line endings
run: |
git config --global core.autocrlf false
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
submodules: true
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: 3.9
- uses: actions/cache@v2
Expand Down Expand Up @@ -66,11 +66,11 @@ jobs:
- name: Don't mess with line endings
run: |
git config --global core.autocrlf false
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
submodules: true
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: 3.9
- uses: actions/cache@v2
Expand All @@ -91,8 +91,9 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
# Note: mac-os latest has transitioned to arm64. Only macos-13 and lower are x86_64 and support python 3.7.
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: [3.8, 3.9]
python-version: [3.8, 3.12]
include:
- os: ubuntu-latest
path: ~/.cache/pip
Expand All @@ -105,24 +106,23 @@ jobs:
path: ~/.cache/pip
python-version: 3.7
# optional 3.7 test
- os: macos-latest
- os: macos-13
path: ~/Library/Caches/pip
python-version: 3.7.16
# optional 3.7 test
- os: windows-latest
path: ~\AppData\Local\pip\Cache
python-version: 3.7

steps:
- name: Don't mess with line endings
run: |
git config --global core.autocrlf false
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: true
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- uses: actions/cache@v2
Expand Down Expand Up @@ -161,19 +161,19 @@ jobs:
- name: Don't mess with line endings
run: |
git config --global core.autocrlf false
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
submodules: true
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: 3.8
- uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ubuntu-latest-3.9-pip-${{ hashFiles('setup.cfg') }}
key: ubuntu-latest-3.8-pip-${{ hashFiles('setup.cfg') }}
restore-keys: |
ubuntu-latest-3.9-pip-
ubuntu-latest-3.8-pip-
- name: Install build tools
run: |
make develop
Expand Down
5 changes: 4 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ classifiers =
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
long_description_content_type = text/markdown
long_description = file: README.md
python_require= '>=3.7'
Expand All @@ -43,6 +46,7 @@ install_requires =
cmarkgfm==0.6.* #Update regularly
orjson
requests
setuptools

[options.packages.find]
include = trestle*
Expand All @@ -64,7 +68,6 @@ dev =
pytest-cov>=2.10.0
pytest-xdist
pre-commit>=2.4.0
setuptools
urllib3==1.26.17
wheel
yapf
Expand Down
Loading