Skip to content

Commit 3452ef2

Browse files
rnorthclaude
andcommitted
Modernise build tooling: Python 3.11, setuptools-scm, mise
- Replace better-setuptools-git-version (broken on Python 3.10+) with setuptools-scm - Bump python_requires to >=3.11 and update classifiers to match - Update CI workflows (python-package, python-publish) to Python 3.11 - Switch from direnv (.envrc) to mise (.mise.toml) for local tooling Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent fdcba98 commit 3452ef2

File tree

5 files changed

+11
-10
lines changed

5 files changed

+11
-10
lines changed

.envrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

.github/workflows/python-package.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
runs-on: ubuntu-latest
1818
strategy:
1919
matrix:
20-
python-version: [3.7, 3.8]
20+
python-version: ["3.11"]
2121

2222
steps:
2323
- uses: actions/checkout@v2

.github/workflows/python-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Set up Python
1818
uses: actions/setup-python@v2
1919
with:
20-
python-version: '3.8'
20+
python-version: '3.11'
2121
- name: Install dependencies
2222
run: |
2323
python -m pip install --upgrade pip

.mise.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[tools]
2+
python = "3.11"
3+
4+
[env]
5+
_.python.venv = { path = ".venv", create = true }

setup.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,7 @@ def read_file(fname):
1010

1111
setup(
1212
name='mkdocs-codeinclude-plugin',
13-
version_config={
14-
"version_format": "{tag}.dev{sha}",
15-
"starting_version": "0.2.0"
16-
},
13+
use_scm_version=True,
1714
description="A plugin to include code snippets into mkdocs pages",
1815
long_description=read_file('README.md'),
1916
long_description_content_type='text/markdown',
@@ -22,19 +19,19 @@ def read_file(fname):
2219
author='Richard North',
2320
author_email='rich.north@gmail.com',
2421
license='MIT',
25-
python_requires='>=3.7',
22+
python_requires='>=3.11',
2623
install_requires=[
2724
'mkdocs>=1.2',
2825
'pygments>=2.9.0'
2926
],
30-
setup_requires=['better-setuptools-git-version'],
27+
setup_requires=['setuptools-scm'],
3128
classifiers=[
3229
'Intended Audience :: Developers',
3330
'Intended Audience :: Information Technology',
3431
'License :: OSI Approved :: MIT License',
3532
'Programming Language :: Python',
3633
'Programming Language :: Python :: 3 :: Only',
37-
'Programming Language :: Python :: 3.6',
34+
'Programming Language :: Python :: 3.11',
3835
],
3936
packages=['codeinclude'],
4037
include_package_data=True,

0 commit comments

Comments
 (0)