From 3222ba3acdb6b10f4f4c8cb5e539b8fe605e8370 Mon Sep 17 00:00:00 2001 From: ed Date: Thu, 31 Jul 2025 22:56:45 +0000 Subject: [PATCH 1/6] man --- copyparty/up2k.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/copyparty/up2k.py b/copyparty/up2k.py index 49bf21b7..f544d0e3 100644 --- a/copyparty/up2k.py +++ b/copyparty/up2k.py @@ -2827,7 +2827,7 @@ class Up2k(object): # v5a -> v5b # store rd+fn rather than warks to support nohash vols try: - cur.execute("select ws, rd, fn from iu limit 1").fetchone() + cur.execute("select c, w, rd, fn from iu limit 1").fetchone() return except: pass From 1f966bb9d5a9d6ad6adfec5f950b4828bb38aac3 Mon Sep 17 00:00:00 2001 From: ed Date: Thu, 31 Jul 2025 22:57:14 +0000 Subject: [PATCH 2/6] devnotes: add tgz to build-from-scratch procedure --- docs/devnotes.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/devnotes.md b/docs/devnotes.md index 3db6b201..229cb398 100644 --- a/docs/devnotes.md +++ b/docs/devnotes.md @@ -415,6 +415,8 @@ to get started, first `cd` into the `scripts` folder * if you want to build the `.pyz` standalone "binary", now run `./make-pyz.sh` +* if you want to build the `tar.gz` for use in a linux-distro package, now run `./make-tgz-release.sh theVersionNumber` + * if you want to build a pypi package, now run `./make-pypi-release.sh d` * if you want to build a docker-image, you have two options: From b69d590176e3bb49c8e039a2f17c4ba21b5f55c2 Mon Sep 17 00:00:00 2001 From: Benjamin Bock Date: Thu, 31 Jul 2025 20:52:58 +0200 Subject: [PATCH 3/6] Improve Python 2 compatibility --- copyparty/httpcli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/copyparty/httpcli.py b/copyparty/httpcli.py index bdbaced2..f698255a 100644 --- a/copyparty/httpcli.py +++ b/copyparty/httpcli.py @@ -911,7 +911,7 @@ class HttpCli(object): if status == 304: self.out_headers.pop("Content-Length", None) self.out_headers.pop("Content-Type", None) - self.out_headerlist.clear() + self.out_headerlist[:] = [] if self.k304(): self.keepalive = False else: From f401fa7f6c4b5be949be7d774225045d374d2043 Mon Sep 17 00:00:00 2001 From: Toast <39011842+toast003@users.noreply.github.com> Date: Thu, 31 Jul 2025 02:19:22 +0200 Subject: [PATCH 4/6] nix: remove space from list separator The extra speces made copyparty freak out if you tried listening to an ip address and a unix socket at the same time --- contrib/nixos/modules/copyparty.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/nixos/modules/copyparty.nix b/contrib/nixos/modules/copyparty.nix index cd4fef40..994b2575 100644 --- a/contrib/nixos/modules/copyparty.nix +++ b/contrib/nixos/modules/copyparty.nix @@ -22,7 +22,7 @@ let mkValueString = value: if isList value then - (concatStringsSep ", " (map mkValueString value)) + (concatStringsSep "," (map mkValueString value)) else if isAttrs value then "\n" + (mkAttrsString value) else From e965dc9c74652f40ccef1ccc25e1c1b6a971e884 Mon Sep 17 00:00:00 2001 From: Kevin Leutzinger <6435727+kleutzinger@users.noreply.github.com> Date: Tue, 29 Jul 2025 15:54:13 -0400 Subject: [PATCH 5/6] Add `uvx copyparty` Signed-off-by: Kevin Leutzinger <6435727+kleutzinger@users.noreply.github.com> --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 83c47875..ba843777 100644 --- a/README.md +++ b/README.md @@ -152,6 +152,7 @@ just run **[copyparty-sfx.py](https://github.com/9001/copyparty/releases/latest/ * or install [on arch](#arch-package) ╱ [on NixOS](#nixos-module) ╱ [through nix](#nix-package) * or if you are on android, [install copyparty in termux](#install-on-android) * or maybe you have a [synology nas / dsm](./docs/synology-dsm.md) +* or if you have [uv](https://docs.astral.sh/uv/) installed, run `uvx copyparty` * or if your computer is messed up and nothing else works, [try the pyz](#zipapp) * or if your OS is dead, give the [bootable flashdrive / cd-rom](https://a.ocv.me/pub/stuff/edcd001/enterprise-edition/) a spin * or if you don't trust copyparty yet and want to isolate it a little, then... From d357ff0d164c1790ec9ae77d52b9c098de5e419a Mon Sep 17 00:00:00 2001 From: Kevin Leutzinger <6435727+kleutzinger@users.noreply.github.com> Date: Tue, 29 Jul 2025 15:57:05 -0400 Subject: [PATCH 6/6] Update README.md Signed-off-by: Kevin Leutzinger <6435727+kleutzinger@users.noreply.github.com> --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ba843777..889ea8b8 100644 --- a/README.md +++ b/README.md @@ -152,7 +152,7 @@ just run **[copyparty-sfx.py](https://github.com/9001/copyparty/releases/latest/ * or install [on arch](#arch-package) ╱ [on NixOS](#nixos-module) ╱ [through nix](#nix-package) * or if you are on android, [install copyparty in termux](#install-on-android) * or maybe you have a [synology nas / dsm](./docs/synology-dsm.md) -* or if you have [uv](https://docs.astral.sh/uv/) installed, run `uvx copyparty` +* or if you have [uv](https://docs.astral.sh/uv/) installed, run `uv tool run copyparty` * or if your computer is messed up and nothing else works, [try the pyz](#zipapp) * or if your OS is dead, give the [bootable flashdrive / cd-rom](https://a.ocv.me/pub/stuff/edcd001/enterprise-edition/) a spin * or if you don't trust copyparty yet and want to isolate it a little, then...