Skip to content

Commit

Permalink
Remove python 3.7 and some cleanup (#144)
Browse files Browse the repository at this point in the history
* Update macOS target to macOS 11

Changed MACOSX_DEPLOYMENT_TARGET to macOS 11

* Remove python 3.7

* update cibuildwheel to 2.14.1

* Update build.yml

* Set minimum OS and python versions

* Update build.yml

* Update build.yml

* Update build.yml

* Update build.yml

* Update build.yml

* Remove darwin section from setup.py

This darwin section was never used, and actually couldn't run as the class is only used on Windows

* Update setup.py
  • Loading branch information
emlowe authored Aug 25, 2023
1 parent 06acd8a commit 71d4f1d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,6 @@ jobs:
runs-on:
intel: [windows-latest]
python:
- major-dot-minor: '3.7'
cibw-build: 'cp37-*'
manylinux:
arch: manylinux2014
intel: manylinux2010
matrix: '3.7'
- major-dot-minor: '3.8'
cibw-build: 'cp38-*'
manylinux:
Expand Down Expand Up @@ -132,7 +126,7 @@ jobs:
CIBW_ARCHS_MACOS: ${{ matrix.os.cibw-archs-macos[matrix.arch.matrix] }}
CIBW_PRERELEASE_PYTHONS: True
run:
pipx run --spec='cibuildwheel==2.11.1' cibuildwheel --output-dir dist 2>&1
pipx run --spec='cibuildwheel==2.11.2' cibuildwheel --output-dir dist 2>&1

- name: Upload artifacts
uses: actions/upload-artifact@v3
Expand Down
9 changes: 2 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,11 +221,6 @@ class BuildExt(build_ext):
"unix": [""],
}

if sys.platform == "darwin":
darwin_opts = ["-stdlib=libc++", "-mmacosx-version-min=10.14"]
c_opts["unix"] += darwin_opts
l_opts["unix"] += darwin_opts # type: ignore

def build_extensions(self):
ct = self.compiler.compiler_type
opts = self.c_opts.get(ct, [])
Expand All @@ -250,7 +245,7 @@ def build_extensions(self):
author_email="[email protected]",
description="Chia vdf verification (wraps C++)",
license="Apache License",
python_requires=">=3.7",
python_requires=">=3.8",
long_description=open("README.md").read(),
long_description_content_type="text/markdown",
url="https://github.com/Chia-Network/chiavdf",
Expand All @@ -268,7 +263,7 @@ def build_extensions(self):
author_email="[email protected]",
description="Chia vdf verification (wraps C++)",
license="Apache License",
python_requires=">=3.7",
python_requires=">=3.8",
long_description=open("README.md").read(),
long_description_content_type="text/markdown",
url="https://github.com/Chia-Network/chiavdf",
Expand Down

0 comments on commit 71d4f1d

Please sign in to comment.