Package Details: servefile 0.5.4-5

Git Clone URL: https://aur.archlinux.org/servefile.git (read-only, click to copy)
Package Base: servefile
Description: Serve or receive files from shell via a small HTTP server
Upstream URL: https://github.com/sebageek/servefile
Licenses: GPL3
Conflicts: servefile
Provides: servefile
Submitter: cschwarz
Maintainer: grandchild
Last Packager: grandchild
Votes: 3
Popularity: 0.000048
First Submitted: 2016-01-16 22:45 (UTC)
Last Updated: 2024-05-30 07:27 (UTC)

Dependencies (6)

Required by (0)

Sources (1)

Latest Comments

grandchild commented on 2024-05-30 07:28 (UTC)

I disabled the check() function for now. The tests just aren't working for most people.

jcassee commented on 2024-05-30 07:10 (UTC) (edited on 2024-05-30 11:22 (UTC) by jcassee)

Version 0.5.4-4 fails to build because of a test failure. Some choice output:

[...]
==> Starting check()...
========================================= test session starts ==========================================
platform linux -- Python 3.12.3, pytest-8.2.1, pluggy-1.5.0
rootdir: /home/user/.cache/paru/clone/servefile/src/servefile-0.5.4
plugins: subtests-0.12.1, time-machine-2.14.1, mock-3.14.0, typeguard-4.2.1, hypothesis-6.102.6, anyio-4.3.0, xdist-3.5.0, cov-4.1.0, Faker-25.0.1
collected 19 items

tests/test_servefile.py ..........F........                                                      [100%]

=============================================== FAILURES ===============================================
____________________________________ test_serve_relative_directory _____________________________________

self = <urllib3.connection.HTTPConnection object at 0x75bfb91abec0>
[...]
/usr/lib/python3.12/site-packages/urllib3/connection.py:174:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/lib/python3.12/site-packages/urllib3/util/connection.py:95: in create_connection
    raise err
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[...]
E           requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=35821): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75bfb91abec0>: Failed to establish a new connection: [Errno 111] Connection refused'))

/usr/lib/python3.12/site-packages/requests/adapters.py:700: ConnectionError
----------------------------------------- Captured stdout call -----------------------------------------
running -m, servefile with args ['../', '-l', '-p', '35821']
Calling get on http://localhost:35821/ with {}
[...]
Calling get on http://localhost:35821/ with {}
----------------------------------------- Captured stderr call -----------------------------------------
/usr/bin/python: No module named servefile
======================================= short test summary info ========================================
FAILED tests/test_servefile.py::test_serve_relative_directory - requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=35821): Max retries ...
===================================== 1 failed, 18 passed in 5.34s =====================================
==> ERROR: A failure occurred in check().
[...]

Maybe this is the most interesting error: /usr/bin/python: No module named servefile

I'm not aware of any weird Python setup on my system.

EDIT: Thank you for the quick fix, Jakob!

grandchild commented on 2023-12-05 12:50 (UTC)

Added, thanks!

LukEsc commented on 2023-12-05 08:36 (UTC)

I believe this should have python-setuptools as a dependency.

grandchild commented on 2021-01-01 23:03 (UTC)

@serxxx you're right about the port, and the tests fail for other reasons sometimes too. I'll disable them soon, not on a dev machine right now.

For now you can install with makepkg with --nocheck.

serxxx commented on 2021-01-01 16:14 (UTC)

The tests also hardcode to running a test server on port 8080, causing them to fail if anything else is already running on the commonly used port, preventing the package from being installed. It'd be better to not have the package run tests, than to run tests that are bound to fail for bad reasons.

grandchild commented on 2019-09-24 08:50 (UTC) (edited on 2019-09-24 08:51 (UTC) by grandchild)

The source URL has changed:

https://git.someserver.de/seba/servefile/archive/${_commit}.tar.gz

(please use HTTP(S) since some firewalls block SSH ports)

Also, still, the version name is wrong.

If you want I can (co)maintain.

grandchild commented on 2018-10-10 10:28 (UTC)

The pkgver should not include the 'v'-prefix.