Skip to content

Commit 0f37fc9

Browse files
committed
Update for Manylinux2014
1 parent cb93e65 commit 0f37fc9

File tree

5 files changed

+29
-11
lines changed

5 files changed

+29
-11
lines changed

Makefile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ TIDY_CFLAGS += -std=c11 -D_ISOC11_SOURCE -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE
1818

1919
export CC
2020
export CXX
21-
export RANLIB ?= ranlib
21+
22+
export AR = gcc-ar
23+
export RANLIB = gcc-ranlib
2224

2325

2426
tidy-html5/.git:
@@ -33,8 +35,10 @@ tidy-html5/build/cmake/libtidys.a: | tidy-html5/.git
3335
-DCMAKE_BUILD_TYPE=Release \
3436
-DBUILD_SHARED_LIBS=OFF \
3537
-DCMAKE_C_FLAGS="${TIDY_CFLAGS}" \
36-
-DCMAKE_C_COMPILER="${CC}"
37-
-DCMAKE_CXX_COMPILER="${CXX}"
38+
-DCMAKE_C_COMPILER="`/usr/bin/which "${CC}"`" \
39+
-DCMAKE_CXX_COMPILER="`/usr/bin/which "${CXX}"`" \
40+
-DCMAKE_AR="`/usr/bin/which "$${AR}"`" \
41+
-DCMAKE_RANLIB="`/usr/bin/which "$${RANLIB}"`"
3842

3943
cd tidy-html5/build/cmake/ && \
4044
$(MAKE) VERBOSE=1 -B

generate_imports.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111

1212
root = abspath(dirname(__file__))
1313

14-
Config.set_library_file(sorted(
14+
Config.set_library_file((sorted(
1515
glob('/usr/lib/llvm-*/lib/libclang.so.1'),
1616
key=lambda p: float(match(r'/usr/lib/llvm-(\d+(?:[.]\d+)?)/', p).group(1)),
1717
reverse=True,
18-
)[0])
18+
) or ('/usr/lib64/llvm/libclang.so',))[0])
1919

2020
index = Index.create()
2121
tu = index.parse(join(root, 'generate_imports_transclusion.h'))
@@ -121,7 +121,7 @@
121121
continue
122122

123123
if iskeyword(pretty_name):
124-
pretty_name = f'{pretty_name}_'
124+
pretty_name = pretty_name + '_'
125125

126126
print(" ", repr(pretty_name), ": <", definition['type'], "> ", valuename, ",", file=f, sep='')
127127

lib/DESCRIPTION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
PyTidyHtml5\n\
33
-----------\n\
44
\n\
5+
HTML clean-up and repair: Statically linked Python interface for `tidy-html5 <https://github.com/htacg/tidy-html5>`_.\
56
"""

lib/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"0.0.5"
1+
"2020.7.17"

setup.py

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ def get_text(name):
1010
return eval(f.read().strip())
1111

1212

13-
1413
extra_compile_args = [
1514
'-std=c++11', '-flto',
1615
'-O2', '-fomit-frame-pointer', '-fPIC', '-ggdb1', '-pipe',
@@ -31,13 +30,13 @@ def get_text(name):
3130
name=name,
3231
version=get_text('VERSION'),
3332
long_description=get_text('DESCRIPTION'),
34-
description='TODO',
33+
description='HTML clean-up and repair: Statically linked Python interface for tidy-html5.',
3534
author='René Kijewski',
3635
author_email='pypi.org@k6i.de',
3736
maintainer='René Kijewski',
3837
maintainer_email='pypi.org@k6i.de',
3938
url='https://github.com/Kijewski/pyjson5',
40-
python_requires='~= 3.4',
39+
python_requires='~= 3.6',
4140
zip_safe=False,
4241
ext_modules=[Extension(
4342
'_' + name,
@@ -49,7 +48,21 @@ def get_text(name):
4948
)],
5049
packages=[name],
5150
platforms=['any'],
52-
license='Apache 2.0',
51+
license='ISC',
5352
classifiers=[
53+
'Development Status :: 4 - Beta',
54+
'Intended Audience :: Developers',
55+
'Intended Audience :: System Administrators',
56+
'License :: OSI Approved :: ISC License (ISCL)',
57+
'Operating System :: OS Independent',
58+
'Programming Language :: Cython',
59+
'Programming Language :: Python :: 3',
60+
'Programming Language :: Python :: 3.6',
61+
'Programming Language :: Python :: 3.7',
62+
'Programming Language :: Python :: 3.8',
63+
'Programming Language :: Python :: 3.9',
64+
'Programming Language :: Python :: 3 :: Only',
65+
'Programming Language :: Python :: Implementation :: CPython',
66+
'Topic :: Text Processing :: Markup :: HTML ',
5467
],
5568
)

0 commit comments

Comments
 (0)