Skip to content

Commit dfbbc5a

Browse files
authored
Merge pull request #105 from linw1995/feat/py313
build: supports python3.13
2 parents 8e50a2e + dd6b1c6 commit dfbbc5a

File tree

13 files changed

+439
-229
lines changed

13 files changed

+439
-229
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Set up PDM
1818
uses: pdm-project/setup-pdm@v3
1919
with:
20-
python-version: 3.12
20+
python-version: 3.13
2121
- name: Cache Nox Virtualenvs
2222
uses: actions/cache@v1
2323
with:
@@ -36,7 +36,7 @@ jobs:
3636
runs-on: ubuntu-latest
3737
strategy:
3838
matrix:
39-
python-version: [3.9, "3.10", "3.11", "3.12"]
39+
python-version: [3.9, "3.10", "3.11", "3.12", "3.13"]
4040
steps:
4141
- uses: actions/checkout@v1
4242
- name: Set up PDM
@@ -67,7 +67,7 @@ jobs:
6767
runs-on: ubuntu-latest
6868
strategy:
6969
matrix:
70-
python-version: [3.9, "3.10", "3.11", "3.12"]
70+
python-version: [3.9, "3.10", "3.11", "3.12", "3.13"]
7171
steps:
7272
- uses: actions/checkout@v1
7373
- name: Set up PDM

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ help:
1515
EMPTY :=
1616
SPACE := $(EMPTY) $(EMPTY)
1717

18-
PYTHON = 3.12
18+
PYTHON = 3.13
1919
EXTRAS = lxml cssselect jsonpath-extractor jsonpath-rw jsonpath-rw-ext
2020
DEV_EXTRAS = test test-mypy-plugin docs
2121
EXTRAS_ARGS = $(if $(EXTRAS),-G,) $(subst $(SPACE),$(SPACE)-G$(SPACE),$(EXTRAS))
@@ -26,7 +26,7 @@ init:
2626
@echo ">> installing $(if $(EXTRAS),\"$(EXTRAS)\" ,)$(if $(DEV_EXTRAS),\"$(DEV_EXTRAS)\" ,)dependencies by pdm"
2727
$(if $(PYTHON),pdm use -f $(PYTHON),)
2828
pdm info && pdm info --env
29-
pdm sync -v $(EXTRAS_ARGS) $(DEV_EXTRAS_ARGS)
29+
pdm install $(EXTRAS_ARGS) $(DEV_EXTRAS_ARGS)
3030
pdm config -l python.use_venv true
3131

3232
deinit:

README.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -101,13 +101,13 @@ Usage
101101
Changelog
102102
<<<<<<<<<
103103

104-
v1.0.0
105-
~~~~~~~~~~
104+
v1.0.1
105+
~~~~~~
106106

107-
**Feature**
107+
**Build**
108+
109+
- Supports Python 3.13
108110

109-
- Generic extractor with convertor (#83)
110-
- mypy plugin for type annotation of extracting result (#83)
111111

112112

113113
Contributing

default.nix

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,6 @@
77
dream2nix.modules.dream2nix.WIP-python-pdm
88
];
99

10-
deps = {nixpkgs, ...}: {
11-
pkgs = nixpkgs;
12-
python = nixpkgs.python3;
13-
};
14-
1510
mkDerivation = {
1611
src = lib.cleanSourceWith {
1712
src = lib.cleanSource ./.;

docs/source/changelog.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
Changelog
33
=========
44

5-
v1.0.0
6-
~~~~~~~~~~
5+
v1.0.1
6+
~~~~~~
77

8-
**Feature**
8+
**Build**
9+
10+
- Supports Python 3.13
911

10-
- Generic extractor with convertor (#83)
11-
- mypy plugin for type annotation of extracting result (#83)
1212

1313
.. include:: history.rst
1414
:start-line: 4

docs/source/history.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22
History
33
=======
44

5+
v1.0.0
6+
~~~~~~
7+
8+
**Feature**
9+
10+
- Generic extractor with convertor (#83)
11+
- mypy plugin for type annotation of extracting result (#83)
12+
513
v0.10.2
614
~~~~~~~
715

flake.nix

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
in {
1919
packages = eachSystem (system: {
2020
default = dream2nix.lib.evalModules {
21-
packageSets.nixpkgs = nixpkgs.legacyPackages.${system};
21+
packageSets.nixpkgs = import nixpkgs {inherit system;};
2222
modules = [
2323
./default.nix
2424
{
@@ -33,16 +33,19 @@
3333
pkgs = import nixpkgs {inherit system;};
3434
in {
3535
default = pkgs.mkShell {
36-
inputsFrom = [self.packages.${system}.default.devShell];
37-
buildInputs = with pkgs; [
38-
python39
39-
python310
40-
python311
41-
python312
36+
inputsFrom = [
37+
self.packages.${system}.default.devShell
4238
];
39+
4340
packages = with pkgs; [
4441
pre-commit
4542
python312Packages.nox
43+
44+
python39
45+
python310
46+
python311
47+
python312
48+
python313
4649
];
4750
};
4851
});

noxfile.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
nox.options.stop_on_first_error = True
1010

1111

12-
pythons = ["3.9", "3.10", "3.11", "3.12"]
12+
pythons = ["3.9", "3.10", "3.11", "3.12", "3.13"]
1313

1414
os.environ.update({"PDM_IGNORE_SAVED_PYTHON": "1"})
1515
os.environ.pop("PYTHONPATH", None)
@@ -43,7 +43,6 @@ def coverage_test(session, extractor_backend):
4343
lambda s: s.run(
4444
"pdm",
4545
"sync",
46-
"-v",
4746
"-G",
4847
"test",
4948
*(("-G", extractor_backend) if extractor_backend else tuple()),
@@ -65,7 +64,7 @@ def coverage_test(session, extractor_backend):
6564
def coverage_report(session):
6665
venv_setup_on_create(
6766
session,
68-
lambda s: s.run("pdm", "sync", "-v", "-G", "test", external=True),
67+
lambda s: s.run("pdm", "sync", "-G", "test", external=True),
6968
)
7069
session.run("coverage", "report")
7170
session.run("coverage", "xml")
@@ -79,7 +78,7 @@ def coverage_report(session):
7978
def test_mypy_plugin(session):
8079
venv_setup_on_create(
8180
session,
82-
lambda s: s.run("pdm", "sync", "-v", "-G", "test-mypy-plugin", external=True),
81+
lambda s: s.run("pdm", "sync", "-G", "test-mypy-plugin", external=True),
8382
)
8483

8584
session.run(
@@ -98,7 +97,7 @@ def test_mypy_plugin(session):
9897
def build_readme(session):
9998
venv_setup_on_create(
10099
session,
101-
lambda s: s.run("pdm", "sync", "-v", "-G", "build_readme", external=True),
100+
lambda s: s.run("pdm", "sync", "-G", "build_readme", external=True),
102101
)
103102
session.run(
104103
"python", "scripts/build_readme.py", "README.template.rst", "README.rst"

0 commit comments

Comments
 (0)