Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testing macos arm64 #38

Closed
wants to merge 18 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,9 @@ jobs:
run: |
python -m pip install --upgrade -r development.txt

- name: Install Visual C++ for Python 2.7
- name: Install Visual C++ for Python
if: runner.os == 'Windows'
run: |
choco install vcpython27 -f -y
choco install golang -f -y
choco install mingw -f -y
go get -d
Expand All @@ -42,7 +41,7 @@ jobs:
- name: Build Linux wheels and sdist
if: runner.os == 'Linux'
env:
CIBW_SKIP: "cp35-* *-win32 *-musllinux_i686 *-musllinux_aarch64 *-musllinux_ppc64le *-musllinux_s390x *-manylinux_i686 *-manylinux_aarch64 *-manylinux_ppc64le *-manylinux_s390x"
CIBW_SKIP: "cp35-* cp36-* *-win32 *-musllinux_i686 *-musllinux_aarch64 *-musllinux_ppc64le *-musllinux_s390x *-manylinux_i686 *-manylinux_aarch64 *-manylinux_ppc64le *-manylinux_s390x"
CIBW_BUILD_VERBOSITY: 1
run: |
python setup.py sdist
Expand All @@ -67,15 +66,16 @@ jobs:
- name: Build macOS wheels
if: runner.os == 'macOS'
env:
CIBW_SKIP: "cp35-* *-win32 *-manylinux_i686 *-manylinux_aarch64 *-manylinux_ppc64le *-manylinux_s390x"
CIBW_SKIP: "cp35-* cp36-* *-win32 *-manylinux_i686 *-manylinux_aarch64 *-manylinux_ppc64le *-manylinux_s390x"
CIBW_BUILD_VERBOSITY: 1
CIBW_ARCHS_MACOS: x86_64 arm64
run: |
python3 -m cibuildwheel --output-dir wheelhouse

- name: Build Windows wheels
if: runner.os == 'Windows'
env:
CIBW_SKIP: "cp35-* *-win32 *-manylinux_i686 *-manylinux_aarch64 *-manylinux_ppc64le *-manylinux_s390x"
CIBW_SKIP: "cp36-* *-win32 *-manylinux_i686 *-manylinux_aarch64 *-manylinux_ppc64le *-manylinux_s390x"
CIBW_BUILD_VERBOSITY: 1
run: |
python -m cibuildwheel --output-dir wheelhouse
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:

strategy:
matrix:
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11']
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']

name: Python ${{ matrix.python-version }}
steps:
Expand Down
7 changes: 0 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
FROM python:3.6-slim-buster as py36
RUN apt-get update && apt-get install -y golang make build-essential libffi-dev git
WORKDIR /root
COPY . /root
RUN python setup.py bdist_wheel


FROM python:3.7-slim-buster as py37
RUN apt-get update && apt-get install -y golang make build-essential libffi-dev git
WORKDIR /root
Expand Down
4 changes: 2 additions & 2 deletions development.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
setuptools-golang==2.3.0
setuptools-golang==2.7.0
wheel==0.37.1
cffi==1.14.5
black==20.8b1
isort==5.6.4
twine==3.1.1
pytest==6.2.5
psutil==5.7.3
cibuildwheel==2.3.1
cibuildwheel==2.9.0
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
python_requires=">=3.6",
python_requires=">=3.7",
# I'm not sure what this value is supposed to be
build_golang={"root": "github.com/ColdHeat/pybluemonday"},
ext_modules=[setuptools.Extension("pybluemonday/bluemonday", ["bluemonday.go"])],
setup_requires=["setuptools-golang==2.3.0", "cffi~=1.1"],
setup_requires=["setuptools-golang==2.7.0", "cffi~=1.1"],
install_requires=["cffi~=1.1"],
)
Loading