Skip to content

Commit 03ccbc4

Browse files
authored
Release v0.14.0 (#118)
2 parents c5b73d4 + 00259a2 commit 03ccbc4

34 files changed

+725
-250
lines changed

.github/workflows/test.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,13 @@ jobs:
2626
strategy:
2727
matrix:
2828
runner:
29-
- "ubuntu-latest"
30-
- "macos-latest"
31-
- "windows-latest"
29+
- "ubuntu-24.04"
30+
- "macos-15"
31+
- "windows-2025"
3232

3333
# These values will be applied to all runners listed above.
3434
include:
3535
- cpythons:
36-
- "3.9"
3736
- "3.10"
3837
- "3.11"
3938
- "3.12"

.pre-commit-config.yaml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ repos:
1313
- id: "check-useless-excludes"
1414

1515
- repo: "https://github.com/pre-commit/pre-commit-hooks"
16-
rev: "v5.0.0"
16+
rev: "v6.0.0"
1717
hooks:
1818
- id: "check-added-large-files"
1919
- id: "check-merge-conflict"
@@ -28,8 +28,8 @@ repos:
2828
rev: "v3.20.0"
2929
hooks:
3030
- id: "pyupgrade"
31-
name: "Enforce Python 3.9+ idioms"
32-
args: ["--py39-plus"]
31+
name: "Enforce Python 3.10+ idioms"
32+
args: ["--py310-plus"]
3333

3434
- repo: "https://github.com/sirosen/slyp"
3535
rev: "0.8.2"
@@ -51,15 +51,16 @@ repos:
5151
hooks:
5252
- id: "flake8"
5353
additional_dependencies:
54+
- "flake8-toml-config==1.0.0"
5455
- "flake8-bugbear==24.12.12"
5556

5657
- repo: "https://github.com/editorconfig-checker/editorconfig-checker"
57-
rev: "v3.3.0"
58+
rev: "v3.4.0"
5859
hooks:
5960
- id: "editorconfig-checker"
6061

6162
- repo: "https://github.com/python-jsonschema/check-jsonschema"
62-
rev: "0.33.2"
63+
rev: "0.34.0"
6364
hooks:
6465
- id: "check-dependabot"
6566
- id: "check-readthedocs"
@@ -73,3 +74,11 @@ repos:
7374
rev: "v1.0.0"
7475
hooks:
7576
- id: "verify-consistent-pyproject-toml-python-requirements"
77+
78+
- repo: "https://github.com/shellcheck-py/shellcheck-py"
79+
rev: "v0.11.0.1"
80+
hooks:
81+
- id: "shellcheck"
82+
args: [
83+
"-e", "SC1091", # Ignore non-existent 'source ...' targets.
84+
]

CHANGELOG.rst

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,49 @@ Please see the fragment files in the `changelog.d directory`_.
2525

2626
.. scriv-insert-here
2727
28+
.. _changelog-0.14.0:
29+
30+
0.14.0 - 2025-09-25
31+
===================
32+
33+
Python support
34+
--------------
35+
36+
* Drop Python 3.9 support.
37+
38+
Added
39+
-----
40+
41+
* Add an ``inject`` command.
42+
43+
This allows a database of dependencies to be injected into a target file.
44+
This can be used to make a Python file a standalone executable.
45+
46+
This feature requires Python 3.11 and higher at execution time
47+
due to sqlite3 API usage.
48+
49+
Documentation
50+
-------------
51+
52+
* Use ``pngcrush`` to make image file sizes smaller.
53+
* Link to the source code repository without using an ``iframe``.
54+
* Document how to import sqliteimport and load a database of packages.
55+
56+
This now includes runnable scripts showing fully-automated loading
57+
using ``sitecustomize.py`` and the ``PYTHONPATH`` environment variable.
58+
In addition, more information is provided
59+
for manually importing sqliteimport and loading a database.
60+
61+
Development
62+
-----------
63+
64+
* Migrate the flake8 configuration to ``pyproject.toml`` using
65+
the `flake8-toml-config <https://github.com/kurtmckee/flake8-toml-config>`_ plugin.
66+
* Test type annotations against all supported Python versions.
67+
* Lock the GitHub CI runners to known, predictable versions.
68+
* Lock the coverage dependencies used for generating HTML reports
69+
to match the same version used to gather coverage statistics.
70+
2871
.. _changelog-0.13.0:
2972

3073
0.13.0 - 2025-07-24

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
SPDX-License-Identifier: MIT
55
66

7-
.. image:: https://raw.githubusercontent.com/kurtmckee/sqliteimport/dfd7095f2df8d6e9249889dd85f102027d1a6cfb/docs/_static/banner.png
7+
.. image:: https://raw.githubusercontent.com/kurtmckee/sqliteimport/000c868cc82965e7ac1a421c76972db545937d26/docs/_static/banner.png
88
:alt: sqlite import: Import Python code from sqlite databases.
99

1010
-------------------------------------------------------------------------------

docs/_static/banner.png

-15.2 KB
Loading

docs/_static/logo.png

-14.7 KB
Loading

docs/_templates/about-no-logo.html.jinja

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,7 @@ SPDX-License-Identifier: MIT
2323
{% endif %}
2424

2525
{% if theme_github_user and theme_github_repo %}
26-
{% if theme_github_button|lower == 'true' %}
2726
<p>
28-
<iframe src="https://ghbtns.com/github-btn.html?user={{ theme_github_user }}&repo={{ theme_github_repo }}&type={{ theme_github_type }}&count={{ theme_github_count }}&size=large&v=2"
29-
allowtransparency="true" frameborder="0" scrolling="0" width="200px" height="35px"></iframe>
27+
<a href="https://github.com/{{ theme_github_user }}/{{ theme_github_repo }}">Source code repository</a>
3028
</p>
3129
{% endif %}
32-
{% endif %}

docs/_templates/about.html.jinja

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{#
2+
This file is a part of sqliteimport <https://github.com/kurtmckee/sqliteimport>
3+
Copyright 2024-2025 Kurt McKee <[email protected]>
4+
SPDX-License-Identifier: MIT
5+
#}
6+
7+
{% if theme_logo %}
8+
<p class="logo">
9+
<a href="{{ pathto(master_doc) }}">
10+
<img class="logo" src="{{ pathto('_static/' ~ theme_logo, 1) }}" alt="Logo" />
11+
{% if theme_logo_name|lower == 'true' %}
12+
<h1 class="logo logo-name">{{ project }}</h1>
13+
{% elif theme_logo_name|lower != 'false' %}
14+
<h1 class="logo logo-name">{{ theme_logo_name }}</h1>
15+
{% endif %}
16+
</a>
17+
</p>
18+
{% else %}
19+
<h1 class="logo"><a href="{{ pathto(master_doc) }}">{{ project }}</a></h1>
20+
{% endif %}
21+
22+
{% if theme_description %}
23+
<p class="blurb">{{ theme_description }}</p>
24+
{% endif %}
25+
26+
{% if theme_github_user and theme_github_repo %}
27+
<p>
28+
<a href="https://github.com/{{ theme_github_user }}/{{ theme_github_repo }}">Source code repository</a>
29+
</p>
30+
{% endif %}

docs/conf.py

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,21 +40,26 @@
4040
# Link to GitHub
4141
"github_user": "kurtmckee",
4242
"github_repo": "sqliteimport",
43-
"github_button": True,
44-
"github_type": "star",
45-
"github_count": False,
43+
"github_button": False,
4644
# Donation button
4745
"donate_url": "https://ko-fi.com/kurtmckee",
4846
}
4947
templates_path = ["_templates"]
5048
html_sidebars = {
5149
"index": [
52-
"about-no-logo.html.jinja", # Don't show a logo on the front page.
50+
"about-no-logo.html.jinja", # Custom
5351
"donate.html",
5452
"navigation.html",
5553
"relations.html",
5654
"searchbox.html",
57-
]
55+
],
56+
"**": [
57+
"about.html.jinja", # Custom
58+
"searchfield.html",
59+
"navigation.html",
60+
"relations.html",
61+
"donate.html",
62+
],
5863
}
5964

6065
# Don't copy source .rst files into the built documentation.

docs/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Table of contents
5555
.. toctree::
5656
:maxdepth: 1
5757

58-
load
58+
load/index
5959
bytecode
6060
flake8/index
6161
isort/index

0 commit comments

Comments
 (0)