pmtiles-swarm 0.45.0 → 0.45.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -7,6 +7,17 @@
7
7
  ### 🐞 Bug fixes
8
8
  - _...Add new stuff here..._
9
9
 
10
+ ## 0.45.1
11
+ ### ✨ Features and improvements
12
+
13
+ ### 🐞 Bug fixes
14
+ - **The virtualenv route for libtorrent now says it can hand you an older version.** pip installs the
15
+ newest wheel the *Python* can take, not the newest libtorrent, and the wheels for Python 3.8 stop
16
+ at 2.0.9 — so on Ubuntu 20.04 the recipe as written produced a downgrade from the distribution's
17
+ own package, silently. The section now says how to read the `cp` tag in the filename, to compare
18
+ both interpreters before committing, and that a newer libtorrent on an older release needs a newer
19
+ Python first.
20
+
10
21
  ## 0.45.0
11
22
  ### ✨ Features and improvements
12
23
  - **Requires pmtiles-torrent 0.9.1**, which stops the sidecar rewriting resume data that has not
@@ -573,6 +573,22 @@ sudo -u pmtiles-swarm /var/lib/pmtiles-swarm/venv/bin/python -c "import libtor
573
573
  { "libtorrent": { "python": "/var/lib/pmtiles-swarm/venv/bin/python" } }
574
574
  ```
575
575
 
576
+ **Check what you got before pointing anything at it.** pip installs the newest
577
+ wheel _your Python_ can take, which is not the newest libtorrent. The filename
578
+ says which: `libtorrent-2.1.1-cp312-…` is Python 3.12, `libtorrent-2.0.9-cp38-…`
579
+ is Python 3.8 — and 2.0.9 is where the wheels for 3.8 stop. On Ubuntu 20.04,
580
+ whose `python3` is 3.8, this route hands you something **older** than the
581
+ distribution's own package. Compare the two before you commit to it:
582
+
583
+ ```sh
584
+ sudo -u pmtiles-swarm python3 -c "import libtorrent; print(libtorrent.__version__)"
585
+ sudo -u pmtiles-swarm /var/lib/pmtiles-swarm/venv/bin/python -c "import libtorrent; print(libtorrent.__version__)"
586
+ ```
587
+
588
+ If the venv is not newer, delete it and keep the distribution package. Getting a
589
+ newer libtorrent on an older release means a newer Python first — deadsnakes, or
590
+ the release upgrade — and building the venv from that interpreter.
591
+
576
592
  Reversible in one line: delete the key and the node is back on the distribution
577
593
  package, with no uninstall and nothing done to apt. `ReadWritePaths` already
578
594
  covers `/var/lib/pmtiles-swarm`, so the venv needs no unit change — put it
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmtiles-swarm",
3
- "version": "0.45.0",
3
+ "version": "0.45.1",
4
4
  "description": "BitTorrent distribution for PMTiles map archives: create torrents, watch folders, publish and subscribe to RSS feeds, and seed through qBittorrent or an embedded client",
5
5
  "type": "module",
6
6
  "main": "src/index.js",