forked from pool/python-textX
Accepting request 519127 from home:sebix:branches:devel:languages:python
- initial package OBS-URL: https://build.opensuse.org/request/show/519127 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-textX?expand=0&rev=1
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.osc
|
4
python-textX.changes
Normal file
4
python-textX.changes
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Aug 28 12:37:08 UTC 2017 - sebix+novell.com@sebix.at
|
||||||
|
|
||||||
|
- initial package
|
90
python-textX.spec
Normal file
90
python-textX.spec
Normal file
@@ -0,0 +1,90 @@
|
|||||||
|
#
|
||||||
|
# spec file for package python-textX
|
||||||
|
#
|
||||||
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
|
#
|
||||||
|
# All modifications and additions to the file contributed by third parties
|
||||||
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
|
# upon. The license for this file, and modifications and additions to the
|
||||||
|
# file, is the same license as for the pristine package itself (unless the
|
||||||
|
# license for the pristine package is not an Open Source License, in which
|
||||||
|
# case the license is the MIT License). An "Open Source License" is a
|
||||||
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
|
|
||||||
|
|
||||||
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
|
%bcond_without test
|
||||||
|
Name: python-textX
|
||||||
|
Version: 1.5.1
|
||||||
|
Release: 0
|
||||||
|
License: MIT
|
||||||
|
Summary: Meta-language for DSL implementation inspired by Xtext
|
||||||
|
Url: https://github.com/igordejanovic/textX
|
||||||
|
Group: Development/Languages/Python
|
||||||
|
Source: https://files.pythonhosted.org/packages/source/t/textX/v%{version}.tar.gz
|
||||||
|
BuildRequires: python-rpm-macros
|
||||||
|
BuildRequires: %{python_module devel}
|
||||||
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: fdupes
|
||||||
|
# SECTION tests
|
||||||
|
BuildRequires: %{python_module Arpeggio}
|
||||||
|
BuildRequires: %{python_module Jinja2}
|
||||||
|
BuildRequires: %{python_module memory_profiler}
|
||||||
|
BuildRequires: %{python_module pytest}
|
||||||
|
# /SECTION
|
||||||
|
Requires: python-Arpeggio
|
||||||
|
Suggests: %name-doc
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
%python_subpackages
|
||||||
|
|
||||||
|
%package -n %name-doc
|
||||||
|
Summary: Documentation for %name
|
||||||
|
Group: Documentation/Other
|
||||||
|
|
||||||
|
%description
|
||||||
|
textX is a meta-language for building Domain-Specific Languages (DSLs) in Python.
|
||||||
|
It is inspired by Xtext.
|
||||||
|
|
||||||
|
In a nutshell, textX will help you build your textual language in an easy way.
|
||||||
|
You can invent your own language or build a support for already existing
|
||||||
|
textual language or file format.
|
||||||
|
|
||||||
|
From a single language description (grammar), textX will build a
|
||||||
|
parser and a meta-model (a.k.a. abstract syntax) for the language.
|
||||||
|
See the docs for the details.
|
||||||
|
|
||||||
|
textX follows the syntax and semantics of Xtext but differs in some places
|
||||||
|
and is implemented 100% in Python using Arpeggio PEG parser - no grammar
|
||||||
|
ambiguities, unlimited lookahead, interpreter style of work.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n textX-%{version}
|
||||||
|
sed -i '0,/#!\/usr\/bin\/env/ d' textx/commands/console.py examples/hello_world/hello.py
|
||||||
|
|
||||||
|
%description -n %name-doc
|
||||||
|
Documentation, tutorial and examples for %name.
|
||||||
|
|
||||||
|
%build
|
||||||
|
%python_build
|
||||||
|
|
||||||
|
%install
|
||||||
|
%python_install
|
||||||
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}/textx
|
||||||
|
|
||||||
|
%check
|
||||||
|
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_version}
|
||||||
|
|
||||||
|
%files %{python_files}
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%{python_sitelib}/*
|
||||||
|
%python3_only %{_bindir}/textx
|
||||||
|
%doc AUTHORS.md CHANGELOG.md LICENSE.txt README.rst
|
||||||
|
|
||||||
|
%files -n %name-doc
|
||||||
|
%doc art docs examples
|
||||||
|
|
||||||
|
%changelog
|
3
v1.5.1.tar.gz
Normal file
3
v1.5.1.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:104389e5a760d947b3846aa6e12ed09a7ecddd7b58dabe822c309c9128c08863
|
||||||
|
size 1568353
|
Reference in New Issue
Block a user