rl-accel 0.9.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,29 @@
1
+ #####################################################################################
2
+ #
3
+ # Copyright (c) 2000-2022, ReportLab Inc.
4
+ # All rights reserved.
5
+ #
6
+ # Redistribution and use in source and binary forms, with or without modification,
7
+ # are permitted provided that the following conditions are met:
8
+ #
9
+ # * Redistributions of source code must retain the above copyright notice,
10
+ # this list of conditions and the following disclaimer.
11
+ # * Redistributions in binary form must reproduce the above copyright notice,
12
+ # this list of conditions and the following disclaimer in the documentation
13
+ # and/or other materials provided with the distribution.
14
+ # * Neither the name of the company nor the names of its contributors may be
15
+ # used to endorse or promote products derived from this software without
16
+ # specific prior written permission.
17
+ #
18
+ # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
19
+ # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20
+ # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
21
+ # IN NO EVENT SHALL THE OFFICERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
22
+ # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
23
+ # TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
24
+ # OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
25
+ # IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
26
+ # IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27
+ # SUCH DAMAGE.
28
+ #
29
+ #####################################################################################
@@ -0,0 +1 @@
1
+ include README.* LICENSE.txt test/* src/*
@@ -0,0 +1,23 @@
1
+ Metadata-Version: 2.1
2
+ Name: rl_accel
3
+ Version: 0.9.0
4
+ Summary: Acclerator for ReportLab
5
+ Home-page: http://www.reportlab.com/
6
+ Author: Andy Robinson, Robin Becker, the ReportLab team and the community
7
+ Author-email: reportlab-users@lists2.reportlab.com
8
+ License: BSD license (see LICENSE.txt for details), Copyright (c) 2000-2022, ReportLab Inc.
9
+ Classifier: Development Status :: 5 - Production/Stable
10
+ Classifier: Intended Audience :: Developers
11
+ Classifier: License :: OSI Approved :: BSD License
12
+ Classifier: Topic :: Printing
13
+ Classifier: Topic :: Text Processing :: Markup
14
+ Classifier: Programming Language :: Python :: 3
15
+ Classifier: Programming Language :: Python :: 3.7
16
+ Classifier: Programming Language :: Python :: 3.8
17
+ Classifier: Programming Language :: Python :: 3.9
18
+ Classifier: Programming Language :: Python :: 3.10
19
+ Classifier: Programming Language :: Python :: 3.11
20
+ Requires-Python: >=3.7,<4
21
+ License-File: LICENSE.txt
22
+
23
+ This is an accelerator module for the ReportLab Toolkit Open Source Python library for generating PDFs and graphics.
@@ -0,0 +1,7 @@
1
+ __rl_accel__ is a package containing the ReportLab accelerator module
2
+
3
+ _\_rl_accel_
4
+
5
+ which can be used to speedup the reportlab.lib.rl_accel.py functions.
6
+
7
+ The current _version_ is 0.9.0 and is based on the Python 3.7 limited ABI.
@@ -0,0 +1,3 @@
1
+ [build-system]
2
+ requires = ["setuptools","wheel"]
3
+ build-backend = "setuptools.build_meta"
@@ -0,0 +1,23 @@
1
+ Metadata-Version: 2.1
2
+ Name: rl-accel
3
+ Version: 0.9.0
4
+ Summary: Acclerator for ReportLab
5
+ Home-page: http://www.reportlab.com/
6
+ Author: Andy Robinson, Robin Becker, the ReportLab team and the community
7
+ Author-email: reportlab-users@lists2.reportlab.com
8
+ License: BSD license (see LICENSE.txt for details), Copyright (c) 2000-2022, ReportLab Inc.
9
+ Classifier: Development Status :: 5 - Production/Stable
10
+ Classifier: Intended Audience :: Developers
11
+ Classifier: License :: OSI Approved :: BSD License
12
+ Classifier: Topic :: Printing
13
+ Classifier: Topic :: Text Processing :: Markup
14
+ Classifier: Programming Language :: Python :: 3
15
+ Classifier: Programming Language :: Python :: 3.7
16
+ Classifier: Programming Language :: Python :: 3.8
17
+ Classifier: Programming Language :: Python :: 3.9
18
+ Classifier: Programming Language :: Python :: 3.10
19
+ Classifier: Programming Language :: Python :: 3.11
20
+ Requires-Python: >=3.7,<4
21
+ License-File: LICENSE.txt
22
+
23
+ This is an accelerator module for the ReportLab Toolkit Open Source Python library for generating PDFs and graphics.
@@ -0,0 +1,10 @@
1
+ LICENSE.txt
2
+ MANIFEST.in
3
+ README.md
4
+ pyproject.toml
5
+ setup.py
6
+ rl_accel.egg-info/PKG-INFO
7
+ rl_accel.egg-info/SOURCES.txt
8
+ rl_accel.egg-info/dependency_links.txt
9
+ rl_accel.egg-info/top_level.txt
10
+ src/_rl_accel.c
@@ -0,0 +1 @@
1
+ _rl_accel
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,82 @@
1
+ from setuptools import setup, Extension
2
+ from wheel.bdist_wheel import bdist_wheel, get_abi_tag
3
+ from os.path import join as pjoin
4
+ import sys, os, sysconfig, re
5
+
6
+ def make_la_info():
7
+ '''compute limited api and abi info'''
8
+ global py_limited_kwds, cpstr
9
+ cpstr = get_abi_tag()
10
+ if cpstr.startswith("cp"):
11
+ lav = '0x03070000'
12
+ cpstr = 'cp37'
13
+ if sys.platform == "darwin":
14
+ machine = sysconfig.get_platform().split('-')[-1]
15
+ if machine=='arm64' or os.environ.get('ARCHFLAGS','')=='-arch arm64':
16
+ #according to cibuildwheel/github M1 supports pythons >= 3.8
17
+ lav = '0x03080000'
18
+ cpstr = 'cp38'
19
+ py_limited_kwds = dict(
20
+ define_macros=[("Py_LIMITED_API", lav)],
21
+ py_limited_api=True,
22
+ )
23
+ else:
24
+ py_limited_kwds = {}
25
+
26
+ make_la_info()
27
+
28
+ class bdist_wheel_abi3(bdist_wheel):
29
+ def get_tag(self):
30
+ python, abi, plat = super().get_tag()
31
+
32
+ if python.startswith("cp"):
33
+ abi = 'abi3'
34
+ python = cpstr
35
+ return python,abi,plat
36
+
37
+ def getVersionFromCCode(fn):
38
+ with open(fn,'r') as _:
39
+ code = _.read()
40
+ tag = re.search(r'^#define\s+VERSION\s+"([^"]*)"',code,re.M)
41
+ return tag and tag.group(1) or ''
42
+
43
+ setup(
44
+ ext_modules=[
45
+ Extension(
46
+ "_rl_accel",
47
+ sources=[pjoin('src','_rl_accel.c')],
48
+ **py_limited_kwds,
49
+ )
50
+ ],
51
+ name="rl_accel",
52
+ version=getVersionFromCCode(pjoin('src','_rl_accel.c')),
53
+ license="BSD license (see LICENSE.txt for details), Copyright (c) 2000-2022, ReportLab Inc.",
54
+ description="Acclerator for ReportLab",
55
+ long_description="""This is an accelerator module for the ReportLab Toolkit Open Source Python library for generating PDFs and graphics.""",
56
+ author="Andy Robinson, Robin Becker, the ReportLab team and the community",
57
+ author_email="reportlab-users@lists2.reportlab.com",
58
+ url="http://www.reportlab.com/",
59
+ packages=[],
60
+ package_data = {},
61
+ classifiers = [
62
+ 'Development Status :: 5 - Production/Stable',
63
+ 'Intended Audience :: Developers',
64
+ 'License :: OSI Approved :: BSD License',
65
+ 'Topic :: Printing',
66
+ 'Topic :: Text Processing :: Markup',
67
+ 'Programming Language :: Python :: 3',
68
+ 'Programming Language :: Python :: 3.7',
69
+ 'Programming Language :: Python :: 3.8',
70
+ 'Programming Language :: Python :: 3.9',
71
+ 'Programming Language :: Python :: 3.10',
72
+ 'Programming Language :: Python :: 3.11',
73
+ ],
74
+ license_files = ['LICENSE.txt'],
75
+
76
+ #this probably only works for setuptools, but distutils seems to ignore it
77
+ install_requires=[],
78
+ python_requires='>=3.7,<4',
79
+ extras_require={
80
+ },
81
+ cmdclass={"bdist_wheel": bdist_wheel_abi3},
82
+ )