diff options
| author | Michel Alexandre Salim <salimma@fedoraproject.org> | 2021-06-30 09:46:37 -0700 |
|---|---|---|
| committer | Michel Alexandre Salim <salimma@fedoraproject.org> | 2021-06-30 09:46:37 -0700 |
| commit | d5bfcf6cf25bf0a2209722082fd72869c9d9045b (patch) | |
| tree | 1169ea294726ee66ad823388cb8b7f207a551fe2 /python/python-howdoi.spec | |
| parent | b09de7472774dcaa8ee6eefcbd9200fdc9f86a5a (diff) | |
| download | specs-d5bfcf6cf25bf0a2209722082fd72869c9d9045b.tar.gz specs-d5bfcf6cf25bf0a2209722082fd72869c9d9045b.tar.xz specs-d5bfcf6cf25bf0a2209722082fd72869c9d9045b.zip | |
python-howdoi: incorporate dcavalca's feedbacks
Signed-off-by: Michel Alexandre Salim <salimma@fedoraproject.org>
Diffstat (limited to 'python/python-howdoi.spec')
| -rw-r--r-- | python/python-howdoi.spec | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/python/python-howdoi.spec b/python/python-howdoi.spec index 53feda0..804e855 100644 --- a/python/python-howdoi.spec +++ b/python/python-howdoi.spec @@ -2,7 +2,7 @@ Name: python-%{srcname} Version: 2.0.16 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Instant coding answers via the command line License: MIT @@ -10,8 +10,6 @@ URL: https://github.com/gleitz/howdoi # pypi archive does not contain test data # Source0: {pypi_source} Source0: %{url}/archive/v%{version}/%{srcname}-%{version}.tar.gz -# keep only tests that can run offline -Patch0: %{srcname}-2.0.16-offline_tests.patch BuildArch: noarch @@ -26,7 +24,7 @@ read through blogs (risking major distraction) when you can simply stay in the console and ask howdoi: $ howdoi format date bash - > DATE=`date +%Y-%m-%d`} + > DATE=`date +\%Y-\%m-\%d`} %description %_description @@ -53,7 +51,20 @@ BuildRequires: python3dist(pyquery) %py3_install %check -%pytest -v +# some tests fail if run at once with +# OSError: [Errno 24] Too many open files +# ``ulimit -n unlimited`` is not an option +TEST_CLASS=test_howdoi.py::HowdoiTestCase +skipped_tests=(multiple_answers position unicode_answer) +DESELECT= +for testcase in "${skipped_tests[@]}"; do + DESELECT+=" --deselect ${TEST_CLASS}::test_${testcase}" +done +%pytest -v ${DESELECT} +for testcase in "${skipped_tests[@]}"; do + SELECT+=" ${TEST_CLASS}::test_${testcase}" +done +%pytest -v ${SELECT} %files -n python3-%{srcname} %license LICENSE.txt @@ -64,5 +75,9 @@ BuildRequires: python3dist(pyquery) %changelog +* Wed Jun 30 2021 Michel Alexandre Salim <salimma@fedoraproject.org> - 2.0.16-2 +- Escape \%s in description +- Use `--deselect` to temporarily skip expensive tests + * Tue Jun 29 2021 Michel Alexandre Salim <salimma@fedoraproject.org> - 2.0.16-1 - Initial package |
