Compare commits

...
Sign in to create a new pull request.

50 commits

Author SHA1 Message Date
Fedora Release Engineering
0cfa05858b Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-25 06:33:06 +00:00
Python Maint
0e5da8e293 Rebuilt for Python 3.14 2025-06-02 22:44:09 +02:00
Benjamin A. Beasley
9f0a77cc6b Remove dependency on deprecated python-pytest-runner 2025-05-27 08:37:50 -04:00
Miro Hrončok
30d68123bc Remove no-longer-needed Obsoletes 2025-05-18 22:01:19 +02:00
Miro Hrončok
6526d2573c Review the SPDX license
[skip changelog]
2025-05-18 22:00:53 +02:00
Miro Hrončok
e682be4cf8 Expand %{pypi_name}
[skip changelog]
2025-05-18 22:00:16 +02:00
Miro Hrončok
76bad0c2c8 Convert to %pyproject macros
[skip changelog]
2025-05-18 21:59:13 +02:00
Miro Hrončok
16fddc3830 Exclude i686 on Fedora 42+
https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval
2025-03-28 14:13:54 +01:00
Fedora Release Engineering
a54b47b89f Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-18 11:38:09 +00:00
Miroslav Suchý
23d99fa5d3 convert GPLv2+ license to SPDX
This is part of https://fedoraproject.org/wiki/Changes/SPDX_Licenses_Phase_4
2024-07-26 02:15:03 +02:00
Fedora Release Engineering
664d1f3496 Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-19 09:15:11 +00:00
Python Maint
366c64c8dd Rebuilt for Python 3.13 2024-06-07 11:10:43 +02:00
Miro Hrončok
8f50592c20 Convert to %autorelease and %autochangelog
[skip changelog]
2024-01-29 15:35:02 +01:00
Fedora Release Engineering
48ac8dff08 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-26 00:59:51 +00:00
Fedora Release Engineering
62f5a85905 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-21 23:06:03 +00:00
Fedora Release Engineering
65a69345ad Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-21 07:06:04 +00:00
Python Maint
3de63c7e35 Rebuilt for Python 3.12 2023-06-13 23:26:56 +02:00
Fedora Release Engineering
46f42093dd Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-20 11:01:05 +00:00
Fedora Release Engineering
079b0aa3e6 Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-22 16:08:54 +00:00
Python Maint
0e6a48b211 Rebuilt for Python 3.11 2022-06-13 17:35:14 +02:00
Fedora Release Engineering
cfd63a033d - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-01-21 10:08:56 +00:00
Fedora Release Engineering
a21ab1df7a - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-07-23 04:46:47 +00:00
Python Maint
051e8f10ba Rebuilt for Python 3.10 2021-06-04 20:18:32 +02:00
Fedora Release Engineering
9faeac24ea - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-01-27 09:11:48 +00:00
Fedora Release Engineering
60605a52c7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-07-28 23:37:18 +00:00
Miro Hrončok
be32eb41e1 Replace Python version glob with macro (needed for Python 3.10+)
See https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/PQIGCQCRNBYNXBX2ICWEM3PLDLNOG2ZT/

