Package init
This commit is contained in:
parent
cfd91dbd44
commit
26a2b7cd98
BIN
cppy-1.2.0.tar.gz
Normal file
BIN
cppy-1.2.0.tar.gz
Normal file
Binary file not shown.
15
fix-cppy-version.patch
Normal file
15
fix-cppy-version.patch
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
diff --git a/setup.py b/setup.py
|
||||||
|
index 8dfc33f..9bd14c2 100644
|
||||||
|
--- a/setup.py
|
||||||
|
+++ b/setup.py
|
||||||
|
@@ -9,6 +9,7 @@ from setuptools import setup
|
||||||
|
|
||||||
|
setup(
|
||||||
|
name="cppy",
|
||||||
|
+ version="1.2.0",
|
||||||
|
author="The Nucleic Development Team",
|
||||||
|
author_email="sccolbert@gmail.com",
|
||||||
|
maintainer_email="m.dartiailh@gmail.com",
|
||||||
|
--
|
||||||
|
2.27.0
|
||||||
|
|
||||||
85
python-cppy.spec
Normal file
85
python-cppy.spec
Normal file
@ -0,0 +1,85 @@
|
|||||||
|
%global srcname cppy
|
||||||
|
|
||||||
|
Name: python-%{srcname}
|
||||||
|
Version: 1.2.0
|
||||||
|
Release: 1
|
||||||
|
Summary: C++ headers for C extension development
|
||||||
|
|
||||||
|
License: BSD
|
||||||
|
URL: https://github.com/nucleic/cppy
|
||||||
|
Source0: https://files.pythonhosted.org/packages/source/c/%{srcname}/%{srcname}-%{version}.tar.gz
|
||||||
|
Patch0: fix-cppy-version.patch
|
||||||
|
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
BuildRequires: python3-devel
|
||||||
|
BuildRequires: python3dist(setuptools)
|
||||||
|
BuildRequires: python3dist(pytest)
|
||||||
|
|
||||||
|
%description
|
||||||
|
A small C++ header library which makes it easier to write Python extension
|
||||||
|
modules. The primary feature is a PyObject smart pointer which automatically
|
||||||
|
handles reference counting and provides convenience methods for performing
|
||||||
|
common object operations.
|
||||||
|
|
||||||
|
|
||||||
|
%package -n python3-%{srcname}
|
||||||
|
Summary: %{summary}
|
||||||
|
%{?python_provide:%python_provide python3-%{srcname}}
|
||||||
|
|
||||||
|
%description -n python3-%{srcname}
|
||||||
|
A small C++ header library which makes it easier to write Python extension
|
||||||
|
modules. The primary feature is a PyObject smart pointer which automatically
|
||||||
|
handles reference counting and provides convenience methods for performing
|
||||||
|
common object operations.
|
||||||
|
|
||||||
|
|
||||||
|
%package -n python-%{srcname}-doc
|
||||||
|
Summary: cppy documentation
|
||||||
|
|
||||||
|
BuildRequires: python3dist(sphinx)
|
||||||
|
BuildRequires: python3dist(sphinx-rtd-theme) python3-pip
|
||||||
|
|
||||||
|
%description -n python-%{srcname}-doc
|
||||||
|
Documentation for cppy
|
||||||
|
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -n %{srcname}-%{version} -p1
|
||||||
|
|
||||||
|
# Remove bundled egg-info
|
||||||
|
rm -rf %{srcname}.egg-info
|
||||||
|
|
||||||
|
|
||||||
|
%build
|
||||||
|
%py3_build
|
||||||
|
|
||||||
|
# generate html docs
|
||||||
|
PYTHONPATH=${PWD} sphinx-build-3 docs/source html
|
||||||
|
# remove the sphinx-build leftovers
|
||||||
|
rm -rf html/.{doctrees,buildinfo}
|
||||||
|
|
||||||
|
|
||||||
|
%install
|
||||||
|
%py3_install
|
||||||
|
|
||||||
|
|
||||||
|
%check
|
||||||
|
PYTHONPATH=%{buildroot}%{python3_sitelib} \
|
||||||
|
pytest-3 tests
|
||||||
|
|
||||||
|
|
||||||
|
%files -n python3-%{srcname}
|
||||||
|
%doc README.rst
|
||||||
|
%license LICENSE
|
||||||
|
%{python3_sitelib}/%{srcname}
|
||||||
|
%{python3_sitelib}/%{srcname}-%{version}-py*.egg-info
|
||||||
|
|
||||||
|
%files -n python-%{srcname}-doc
|
||||||
|
%doc html
|
||||||
|
%license LICENSE
|
||||||
|
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Fri Jul 01 2022 wangkai <wangkai385@h-partners.com> 1.2.0-1
|
||||||
|
- Package init
|
||||||
4
python-cppy.yaml
Normal file
4
python-cppy.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
version_control: github
|
||||||
|
src_repo: nucleic/cppy
|
||||||
|
tag_prefix: ^
|
||||||
|
separator: .
|
||||||
Loading…
x
Reference in New Issue
Block a user