forked from pool/python-adapt-parser
- Update to 0.5.1 * Publish to pypi from master after tagging * Fix name of LICENSE file in MANIFEST (#140) * Hard code Pypi user to __token__ * Add checks and bdist_wheel * Split PR workflow from push workflow * Add automatic tagging * Remove old publish scripts * Add support for publishing to pypi - from version 0.5.0 * Guarantee sorted results from IntentDeterminationEngine.determine_intent (#137) * Fixes issue 97 (#138) - from version 0.4.3 * Updated docstrings, and some small fixes (#132) * Bump version to 0.4.2 * Fix use after remove * Test that a removed regexp can be re-added * Fix storing regex as string when cleaned - from version 0.4.1 * Scoring tests and fixes (#131) * Issues/114 (#128) * Add .envrc to git-ignore * Consolidate requirements * Remove unused requirement argparse * Add license and readme to MANIFEST.in * Use run_tests.sh in github actions * Add run_tests.sh to easily do linting and tests * Remove run_tests.py and add test instructions * Add test requirements into test-requirements.txt * Enable flake8 checks for some basic errors OBS-URL: https://build.opensuse.org/request/show/915755 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-adapt-parser?expand=0&rev=11
64 lines
2.0 KiB
RPMSpec
64 lines
2.0 KiB
RPMSpec
#
|
|
# spec file for package python-adapt-parser
|
|
#
|
|
# Copyright (c) 2021 SUSE LLC
|
|
#
|
|
# 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 https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
Name: python-adapt-parser
|
|
Version: 0.5.1
|
|
Release: 0
|
|
Summary: A text-to-intent parsing framework
|
|
License: Apache-2.0
|
|
Group: Development/Languages/Python
|
|
URL: https://github.com/MycroftAI/adapt
|
|
Source: https://github.com/MycroftAI/adapt/archive/v%{version}.tar.gz
|
|
BuildRequires: %{python_module pyee >= 8.1.0}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: %{python_module six >= 1.10.0}
|
|
BuildRequires: %{python_module unittest-xml-reporting}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-pyee >= 8.1.0
|
|
Requires: python-six >= 1.10.0
|
|
BuildArch: noarch
|
|
%python_subpackages
|
|
|
|
%description
|
|
The Adapt Intent Parser is a flexible and extensible intent definition and
|
|
determination framework. It is intended to parse natural language text into
|
|
a structured intent that can then be invoked programatically.
|
|
|
|
%prep
|
|
%setup -q -n adapt-release-v%{version}
|
|
sed -i -s "s/==/>=/" requirements.txt
|
|
|
|
%build
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
%python_exec setup.py test
|
|
|
|
%files %{python_files}
|
|
%license LICENSE.md
|
|
%doc README.md SUPPORT.md GETTING_STARTED.md
|
|
%{python_sitelib}/*
|
|
|
|
%changelog
|