Co-authored-by: Tomas Hrnciar <thrnciar@redhat.com>
2020-07-13 21:04:27 +02:00
Miro Hrončok
51ded20462 Rebuilt for Python 3.9 2020-05-26 03:01:02 +02:00
Fedora Release Engineering
31b75b9970 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-01-30 10:33:17 +00:00
Miro Hrončok
2bc6da9fe4 Rebuilt for Python 3.8 2019-08-19 10:26:50 +02:00
Fedora Release Engineering
b4403baa60 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-07-26 12:06:05 +00:00
Fedora Release Engineering
4dee2acc06 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-02-02 05:33:29 +00:00
Miro Hrončok
8516ee3253 BR gcc 2018-07-15 16:27:12 +02:00
Fedora Release Engineering
b6717c9853 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-07-13 23:24:11 +00:00
Miro Hrončok
3f8b346539 Update to 0.98.9, skip a test on ppc64 2018-06-29 01:15:49 +02:00
Miro Hrončok
ec453db9ae Rebuilt for Python 3.7 2018-06-19 11:44:25 +02:00
Miro Hrončok
3803cb4948 Rebuilt for Python 3.7 2018-06-19 10:53:22 +02:00
Miro Hrončok
a663d4914d Remove legacy Python subpackage 2018-03-02 15:48:12 +01:00
Miro Hrončok
9c99243e12 Updated to new version 0.98.8 to fix FTBFS 2018-02-14 17:45:40 +01:00
Fedora Release Engineering
c59becb3fe - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-02-09 06:34:33 +00:00
Fedora Release Engineering
1772bee195 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild 2017-08-03 06:37:59 +00:00
Fedora Release Engineering
075b62936c - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild 2017-07-27 09:34:25 +00:00
Miro Hrončok
1aa622739f Updated to new version 0.98.7, updated to the new naming scheme 2017-04-13 16:47:13 +02:00
Fedora Release Engineering
e55a9f2ace - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild 2017-02-11 08:18:50 +00:00
Miro Hrončok
b54ded19db Rebuild for Python 3.6 2016-12-19 18:20:36 +01:00
Fedora Release Engineering
e5e94c8e14 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages 2016-07-19 08:52:33 +00:00
Fedora Release Engineering
edec2ecb8a - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild 2016-02-04 18:58:06 +00:00
Miro Hrončok
dab8cfd8bb New sources 2016-02-01 10:18:59 +01:00
Miro Hrončok
9372640bfe New sources 2016-02-01 10:16:43 +01:00
Miro Hrončok
e2636307e3 New version 0.98.5, fix FTBFS 2015-12-08 13:35:41 +01:00
Peter Robinson
4b8a7ea9ce - Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 2015-11-10 15:06:51 +00:00
6 changed files with 204 additions and 93 deletions

4
.gitignore vendored
View file

@ -1,2 +1,6 @@
/admesh-0.98.1.tar.gz /admesh-0.98.1.tar.gz
/admesh-0.98.3.tar.gz /admesh-0.98.3.tar.gz
/admesh-0.98.5.tar.gz
/admesh-0.98.7.tar.gz
/admesh-0.98.8.tar.gz
/admesh-0.98.9.tar.gz

39
17.patch Normal file
View file

@ -0,0 +1,39 @@
From 52a68f3d1dd3568dd399ec10b1e5029d0889397d Mon Sep 17 00:00:00 2001
From: "Benjamin A. Beasley" <code@musicinmybrain.net>
Date: Tue, 27 May 2025 08:33:05 -0400
Subject: [PATCH] Drop pytest-runner and "setup.py test" support
---
setup.py | 4 ++--
tox.ini | 3 ++-
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/setup.py b/setup.py
index 0f003dd..9476806 100755
--- a/setup.py
+++ b/setup.py
@@ -19,8 +19,8 @@ def _autogen(*args, **kwargs):
author_email='miro@hroncok.cz',
url='https://github.com/admesh/python-admesh',
license='GPLv2+',
- setup_requires=['Cython>=0.22', 'pytest-runner'],
- tests_require=['pytest'],
+ setup_requires=['Cython>=0.22'],
+ extras_require={'test': ['pytest']},
packages=find_packages(),
cmdclass={'build_ext': _autogen},
ext_modules=[Extension("admesh", ["admesh.pyx"], libraries=["admesh"])],
diff --git a/tox.ini b/tox.ini
index b41f291..3e0e723 100644
--- a/tox.ini
+++ b/tox.ini
@@ -2,7 +2,8 @@
envlist = py37,py36,py35,py34,py27,pypy3,pypy
[testenv]
deps=Cython
-commands=python setup.py test
+extras=test
+commands=pytest
passenv =
CFLAGS
LDFLAGS

117
changelog Normal file
View file

