17
0
Files
python-quantum-blackbird/python-quantum-blackbird.spec
Daniel Garcia c6ac961eef - Disable numpy 1.24 broken tests, gh#XanaduAI/blackbird#54
- Remove skip_32bit_divide_scalar_array_test.patch
- Update to 0.5.0
  * Rebuilds the grammar using ANTLR v4.9.2 (#51)
  * Updates ANTLR v4.9.2 version on the compiling grammar section.  (#51)
- 0.4.0
  * Remove support for Python 3.5. (#38)
  * Add support for Python 3.8 and 3.9. (#40)
  * Add public method to retrieve Blackbird program variables via
    prog.variables. (#47)
  * Improve match_template to automatically return matched parameters
    with their array values, rather than their array names (p0, p1,
    etc.) (#47)
  * Remove p-type parameters from prog.parameters since they're only
    needed there internally and are otherwise stored in
    prog.variables. This also changes TDM programs to not be templates
    (prog.is_template now returns False).  (#47)
  * Fix bool or string objects in for-loop iterators not working
    correctly. (#41)
  * Update the NumPy scalar types in the Blackbird listener due to
    being deprecated in NumPy 1.20. (#43)
  * Add access to the symbolic expression used when creating a
    RegRefTransform, as a class attribute. (#46)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-quantum-blackbird?expand=0&rev=13
2023-03-06 09:31:59 +00:00

75 lines
2.3 KiB
RPMSpec

#
# spec file for package python-quantum-blackbird
#
# Copyright (c) 2023 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/
#
%define packagename quantum-blackbird
%define skip_python2 1
%define skip_python36 1
Name: python-quantum-blackbird
Version: 0.5.0
Release: 0
Summary: Quantum assembly language for continuous-variable quantum computation
License: Apache-2.0
URL: https://github.com/XanaduAI/blackbird
Source: https://github.com/XanaduAI/blackbird/archive/v%{version}.tar.gz#/blackbird-%{version}.tar.gz
BuildRequires: %{python_module antlr4-python3-runtime >= 4.9.2}
BuildRequires: %{python_module networkx}
BuildRequires: %{python_module numpy >= 1.16}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module sympy}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: uuid-devel
Requires: python-antlr4-python3-runtime >= 4.9.2
Requires: python-networkx
Requires: python-numpy >= 1.16
Requires: python-sympy
BuildArch: noarch
%python_subpackages
%description
Blackbird is a quantum assembly language for continuous-variable quantum
computation, that can be used to program Xanadu's quantum photonics
hardware and Strawberry Fields simulator.
%prep
%autosetup -p1 -n blackbird-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
# Fix E: spurious-executable-perm of README.rst
chmod 644 README.rst
%check
# Broken tests with numpy 1.24 gh#XanaduAI/blackbird#54
donttest="scalar_array or test_array_variable_expression"
%pytest -k "not ($donttest)"
%files %{python_files}
%doc README.rst
%license LICENSE
%{python_sitelib}/*egg-info
%{python_sitelib}/blackbird
%changelog