forked from pool/python-textX
- Make sure the package actually again gets to the test phase
* the tests are actually failing now OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-textX?expand=0&rev=15
This commit is contained in:
committed by
Git OBS Bridge
parent
2989ed14b9
commit
30f6189e89
@@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jun 4 14:23:23 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
- Make sure the package actually again gets to the test phase
|
||||||
|
* the tests are actually failing now
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Jun 2 15:22:59 UTC 2019 - Sebastian Wagner <sebix+novell.com@sebix.at>
|
Sun Jun 2 15:22:59 UTC 2019 - Sebastian Wagner <sebix+novell.com@sebix.at>
|
||||||
|
|
||||||
|
@@ -17,37 +17,31 @@
|
|||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
%bcond_without test
|
|
||||||
Name: python-textX
|
Name: python-textX
|
||||||
Version: 2.0.1
|
Version: 2.0.1
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Meta-language for DSL implementation inspired by Xtext
|
Summary: Meta-language for DSL implementation inspired by Xtext
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
Url: https://github.com/igordejanovic/textX
|
URL: https://github.com/igordejanovic/textX
|
||||||
#Source: https://files.pythonhosted.org/packages/source/t/textX/textX-%%{version}.tar.gz
|
|
||||||
# PyPI release misses docs and tests
|
|
||||||
Source: https://github.com/igordejanovic/textX/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
Source: https://github.com/igordejanovic/textX/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
|
Requires: python-Arpeggio >= 1.9.0
|
||||||
|
Requires: python-click >= 7.0
|
||||||
|
Requires: python-setuptools
|
||||||
|
Obsoletes: %{name}-doc
|
||||||
|
BuildArch: noarch
|
||||||
# SECTION tests
|
# SECTION tests
|
||||||
BuildRequires: %{python_module Arpeggio}
|
BuildRequires: %{python_module Arpeggio}
|
||||||
BuildRequires: %{python_module Jinja2}
|
BuildRequires: %{python_module Jinja2}
|
||||||
|
BuildRequires: %{python_module click >= 7.0}
|
||||||
BuildRequires: %{python_module memory_profiler}
|
BuildRequires: %{python_module memory_profiler}
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
# /SECTION
|
# /SECTION
|
||||||
Requires: python-Arpeggio >= 1.9.0
|
|
||||||
Requires: python-setuptools
|
|
||||||
Suggests: %name-doc
|
|
||||||
BuildArch: noarch
|
|
||||||
|
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%package -n %name-doc
|
|
||||||
Summary: Documentation for %name
|
|
||||||
Group: Documentation/Other
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
textX is a meta-language for building Domain-Specific Languages (DSLs) in Python.
|
textX is a meta-language for building Domain-Specific Languages (DSLs) in Python.
|
||||||
It is inspired by Xtext.
|
It is inspired by Xtext.
|
||||||
@@ -63,10 +57,8 @@ ambiguities, unlimited lookahead, interpreter style of work.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n textX-%{version}
|
%setup -q -n textX-%{version}
|
||||||
sed -i '0,/#!\/usr\/bin\/env/ d' textx/commands/console.py examples/hello_world/hello.py
|
# do not hardcode deps
|
||||||
|
sed -i -e 's:click==:click>=:g' setup.py
|
||||||
%description -n %name-doc
|
|
||||||
Documentation, tutorial and examples for %name.
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%python_build
|
||||||
@@ -76,16 +68,12 @@ Documentation, tutorial and examples for %name.
|
|||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}/textx
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}/textx
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_version}
|
%pytest
|
||||||
find examples/ -name \*.dot | xargs rm # drop indeterministic files (boo#1114571)
|
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/*
|
||||||
%python3_only %{_bindir}/textx
|
%python3_only %{_bindir}/textx
|
||||||
%doc AUTHORS.md CHANGELOG.md LICENSE.txt README.rst
|
%license LICENSE.txt
|
||||||
|
%doc AUTHORS.md CHANGELOG.md README.rst
|
||||||
%files -n %name-doc
|
|
||||||
%doc art docs examples
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user