diff options
| author | Michel Alexandre Salim <salimma@fedoraproject.org> | 2021-06-30 18:32:15 -0700 |
|---|---|---|
| committer | Michel Alexandre Salim <salimma@fedoraproject.org> | 2021-06-30 18:32:15 -0700 |
| commit | cd169fa3ef64a0119446c9054ea82008afd8d124 (patch) | |
| tree | 2a77ea170e184bb7460d7eb1c237dd90f72fd3b8 /python | |
| parent | 50a4ce6672471e2807eae7c01278e7e3df588d7a (diff) | |
| download | specs-cd169fa3ef64a0119446c9054ea82008afd8d124.tar.gz specs-cd169fa3ef64a0119446c9054ea82008afd8d124.tar.xz specs-cd169fa3ef64a0119446c9054ea82008afd8d124.zip | |
- python-howdoi
Signed-off-by: Michel Alexandre Salim <salimma@fedoraproject.org>
Diffstat (limited to 'python')
| -rw-r--r-- | python/python-howdoi.spec | 83 |
1 files changed, 0 insertions, 83 deletions
diff --git a/python/python-howdoi.spec b/python/python-howdoi.spec deleted file mode 100644 index 804e855..0000000 --- a/python/python-howdoi.spec +++ /dev/null @@ -1,83 +0,0 @@ -%global srcname howdoi - -Name: python-%{srcname} -Version: 2.0.16 -Release: 2%{?dist} -Summary: Instant coding answers via the command line - -License: MIT -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 - -BuildArch: noarch - -%global _description %{expand: -Sherlock, your neighborhood command-line sloth sleuth. - -Are you a hack programmer? Do you find yourself constantly Googling for how to -do basic programming tasks? - -Suppose you want to know how to format a date in bash. Why open your browser and -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`} - -%description %_description - -%package -n python3-%{srcname} -Summary: %{summary} -BuildRequires: python3-devel -BuildRequires: python3-pytest -BuildRequires: python3-setuptools -BuildRequires: python3dist(appdirs) -BuildRequires: python3dist(cachelib) -BuildRequires: python3dist(keep) -BuildRequires: python3dist(pygments) -BuildRequires: python3dist(pyquery) - -%description -n python3-%{srcname} %_description - -%prep -%autosetup -n %{srcname}-%{version} -p1 - -%build -%py3_build - -%install -%py3_install - -%check -# 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 -%doc CHANGES.txt README.rst -%{python3_sitelib}/%{srcname}-*.egg-info/ -%{python3_sitelib}/%{srcname}/ -%{_bindir}/%{srcname} - - -%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 |
