Skip to content

Commit

Permalink
Build only Python 3.9-3.12 wheels (#42)
Browse files Browse the repository at this point in the history
* attempt to build new wheels

* satisfy nanny

* nanny nanny

* bump version to 1.4.6
  • Loading branch information
hobu authored Dec 17, 2023
1 parent fbb5b69 commit 99f1cc6
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 20 deletions.
32 changes: 16 additions & 16 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ jobs:
name: black
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Setup
Expand All @@ -29,8 +29,8 @@ jobs:
name: flake8
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Setup
Expand All @@ -41,8 +41,8 @@ jobs:
name: isort
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Setup
Expand Down Expand Up @@ -70,14 +70,14 @@ jobs:
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v1
- uses: actions/setup-python@v2
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
name: Install Python
with:
python-version: '3.10'
- name: Install cibuildwheel
run: |
python -m pip install cibuildwheel==2.3.1
python -m pip install cibuildwheel
- uses: ilammy/msvc-dev-cmd@v1
if: startsWith(matrix.os, 'windows')
- name: Build wheels
Expand All @@ -94,7 +94,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python_tag: [ "cp37-*", "cp38-*", "cp39-*", "cp310-*"]
python_tag: [ "cp39-*", "cp310-*","cp311-*", "cp312-*"]
env:
CIBW_ARCHS_LINUX: aarch64
CIBW_BUILD: ${{matrix.python_tag}}
Expand All @@ -103,14 +103,14 @@ jobs:
CIBW_BEFORE_BUILD_LINUX: ""

steps:
- uses: actions/checkout@v1
- uses: actions/setup-python@v2
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
name: Install Python
with:
python-version: '3.10'
python-version: '3.11'
- name: Install cibuildwheel
run: |
python -m pip install cibuildwheel==2.3.1
python -m pip install cibuildwheel
- uses: docker/setup-qemu-action@v1
name: Set up QEMU
- name: Build wheels
Expand All @@ -133,8 +133,8 @@ jobs:
fail-fast: true

steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
name: Install Python
with:
python-version: '3.10'
Expand Down
1 change: 0 additions & 1 deletion mgrs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ def toLatLon(self, MGRS, inDegrees=True):
return (lat, lon)

def MGRSToUTM(self, MGRS, encoding="utf-8"):

if type(MGRS) is str:
mgrs = MGRS.encode(encoding)
else:
Expand Down
3 changes: 1 addition & 2 deletions mgrs/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def _load_library(dllname, loadfunction, dllpaths=("",)):

free = None

def free(m):
def free(m): # noqa: F811
global free
try:
free = ctypes.cdll.msvcrt.free(m)
Expand All @@ -151,7 +151,6 @@ def free(m):
raise

elif os.name == "posix":

soabi = sysconfig.get_config_var("SOABI")
lib_name = "libmgrs.so"
if soabi:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

setup(
name="mgrs",
version="1.4.5",
version="1.4.6",
description="MGRS coordinate conversion for Python",
license="MIT",
keywords="gis coordinate conversion",
Expand Down

0 comments on commit 99f1cc6

Please sign in to comment.