* Add FixSubsetCom to fix the center of mass of the specified subset
of atoms.
* Add the indices option to ase.Atoms.get_center_of_mass() to compute
the center of mass of the specified subset of atoms.
* All saddle-point search and minimum-energy path methods have been
moved into a new ase.mep module. You should start importing from this
location; e.g., from ase.mep import NEB, DyNEB.
* Fix ase.constraints.FixCom.adjust_momenta() to have no center-of-mass
momentum
* ase.build.surface.graphene() now takes a thickness argument
* ase.build.bulk() now assigns initial magnetic moments to BCC Fe, Co,
and Ni.
* ase.build.make_supercell() can now control how to order the atoms in
the supercell via the option order
* mask() returns the mask of nonzero cell vectors, an array of three
booleans.
* reciprocal() now guarantees that cell vectors which are zero correspond
to reciprocal cell vectors that are also zero. Previously the
reciprocal cell vectors could have small nonzero values due to floating
point tolerance.
* The Cell object now has normal() and normals() which calculate normal
vectors to one or all pairs of cell vectors. Also added area() and
areas(), which return the area spanned by one or all pairs of cell
vectors.
* New a2b and periodic formats for Formula objects. The abc format has
been renamed to ab2.
* IO formats can now be implemented in separate packages and registered
in ase with the entry point ase.ioformats in the external package
configuration.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-ase?expand=0&rev=7
83 lines
2.5 KiB
RPMSpec
83 lines
2.5 KiB
RPMSpec
#
|
|
# spec file for package python-ase
|
|
#
|
|
# 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-ase
|
|
Version: 3.23.0
|
|
Release: 0
|
|
Summary: Atomic Simulation Environment
|
|
License: LGPL-2.1-or-later
|
|
URL: https://wiki.fysik.dtu.dk/ase
|
|
Source: https://files.pythonhosted.org/packages/source/a/ase/ase-%{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 matplotlib >= 3.1.0}
|
|
BuildRequires: %{python_module numpy >= 1.15.0 with %python-numpy < 2}
|
|
BuildRequires: %{python_module pytest-mock}
|
|
BuildRequires: %{python_module pytest-xdist}
|
|
BuildRequires: %{python_module pytest}
|
|
BuildRequires: %{python_module scipy >= 1.1.0}
|
|
BuildRequires: %{python_module tk}
|
|
# /SECTION
|
|
BuildRequires: fdupes
|
|
Requires: python-matplotlib >= 3.1.0
|
|
Requires: python-scipy >= 1.1.0
|
|
Requires: (python-numpy >= 1.15.0 with python-numpy < 2)
|
|
Requires(post): update-alternatives
|
|
Requires(postun): update-alternatives
|
|
BuildArch: noarch
|
|
%python_subpackages
|
|
|
|
%description
|
|
Atomic Simulation Environment
|
|
|
|
%prep
|
|
%autosetup -p1 -n ase-%{version}
|
|
|
|
%build
|
|
%pyproject_wheel
|
|
|
|
%install
|
|
%pyproject_install
|
|
%python_clone -a %{buildroot}%{_bindir}/ase
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
# No scipy CODATA
|
|
donttest="test_units"
|
|
# Broken with current release, remove on upgrade
|
|
donttest+=" or test_pw_input_write_nested_flat or test_fix_scaled"
|
|
%pytest -k "not ($donttest)"
|
|
|
|
%post
|
|
%python_install_alternative ase
|
|
|
|
%postun
|
|
%python_uninstall_alternative ase
|
|
|
|
%files %{python_files}
|
|
%doc CHANGELOG.rst README.rst
|
|
%license COPYING COPYING.LESSER LICENSE
|
|
%python_alternative %{_bindir}/ase
|
|
%{python_sitelib}/ase
|
|
%{python_sitelib}/ase-%{version}.dist-info
|
|
|
|
%changelog
|