コミットを比較

...

4 コミット

作成者 SHA1 メッセージ 日付
Sebastian Lohff 33defb85a7 Further codeformatting
3年前
Sebastian Lohff 579363201c Code reformatting
3年前
Sebastian Lohff cd28811fcf Release v0.5.2
3年前
Sebastian Lohff 46d4433a1d Explicitly set encoding for http requests in tests
3年前

@ -2,8 +2,10 @@ servefile changelog
===================
Unreleased
----------
2021-09-08 v0.5.2
-----------------
0.5.2 released
* fixed bug where exception was shown on transmission abort with python3
* fixed wrong/outdated pyopenssl package names

@ -1,4 +1,4 @@
.TH SERVEFILE 1 "September 2020" "servefile 0.5.1" "User Commands"
.TH SERVEFILE 1 "September 2021" "servefile 0.5.2" "User Commands"
.SH NAME
servefile \- small HTTP-Server for temporary file transfer

ファイル差分が大きすぎるため省略します 差分を読み込み

@ -11,7 +11,7 @@ setup(
long_description=long_description,
long_description_content_type='text/markdown',
platforms='posix',
version='0.5.1',
version='0.5.2',
license='GPLv3 or later',
url='https://github.com/sebageek/servefile/',
author='Sebastian Lohff',

@ -92,11 +92,14 @@ def datadir(tmp_path):
def make_request(path='/', host='localhost', port=SERVEFILE_DEFAULT_PORT, method='get', protocol='http', timeout=5,
**kwargs):
encoding='utf-8', **kwargs):
url = '{}://{}:{}{}'.format(protocol, host, port, path)
print('Calling {} on {} with {}'.format(method, url, kwargs))
r = getattr(requests, method)(url, **kwargs)
if r.encoding is None and encoding:
r.encoding = encoding
return r
@ -127,7 +130,7 @@ def _test_version(run_servefile, standalone):
version = s.stdout.readline().decode().strip()
# hardcode version as string until servefile is a module
assert version == 'servefile 0.5.1'
assert version == 'servefile 0.5.2'
def test_version(run_servefile):

読み込み中…
キャンセル
保存