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

Test2 #173

Closed
wants to merge 24 commits into from
Closed

Test2 #173

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
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
os: [windows-latest]

steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
test

[![Githun CI Status](https://github.com/harfbuzz/uharfbuzz/workflows/Build%20+%20Deploy/badge.svg)](https://github.com/harfbuzz/uharfbuzz/actions?query=workflow%3A%22Build+%2B+Deploy%22)
[![PyPI](https://img.shields.io/pypi/v/uharfbuzz.svg)](https://pypi.org/project/uharfbuzz)

Expand Down
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ build-backend = "setuptools.build_meta"

[tool.cibuildwheel]
# only build for 64-bit
build = ["cp311-win_amd64"]
skip = ["*-manylinux_i686", "*-musllinux_i686"]

test-requires = "pytest"
Expand Down Expand Up @@ -37,3 +38,6 @@ CFLAGS = "-g0"
select = "*-musllinux*"
before-all = "apk add ccache"
environment = {CC = "/usr/lib/ccache/bin/gcc"}

[tool.cibuildwheel.windows]
build-verbosity = "3"
3 changes: 3 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ formats = zip

[metadata]
license_file = LICENSE

[build_ext]
#debug = 1
10 changes: 7 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,13 @@
define_macros.append(('HAVE_UNISTD_H', '1'))
define_macros.append(('HAVE_SYS_MMAN_H', '1'))
else:
define_macros.append(('HAVE_DIRECTWRITE', '1'))
define_macros.append(('HAVE_UNISCRIBE', '1'))
libraries += ['usp10', 'gdi32', 'user32', 'rpcrt4', 'dwrite']
extra_compile_args.append('/DEBUG:FULL')
extra_compile_args.append('/Z7')
extra_compile_args.append('/Zc:ternary')
extra_compile_args.append('/bigobj')
extra_compile_args.append('/fsanitize=address')
extra_link_args.append('/DEBUG:FULL')
libraries += ['user32', 'rpcrt4']

if platform.system() == 'Darwin':
define_macros.append(('HAVE_CORETEXT', '1'))
Expand Down
23 changes: 0 additions & 23 deletions tests/test_uharfbuzz.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,29 +326,6 @@ def test_shape_set_shaper(self, blankfont):
expected = [(0, 0, 0, 0), (0, 0, 0, 0), (0, 0, 0, 0), (0, 0, 0, 0), (0, 0, 0, 0)]
assert pos == expected

@pytest.mark.skipif(sys.platform != "win32", reason="requires Windows")
def test_shape_set_shaper_directwrite(self, blankfont):
string = "abcde"
buf = hb.Buffer()
buf.add_str(string)
buf.guess_segment_properties()
hb.shape(blankfont, buf, shapers=["directwrite"])
pos = [g.position for g in buf.glyph_positions]
expected = [(0, 0, 0, 0), (0, 0, 0, 0), (0, 0, 0, 0), (0, 0, 0, 0), (0, 0, 0, 0)]
assert pos == expected

@pytest.mark.xfail
@pytest.mark.skipif(sys.platform != "win32", reason="requires Windows")
def test_shape_set_shaper_uniscribe(self, blankfont):
string = "abcde"
buf = hb.Buffer()
buf.add_str(string)
buf.guess_segment_properties()
hb.shape(blankfont, buf, shapers=["uniscribe"])
pos = [g.position for g in buf.glyph_positions]
expected = [(0, 0, 0, 0), (0, 0, 0, 0), (0, 0, 0, 0), (0, 0, 0, 0), (0, 0, 0, 0)]
assert pos == expected

@pytest.mark.skipif(sys.platform != "darwin", reason="requires macOS")
def test_shape_set_shaper_coretext(self, blankfont):
string = "abcde"
Expand Down
Loading