| |
@@ -1,5 +1,5 @@
|
| |
Name: jrnl
|
| |
- Version: 2.8.1
|
| |
+ Version: 2.8.2
|
| |
Release: %autorelease
|
| |
Summary: A simple journal application for the command line
|
| |
|
| |
@@ -13,10 +13,6 @@
|
| |
BuildRequires: python3-devel
|
| |
BuildRequires: pyproject-rpm-macros
|
| |
|
| |
- # Test dependencies
|
| |
- BuildRequires: python3dist(behave)
|
| |
- BuildRequires: python3dist(pytest)
|
| |
-
|
| |
BuildRequires: help2man
|
| |
|
| |
%description
|
| |
@@ -39,26 +35,9 @@
|
| |
%prep
|
| |
%autosetup -n %{name}-%{version}
|
| |
|
| |
- # Upstream bug for Python 3.10 support:
|
| |
- # https://github.com/jrnl-org/jrnl/issues/1270
|
| |
- sed -r -i -e 's/(python = ">=3\.7\.0), <3\.10"/\1"/' pyproject.toml
|
| |
-
|
| |
- # https://github.com/jrnl-org/jrnl/pull/1283
|
| |
- # These do not need to be executable:
|
| |
- chmod -v a-x %{name}/Entry.py docs_theme/index.html
|
| |
- # Find non-executable files with shebang lines, and remove them
|
| |
- find %{name}/ -type f ! -perm /0111 |
|
| |
- while read -r fn
|
| |
- do
|
| |
- if head "${fn}" | grep -E '^#!' >/dev/null
|
| |
- then
|
| |
- sed -r -i '1{/#!/d}' "${fn}"
|
| |
- fi
|
| |
- done
|
| |
-
|
| |
|
| |
%generate_buildrequires
|
| |
- %pyproject_buildrequires -r
|
| |
+ %pyproject_buildrequires -x testing
|
| |
|
| |
|
| |
%build
|
| |
@@ -79,11 +58,9 @@
|
| |
|
| |
|
| |
%check
|
| |
- %pytest
|
| |
- env PATH="%{buildroot}%{_bindir}:${PATH}" \
|
| |
- PYTHONPATH='%{buildroot}%{python3_sitelib}' \
|
| |
- PYTHONDONTWRITEBYTECODE=1 \
|
| |
- /usr/bin/behave --no-skipped --format progress2
|
| |
+ export PYTHONPATH="${PWD}:%{buildroot}%{python3_sitelib}"
|
| |
+ %pytest tests/unit
|
| |
+ %pytest tests/bdd --gherkin-terminal-reporter
|
| |
|
| |
|
| |
%files -f %{pyproject_files}
|
| |
Blocked on https://bugzilla.redhat.com/show_bug.cgi?id=1988832