@ -0,0 +1,117 @@
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.98.9-19
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.98.9-18
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.98.9-17
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 0.98.9-16
- Rebuilt for Python 3.12
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.98.9-15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.98.9-14
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 0.98.9-13
- Rebuilt for Python 3.11
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.98.9-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.98.9-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.98.9-10
- Rebuilt for Python 3.10
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.98.9-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.98.9-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.98.9-7
- Rebuilt for Python 3.9
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.98.9-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.98.9-5
- Rebuilt for Python 3.8
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.98.9-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.98.9-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.98.9-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Mon Jun 25 2018 Miro Hrončok <mhroncok@redhat.com> - 0.98.9-1
- Update to 0.98.9
- Temporarily skip a test on ppc64
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.98.8-3
- Rebuilt for Python 3.7
* Fri Mar 02 2018 Miro Hrončok <mhroncok@redhat.com> - 0.98.8-2
- Remove legacy Python subpackage
* Wed Feb 14 2018 Miro Hrončok <mhroncok@redhat.com> - 0.98.8-1
- Updated to new version 0.98.8 to fix FTBFS
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.98.7-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.98.7-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.98.7-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Thu Apr 13 2017 Miro Hrončok <mhroncok@redhat.com> - 0.98.7-1
- Updated to new version 0.98.7
- Updated to the new naming scheme
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.98.5-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.98.5-4
- Rebuild for Python 3.6
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.98.5-3
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.98.5-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Tue Dec 08 2015 Miro Hrončok <mhroncok@redhat.com> - 0.98.5-1
- New version 0.98.5, fix FTBFS
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.98.3-3
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.98.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
* Wed Feb 25 2015 Miro Hrončok <mhroncok@redhat.com> - 0.98.3-1
- New version 0.98.3
* Wed Sep 03 2014 Miro Hrončok <mhroncok@redhat.com> - 0.98.1-1
- New version
- Run tests, add BR pytest
* Wed Sep 03 2014 Miro Hrončok <mhroncok@redhat.com> - 0.98-3
- Set correct executable permissions
- Typo in summary
* Thu Jul 31 2014 Miro Hrončok <mhroncok@redhat.com> - 0.98-2
- Require setuptools.
* Tue Jul 29 2014 Miro Hrončok <mhroncok@redhat.com> - 0.98-1
- Initial package.

View file

