diff --git a/.gitignore b/.gitignore index cb1d895..227e974 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /v4.2.1.tar.gz /Flask-SocketIO-4.3.2.tar.gz /Flask-SocketIO-5.1.0.tar.gz +/Flask-SocketIO-5.1.1.tar.gz diff --git a/python-flask-socketio.spec b/python-flask-socketio.spec index 170d175..3678733 100644 --- a/python-flask-socketio.spec +++ b/python-flask-socketio.spec @@ -1,7 +1,7 @@ %global srcname flask-socketio Name: python-%{srcname} -Version: 5.1.0 +Version: 5.1.1 Release: %autorelease Summary: Socket.IO integration for Flask applications @@ -18,10 +18,6 @@ BuildRequires: pyproject-rpm-macros BuildRequires: make BuildRequires: python3dist(sphinx) -# Extra testing dependencies -BuildRequires: python3dist(pytest) -BuildRequires: python3dist(coverage) - %global common_description %{expand: Flask-SocketIO gives Flask applications access to low latency bi-directional communications between the clients and the server. The client-side application @@ -47,22 +43,9 @@ Summary: Documentation for %{name} %prep %autosetup -n Flask-SocketIO-%{version} -# Find executable files without shebang lines, and fix their permissions. -# https://github.com/miguelgrinberg/Flask-SocketIO/pull/1621 -find . -type f -perm /0111 | - while read -r fn - do - if ! head "${fn}" | grep -E '^#!' >/dev/null - then - chmod -v a-x "${fn}" - fi - done -# Fix “/usr/bin/env python” shebangs in the example -%py3_shebang_fix example - %generate_buildrequires -%pyproject_buildrequires -r +%pyproject_buildrequires -t %build @@ -77,7 +60,11 @@ rm -vf docs/_build/html/.buildinfo %check -%pytest +# Because of its name, flask_socketio.test_client is mistaken for a test; then, +# pytest fails because of an import path mismatch, since that module is +# available both here in the build directory and in the buildroot. Simply +# ignoring it in test collection is perfectly correct and solves the problem. +%pytest --ignore-glob='*/test_client.py' %files -n python3-%{srcname} -f %{pyproject_files} @@ -88,6 +75,7 @@ rm -vf docs/_build/html/.buildinfo %license LICENSE %doc CHANGES.md %doc README.md +%doc SECURITY.md %doc docs/_build/html %doc example diff --git a/sources b/sources index 83483bd..c7d4964 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (Flask-SocketIO-5.1.0.tar.gz) = 701279d7cb98305e92a96950e9c91e06ba6528faea136c62bedd1882dfc39b9dad0b30b80c8138289933fed74d2b2949fb9236adb0ea8bf5d96ba7fd487c6a44 +SHA512 (Flask-SocketIO-5.1.1.tar.gz) = 12510b0d853a03d613782a7ed23cf791a3c6c5f8c55e78308c3e635be22384ba7bb207811846d14252fcf4ff21ab42c27f6390382baabf393f1eba24b6a80861