Skip to content

Commit 7fe84c9

Browse files
committed
Updated package metadata and misc
- Specifying python_requires with upper bound (3.10) - Updated Cython to latest (patch release) - Using pinned ubuntu-20.04 image in GA as ubuntu-22.04 will soon become ubuntu-latest and doesn't include py 3.6
1 parent 6b42acd commit 7fe84c9

File tree

6 files changed

+27
-28
lines changed

6 files changed

+27
-28
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@ jobs:
1919
runs-on: ${{ matrix.os }}
2020
strategy:
2121
matrix:
22-
os: [ubuntu-latest, macos-10.15]
23-
# TODO: expand this to cross-platform builds (see V2 approach below)
24-
# os: [ubuntu-latest, windows-latest, macos-10.15]
22+
os: [ubuntu-20.04, macos-10.15]
2523
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"]
2624

2725
steps:
@@ -62,7 +60,7 @@ jobs:
6260
-p "${{ secrets.APPLE_SIGNING_ALTOOL_PASSWORD }}"
6361
6462
- name: set linux environ
65-
if: matrix.os == 'ubuntu-latest'
63+
if: matrix.os == 'ubuntu-20.04'
6664
run: |
6765
echo LIBZIM_EXT=so >> $GITHUB_ENV
6866
echo LIBZIM_RELEASE=libzim_linux-x86_64-$LIBZIM_VERSION >> $GITHUB_ENV
@@ -85,7 +83,7 @@ jobs:
8583
mv $LIBZIM_RELEASE libzim_dist
8684
8785
- name: Link Linux libzim dylib & headers into workspace lib and include folders
88-
if: matrix.os == 'ubuntu-latest'
86+
if: matrix.os == 'ubuntu-20.04'
8987
run: |
9088
cp -dp $GITHUB_WORKSPACE/libzim_dist/lib/x86_64-linux-gnu/* lib/
9189
ln -s libzim.so.${LIBZIM_VERSION:0:1} lib/libzim.so
@@ -100,9 +98,9 @@ jobs:
10098
10199
- name: Build cython and sdist
102100
run: |
103-
pip install --upgrade "cython>=0.29.28,<3.0" setuptools pip wheel
101+
pip install --upgrade "cython>=0.29.30,<3.0" setuptools pip wheel
104102
python3 setup.py build_ext --rpath $RPATH
105-
if [[ "${{ matrix.python-version }}" == "3.6" ]]
103+
if [[ "${{ matrix.python-version }}" == "3.8" ]]
106104
then
107105
python3 setup.py sdist
108106
fi
@@ -136,7 +134,7 @@ jobs:
136134
spctl -a -v -t install ${wrapper} || true
137135
138136
- name: add Linux libzim binary to source for wheel
139-
if: matrix.os == 'ubuntu-latest'
137+
if: matrix.os == 'ubuntu-20.04'
140138
run: cp -pv lib/libzim.so.${LIBZIM_VERSION:0:1} $(find build/lib* -type d)/
141139

142140
- name: build wheel
@@ -152,7 +150,7 @@ jobs:
152150
run: |
153151
pip install --upgrade twine
154152
twine check dist/*
155-
if [ "${{ matrix.os }}" == "ubuntu-latest" -a "${{ matrix.python-version }}" = "3.6" ]
153+
if [ "${{ matrix.os }}" == "ubuntu-20.04" -a "${{ matrix.python-version }}" = "3.8" ]
156154
then
157155
twine upload dist/*.tar.gz
158156
fi

.github/workflows/test.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ env:
99

1010
jobs:
1111
lint:
12-
runs-on: ubuntu-latest
12+
runs-on: ubuntu-20.04
1313
steps:
1414
- uses: actions/checkout@v2
1515

@@ -29,10 +29,7 @@ jobs:
2929
runs-on: ${{ matrix.os }}
3030
strategy:
3131
matrix:
32-
os: [ubuntu-latest, macos-10.15]
33-
# TODO: expand this once macos and windows libzim releases become available
34-
# os: [ubuntu-latest, windows-latest, macos-10.15]
35-
# alternatively we can compile libzim in docker and use the container as an action
32+
os: [ubuntu-20.04, macos-10.15]
3633
python: ["3.6", "3.7", "3.8", "3.9", "3.10"]
3734

3835
steps:
@@ -52,7 +49,7 @@ jobs:
5249
echo LIBZIM_LIBRARY_PATH=lib/libzim.7.dylib >> $GITHUB_ENV
5350
5451
- name: set linux environ
55-
if: matrix.os == 'ubuntu-latest'
52+
if: matrix.os == 'ubuntu-20.04'
5653
run: |
5754
echo LIBZIM_EXT=so >> $GITHUB_ENV
5855
echo LIBZIM_RELEASE=libzim_linux-x86_64-$LIBZIM_VERSION >> $GITHUB_ENV
@@ -80,7 +77,7 @@ jobs:
8077
export LD_LIBRARY_PATH="$PWD/lib:$LD_LIBRARY_PATH"
8178
8279
- name: update Linux shared objects cache
83-
if: matrix.os == 'ubuntu-latest'
80+
if: matrix.os == 'ubuntu-20.04'
8481
run: |
8582
sudo ldconfig $PWD/lib
8683
@@ -91,7 +88,7 @@ jobs:
9188
9289
- name: Build cython, sdist, and bdist_wheel
9390
run: |
94-
pip install --upgrade pip install "cython>=0.29.28,<3.0" setuptools pip wheel
91+
pip install --upgrade pip install "cython>=0.29.30,<3.0" setuptools pip wheel
9592
python3 setup.py build_ext --inplace
9693
python3 setup.py sdist bdist_wheel
9794

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10-
* n/a
10+
### Changed
11+
12+
* Building with Cython 0.29.30
13+
* Specifying max python version to 3.10.x in metadata
1114

1215
## [1.1.0] - 2022-05-23
1316

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
[build-system]
2-
requires = [ "setuptools >= 35.0.2", "wheel >= 0.29.0", "twine", "cython >= 0.29.28,<3.0" ]
2+
requires = [ "setuptools >= 35.0.2", "wheel >= 0.29.0", "twine", "cython >= 0.29.30,<3.0" ]
33
build-backend = "setuptools.build_meta"
44

55
[tool.black]
6-
target-version = ['py36', 'py37', 'py38']
6+
target-version = ['py36', 'py37', 'py38', 'py39', 'py310']
77

88

99
[tool.pytest.ini_options]

requirements-dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ invoke>=1.5,<2.0
55
coverage>=5.0,<7.0
66
pytest>=6.2,<7.0
77
pytest-cov>=2.10,<4.0
8-
Cython>=0.29.28
8+
Cython>=0.29.30

setup.cfg

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ project_urls =
77
description = A python-facing API for creating and interacting with ZIM files
88
author = Monadical Inc.
99
author_email = [email protected]
10-
maintainer = Openzim team
11-
maintainer_email = contact@openzim.org
10+
maintainer = openZIM
11+
maintainer_email = contact+openzim@kiwix.org
1212
long_description = file: README.md
1313
long_description_content_type = text/markdown
1414
license = GPL-3.0-or-later
1515
classifiers =
16-
Development Status :: 3 - Alpha
16+
Development Status :: 5 - Production/Stable
1717
Topic :: Utilities
1818
Topic :: Software Development :: Libraries
1919
Topic :: Software Development :: Libraries :: Python Modules
@@ -29,19 +29,20 @@ classifiers =
2929
Programming Language :: Python :: 3.8
3030
Programming Language :: Python :: 3.9
3131
Programming Language :: Python :: 3.10
32-
#Typing :: Typed
32+
Typing :: Stubs Only
3333
License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
34-
Operating System :: OS Independent
34+
Operating System :: MacOS
35+
Operating System :: POSIX
3536

3637
[options]
3738
include_package_data = True
3839
zim_safe = False
3940
packages =
4041
libzim
4142
python_requires =
42-
>=3.6
43+
>=3.6,<3.11
4344
setup_requires =
44-
cython
45+
cython >= 0.29.30,<0.30
4546
test_requires =
4647
pytest
4748

0 commit comments

Comments
 (0)