@ -1,121 +1,67 @@
%global pypi_name admesh Name: python-admesh
%global with_python3 1 Version: 0.98.9
Release: %autorelease
Name: python-%{pypi_name}
Version: 0.98.3
Release: 2%{?dist}
Summary: Python bindings for ADMesh, STL manipulation library Summary: Python bindings for ADMesh, STL manipulation library
License: GPLv2+ License: GPL-2.0-or-later
URL: https://github.com/admesh/python-admesh URL: https://github.com/admesh/python-admesh
Source0: https://pypi.python.org/packages/source/a/%{pypi_name}/%{pypi_name}-%{version}.tar.gz Source0: https://files.pythonhosted.org/packages/source/a/admesh/admesh-%{version}.tar.gz
BuildRequires: python2-devel
BuildRequires: python-setuptools
BuildRequires: pytest
BuildRequires: Cython
BuildRequires: admesh-devel >= 0.98
%if %{?with_python3}
BuildRequires: python3-devel
BuildRequires: python3-pytest
BuildRequires: python3-setuptools
BuildRequires: python3-Cython
%endif # if with_python3
# https://github.com/admesh/python-admesh/issues/15
Source1: %{url}/raw/v%{version}/test/utils.py
# Drop pytest-runner and "setup.py test" support
# https://github.com/admesh/python-admesh/pull/17
# https://fedoraproject.org/wiki/Changes/DeprecatePythonPytestRunner
Patch: %{url}/pull/17.patch
# https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval
%if 0%{?fedora} >= 42 || 0%{?rhel} >= 11
ExcludeArch: %{ix86}
%endif
BuildRequires: gcc
BuildRequires: admesh-devel >= 0.98
BuildRequires: python3-devel
%description %description
This module provides bindings for the ADMesh library. This module provides bindings for the ADMesh library.
It lets you manipulate 3D models in binary or ASCII STL It lets you manipulate 3D models in binary or ASCII STL
format and partially repair them if necessary. format and partially repair them if necessary.
%package -n python3-admesh
Summary: Python 3 bindings for ADMesh, STL manipulation library
%if 0%{?with_python3} %description -n python3-admesh
%package -n python3-%{pypi_name}
Summary: Python 3 bindings for ADMesh, STL maipulation library
%description -n python3-%{pypi_name}
This module provides bindings for the ADMesh library. This module provides bindings for the ADMesh library.
It lets you manipulate 3D models in binary or ASCII STL It lets you manipulate 3D models in binary or ASCII STL
format and partially repair them if necessary. format and partially repair them if necessary.
%endif # with_python3
%prep %prep
%setup -q -n %{pypi_name}-%{version} %autosetup -n admesh-%{version} -p1
# Remove bundled egg-info cp %{SOURCE1} test/
rm -rf %{pypi_name}.egg-info
%if 0%{?with_python3}
rm -rf %{py3dir}
cp -a . %{py3dir}
find %{py3dir} -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'
%endif # with_python3
%generate_buildrequires
%pyproject_buildrequires -x test
%build %build
%{__python2} setup.py build %pyproject_wheel
%if 0%{?with_python3}
pushd %{py3dir}
%{__python3} setup.py build
popd
%endif # with_python3
%install %install
%{__python2} setup.py install --skip-build --root %{buildroot} %pyproject_install
%pyproject_save_files -l admesh
%if 0%{?with_python3}
pushd %{py3dir}
%{__python3} setup.py install --skip-build --root %{buildroot}
popd
%endif # with_python3
%check %check
export PYTHONPATH=`echo build/lib.linux-*/` %pyproject_check_import
py.test-%{python2_version} -v %pytest -v
%if 0%{?with_python3} %files -n python3-admesh -f %{pyproject_files}
pushd %{py3dir} %doc README.rst
export PYTHONPATH=`echo build/lib.linux-*/`
py.test-%{python3_version} -v
popd
%endif # with_python3
%files
%doc README.rst COPYING
%attr(0755,root,root) %{python2_sitearch}/%{pypi_name}.so
%{python2_sitearch}/%{pypi_name}-%{version}-py?.?.egg-info
%if 0%{?with_python3}
%files -n python3-%{pypi_name}
%doc README.rst COPYING
%attr(0755,root,root) %{python3_sitearch}/%{pypi_name}.cpython-??m.so
%{python3_sitearch}/%{pypi_name}-%{version}-py?.?.egg-info
%endif # with_python3
%changelog %changelog
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.98.3-2 %autochangelog
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
* Wed Feb 25 2015 Miro Hrončok <mhroncok@redhat.com> - 0.98.3-1
- New version 0.98.3
* Wed Sep 03 2014 Miro Hrončok <mhroncok@redhat.com> - 0.98.1-1
- New version
- Run tests, add BR pytest
* Wed Sep 03 2014 Miro Hrončok <mhroncok@redhat.com> - 0.98-3
- Set correct executable permissions
- Typo in summary
* Thu Jul 31 2014 Miro Hrončok <mhroncok@redhat.com> - 0.98-2
- Require setuptools.
* Tue Jul 29 2014 Miro Hrončok <mhroncok@redhat.com> - 0.98-1
- Initial package.

View file

@ -1 +1 @@
8aafc56b9d36224ed58ccaa7b21bd285 admesh-0.98.3.tar.gz SHA512 (admesh-0.98.9.tar.gz) = 8b9776af5f39d3d1365f62531b4981022467e4ff60c22e758800278ff3fbb155d5f80c5ee5515790328d226cb7b2cd5bf905f36871c2f95fbb07b6d563b4eb7f

5
utils.py Normal file
View file

@ -0,0 +1,5 @@
import os
def asset(filename):
return os.path.join(os.path.dirname(__file__), filename)