dev-python/pyroaring: add 1.2.0

Signed-off-by: M. Muddassar Sarfraz <zyx@envs.net>
This commit is contained in:
M. Muddassar Sarfraz committed 2026-11-06 06:30:37 +05:00
1 parent 1a8f3a77a6
commit 9160e88349
4 files changed
+111

No files matched your search

+1
View File
@@ -1 +1,2 @@
DIST pyroaring-1.1.0.tar.gz 217093 BLAKE2B 1e26acb0b464e17e7ee4e77558045233d63429b2fb2f0f1878f2e6e9eb9b1697589e7318c034347c2d07e9fe58c0e87c27885e440ab3bd89377edea04cda6466 SHA512 b125a48e124b57c1be7cec55cdf84afde8333712b3b96d64f4a0e6b86d909b275a1a9be7f5ca269d062b5774e43c301e2542fd2444ecb2496eea94b5801158f9
DIST pyroaring-1.2.0.tar.gz 239515 BLAKE2B a9712b82a0fc9fadaf8cdf5f510a7b5a3782122b2f3ec65dbffe270e6c702afe0701310e37c206b4576f9d87e7faa276d07135c6d965d9a5dcf560a5af5c08a1 SHA512 2962e315c3c810479d33ad0b4989786d5bc41b6d3b5496eb59787f130623f3b243bc49aaa0adff8c9ef79ac194df97467a3609941651158cf71a03c8ac075d50
@@ -0,0 +1,31 @@
Only in b: '#setup.py#'
diff '--color=auto' -u a/setup.py b/setup.py
--- a/setup.py 2026-10-02 20:45:52.000000000 -0000
+++ b/setup.py 2026-11-05 18:14:29.913404558 -0000
@@ -63,24 +63,14 @@
pyroaring_module = Extension(
'pyroaring',
sources=[os.path.join(PKG_DIR, 'pyroaring.pyx')],
- extra_compile_args=ext_compile_args,
language='c++',
+ libraries=['roaring'],
)
-# roaring.c is compiled as a separate static library because it must be compiled
-# as C (not C++), with a C11 standard flag.
-libraries = [(
- 'croaring',
- {
- 'sources': [os.path.join(PKG_DIR, 'roaring.c')],
- 'cflags': c_compile_args,
- },
-)]
-
setup(
name='pyroaring',
ext_modules=[pyroaring_module],
- libraries=libraries,
+ libraries=None,
package_data={'pyroaring': ['py.typed', '__init__.pyi']},
packages=['pyroaring'],
version=VERSION,
@@ -0,0 +1,14 @@
diff '--color=auto' -u a/setup.py b/setup.py
--- a/setup.py 2026-10-02 20:45:52.000000000 -0000
+++ b/setup.py 2026-11-05 13:42:31.892155504 -0000
@@ -43,10 +43,6 @@
c_compile_args = ['-D__STDC_LIMIT_MACROS', '-D__STDC_CONSTANT_MACROS', '-D _GLIBCXX_ASSERTIONS']
if PLATFORM_MACOSX:
c_compile_args.append('-mmacosx-version-min=10.14')
- if 'DEBUG' in os.environ:
- c_compile_args.extend(['-O0', '-g'])
- else:
- c_compile_args.append('-O3')
if 'ARCHI' in os.environ:
if os.environ['ARCHI'] != "generic":
c_compile_args.append('-march=%s' % os.environ['ARCHI'])
@@ -0,0 +1,65 @@
# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_EXT=1
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{13..15} )
inherit distutils-r1 flag-o-matic
DESCRIPTION="Python wrapper for the C library CRoaring"
HOMEPAGE="https://github.com/Ezibenroc/PyRoaringBitMap"
# tests not included in pypi tarballs
SRC_URI="
https://github.com/Ezibenroc/PyRoaringBitMap/archive/refs/tags/${PV}.tar.gz
-> ${P}.tar.gz
"
S="${WORKDIR}/PyRoaringBitMap-${PV}"
LICENSE="MIT"
SLOT=0
KEYWORDS="~amd64"
DEPEND="
dev-libs/croaring
"
RDEPEND="${DEPEND}
"
BDEPEND="
dev-python/cython[${PYTHON_USEDEP}]
virtual/pkgconfig
test? ( dev-python/hypothesis[${PYTHON_USEDEP}] )
"
PATCHES=(
"${FILESDIR}"/${P}-do-not-link-with-bundled-croaring.patch
"${FILESDIR}"/${P}-respect-cflags.patch
)
EPYTEST_PLUGINS=(
)
distutils_enable_tests pytest
src_prepare() {
# make sure we are not bundling croaring
rm ${PN}/roaring.{c,h} || die
distutils-r1_src_prepare
}
src_configure() {
# fatal error: roaring.h: No such file or directory
append-cppflags $(pkg-config --cflags roaring)
distutils-r1_src_configure
}
python_test() {
epytest test.py
}