commit 188b6c4a709e75a72b10c3b6d4dccedbfc124bf425cb4eeae760ce94d9260d78 Author: Steve Kowalik Date: Fri Jan 19 05:24:37 2024 +0000 - Package renamed from fluent to fluent.syntax. - Update to 0.19.0: * Drop support for Python 2.7 and 3.5 & support for Python 3.6 through 3.9 * Treat tab as text, not whitespace * Add type hints * Fix serialization of multiline patterns starting with special characters. * Removal of deprecated `BaseNode.traverse` method. * Refactor `Visitor` and `Transformer` into `fluent.syntax.visitor` (from `.ast`) * Parser fix for whitespace before call arguments. * Parser fix for selector expressions being too lenient. * The serializer had a bug when asked to serialize empty comments. * Support Fluent Syntax 1.0. * Flatten complex reference expressions. * Remove `VariantLists`. * Rename `StringLiteral.raw` to `value`. * Rename `args` to `arguments`. * Make `BaseNode.equals` stricter when comparing lists. * Remove `FluentSerializer.serialize_expression`. * The `Visitor` API introduced in 0.11 was changed to align more with what Python's `ast.Visitor` does. * There are two new APIs in `fluent.syntax.ast`, `Visitor` and `Transformer`. * The API `BaseNode.traverse` is deprecated and will be removed in a future release. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fluent.syntax?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/fluent.syntax-0.19.0.tar.gz b/fluent.syntax-0.19.0.tar.gz new file mode 100644 index 0000000..866f2b8 --- /dev/null +++ b/fluent.syntax-0.19.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fa0d0863707ed24c62daa57457e70b153c7876f2e9cdf3cc46f737f33837aba8 +size 107326 diff --git a/python-fluent.syntax.changes b/python-fluent.syntax.changes new file mode 100644 index 0000000..182be4b --- /dev/null +++ b/python-fluent.syntax.changes @@ -0,0 +1,43 @@ +------------------------------------------------------------------- +Fri Jan 19 05:23:29 UTC 2024 - Steve Kowalik + +- Package renamed from fluent to fluent.syntax. +- Update to 0.19.0: + * Drop support for Python 2.7 and 3.5 & support for Python 3.6 through 3.9 + * Treat tab as text, not whitespace + * Add type hints + * Fix serialization of multiline patterns starting with special characters. + * Removal of deprecated `BaseNode.traverse` method. + * Refactor `Visitor` and `Transformer` into `fluent.syntax.visitor` + (from `.ast`) + * Parser fix for whitespace before call arguments. + * Parser fix for selector expressions being too lenient. + * The serializer had a bug when asked to serialize empty comments. + * Support Fluent Syntax 1.0. + * Flatten complex reference expressions. + * Remove `VariantLists`. + * Rename `StringLiteral.raw` to `value`. + * Rename `args` to `arguments`. + * Make `BaseNode.equals` stricter when comparing lists. + * Remove `FluentSerializer.serialize_expression`. + * The `Visitor` API introduced in 0.11 was changed to align more with + what Python's `ast.Visitor` does. + * There are two new APIs in `fluent.syntax.ast`, `Visitor` and + `Transformer`. + * The API `BaseNode.traverse` is deprecated and will be removed in a + future release. + +------------------------------------------------------------------- +Mon May 17 09:16:27 UTC 2021 - pgajdos@suse.com + +- use %pytest macro + +------------------------------------------------------------------- +Sat Jan 12 14:10:02 UTC 2019 - Jan Engelhardt + +- Trim filler wording from description. + +------------------------------------------------------------------- +Thu Jan 10 13:34:34 UTC 2019 - Tomáš Chvátal + +- Initial commit, used by translate-toolkit diff --git a/python-fluent.syntax.spec b/python-fluent.syntax.spec new file mode 100644 index 0000000..f8cba28 --- /dev/null +++ b/python-fluent.syntax.spec @@ -0,0 +1,69 @@ +# +# spec file for package python-fluent.syntax +# +# Copyright (c) 2024 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/ +# + + +Name: python-fluent.syntax +Version: 0.19.0 +Release: 0 +Summary: Localization library for expressive translations +License: Apache-2.0 +URL: https://github.com/projectfluent/python-fluent +Source: https://github.com/projectfluent/python-fluent/archive/refs/tags/fluent.syntax@%{version}.tar.gz#/fluent.syntax-%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: python-rpm-macros +# SECTION test requirements +BuildRequires: %{python_module typing-extensions >= 3.7} +BuildRequires: %{python_module pytest} +# /SECTION +BuildRequires: fdupes +Requires: python-typing-extensions >= 3.7 +Provides: python-fluent = %{version} +Obsoletes: python-fluent < %{version} +BuildArch: noarch +%python_subpackages + +%description +Localization library for expressive translations. + +%prep +%autosetup -p1 -n python-fluent-fluent.syntax-%{version} + +%build +pushd fluent.syntax +%pyproject_wheel +popd + +%install +pushd fluent.syntax +%pyproject_install +popd +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +pushd fluent.syntax +%pytest +popd + +%files %{python_files} +%doc README.rst +%license LICENSE +%{python_sitelib}/fluent +%{python_sitelib}/fluent.syntax-%{version}.dist-info + +%changelog