forked from pool/python-fluent.syntax
- 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
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
|
||||
3
fluent.syntax-0.19.0.tar.gz
Normal file
3
fluent.syntax-0.19.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:fa0d0863707ed24c62daa57457e70b153c7876f2e9cdf3cc46f737f33837aba8
|
||||
size 107326
|
||||
43
python-fluent.syntax.changes
Normal file
43
python-fluent.syntax.changes
Normal file
@@ -0,0 +1,43 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Jan 19 05:23:29 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- 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 <jengelh@inai.de>
|
||||
|
||||
- Trim filler wording from description.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jan 10 13:34:34 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
- Initial commit, used by translate-toolkit
|
||||
69
python-fluent.syntax.spec
Normal file
69
python-fluent.syntax.spec
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user