forked from pool/python-zc.customdoctests
Compare commits
6 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 3a64da0c4a | |||
| e59e02754d | |||
| e08130d250 | |||
| 79fc7b5645 | |||
| 3c39e9740a | |||
| 9d7392047b |
@@ -1,3 +1,18 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Mar 28 01:49:20 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- Normalize metadata directory name.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Mar 17 01:50:54 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- Python 3.11 is the first flavor built, fix removal of nspkg.pth.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Feb 24 10:47:27 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
- Fix packaging
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Sep 23 10:25:50 UTC 2021 - pgajdos@suse.com
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-zc.customdoctests
|
||||
#
|
||||
# Copyright (c) 2021 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -16,25 +16,22 @@
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-zc.customdoctests
|
||||
Version: 1.0.1
|
||||
Release: 0
|
||||
Summary: Use doctest with other languages
|
||||
License: ZPL-2.1
|
||||
Summary: zc.customdoctests -- Use doctest with other languages
|
||||
URL: http://pypi.python.org/pypi/zc.customdoctests
|
||||
Group: Development/Languages/Python
|
||||
URL: https://pypi.python.org/pypi/zc.customdoctests
|
||||
Source: https://files.pythonhosted.org/packages/source/z/zc.customdoctests/zc.customdoctests-%{version}.zip
|
||||
Source1: LICENSE.txt
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module manuel}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module zope.testing}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: unzip
|
||||
BuildArch: noarch
|
||||
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
@@ -54,24 +51,27 @@ JavaScript, and sh.
|
||||
|
||||
%prep
|
||||
%setup -q -n zc.customdoctests-%{version}
|
||||
cp %{SOURCE1} .
|
||||
|
||||
%build
|
||||
%python_build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%pyproject_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
%python_expand rm -r %{buildroot}%{$python_sitelib}/zc.customdoctests-%{version}-py3.11-nspkg.pth
|
||||
|
||||
%check
|
||||
cd build/lib
|
||||
%{python_expand export PYTHONPATH='.'
|
||||
%{python_expand export PYTHONPATH='.:%{buildroot}%{$python_sitelib}'
|
||||
$python -m unittest -v zc.customdoctests.tests.test_suite
|
||||
$python -m doctest -v zc/customdoctests/tests.py
|
||||
$python -m doctest -v src/zc/customdoctests/tests.py
|
||||
}
|
||||
|
||||
%files %{python_files}
|
||||
%license ../../SOURCES/LICENSE.txt
|
||||
%license LICENSE.txt
|
||||
%doc README.txt
|
||||
%{python_sitelib}/*
|
||||
%dir %{python_sitelib}/zc
|
||||
%{python_sitelib}/zc/customdoctests
|
||||
%{python_sitelib}/zc_customdoctests-%{version}.dist-info
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user