-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Copy-paste ufoLib2's infrastructure (#30)
This modernizes the infrastructure.
- Loading branch information
Showing
21 changed files
with
237 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# This workflows will upload a Python Package using Twine when a release is created | ||
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries | ||
|
||
name: Upload Python Package | ||
|
||
on: | ||
push: | ||
# Sequence of patterns matched against refs/tags | ||
tags: | ||
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: '3.x' | ||
- name: Install dependencies | ||
run: | | ||
pip install setuptools wheel twine | ||
- name: Build and publish | ||
env: | ||
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} | ||
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} | ||
run: | | ||
python setup.py sdist bdist_wheel | ||
twine upload dist/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Test | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
pull_request: | ||
branches: [master] | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: '3.8' | ||
- name: Lint | ||
run: | | ||
pip install tox | ||
tox -e lint | ||
build: | ||
runs-on: ${{ matrix.platform }} | ||
strategy: | ||
matrix: | ||
python-version: [3.6, 3.8] | ||
platform: [ubuntu-latest, windows-latest] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Test with tox | ||
run: | | ||
pip install tox -r requirements-dev.txt | ||
tox -e py-cov |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
[mypy] | ||
python_version = 3.6 | ||
|
||
# Untyped definitions and calls | ||
disallow_incomplete_defs = True | ||
|
||
# None and Optional handling | ||
no_implicit_optional = True | ||
strict_optional = True | ||
|
||
# Configuring warnings | ||
warn_no_return = True | ||
warn_redundant_casts = True | ||
warn_unreachable = True | ||
|
||
# Miscellaneous strictness flags | ||
strict_equality = True | ||
|
||
[mypy-fontTools.*] | ||
ignore_missing_imports = True | ||
|
||
[mypy-pytest] | ||
ignore_missing_imports = True | ||
|
||
[mypy-py] | ||
ignore_missing_imports = True | ||
|
||
[mypy-setuptools] | ||
ignore_missing_imports = True | ||
|
||
[mypy-pyparsing] | ||
ignore_missing_imports = True | ||
|
||
[mypy-ufo2ft] | ||
ignore_missing_imports = True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,17 @@ | ||
[build-system] | ||
build-backend = "setuptools.build_meta" | ||
requires = ["setuptools>=40.7", "wheel", "setuptools_scm"] | ||
requires = ["setuptools>=42", "wheel", "setuptools_scm[toml]>=3.4"] | ||
|
||
[tool.setuptools_scm] | ||
write_to = "src/vttLib/_version.py" | ||
|
||
[tool.black] | ||
target-version = ["py36"] | ||
|
||
[tool.isort] | ||
multi_line_output = 3 | ||
include_trailing_comma = true | ||
force_grid_wrap = 0 | ||
use_parentheses = true | ||
line_length = 88 | ||
known_first_party = "vttLib" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
black | ||
coverage | ||
flake8 | ||
isort[pyproject] | ||
mypy | ||
pytest | ||
ufo2ft |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# | ||
# This file is autogenerated by pip-compile | ||
# To update, run: | ||
# | ||
# pip-compile requirements-dev.in | ||
# | ||
|
||
appdirs==1.4.4 # via black, fs | ||
atomicwrites==1.4.0 # via pytest | ||
attrs==19.3.0 # via black, pytest | ||
black==19.10b0 # via -r requirements-dev.in | ||
booleanoperations==0.9.0 # via ufo2ft | ||
click==7.1.2 # via black | ||
colorama==0.4.3 # via pytest | ||
compreffor==0.5.0 # via ufo2ft | ||
coverage==5.1 # via -r requirements-dev.in | ||
cu2qu==1.6.7 # via ufo2ft | ||
flake8==3.8.2 # via -r requirements-dev.in | ||
fonttools[ufo]==4.10.2 # via booleanoperations, compreffor, cu2qu, ufo2ft | ||
fs==2.4.11 # via fonttools | ||
isort[pyproject]==4.3.21 # via -r requirements-dev.in | ||
mccabe==0.6.1 # via flake8 | ||
more-itertools==8.3.0 # via pytest | ||
mypy-extensions==0.4.3 # via mypy | ||
mypy==0.770 # via -r requirements-dev.in | ||
packaging==20.4 # via pytest | ||
pathspec==0.8.0 # via black | ||
pluggy==0.13.1 # via pytest | ||
py==1.8.1 # via pytest | ||
pyclipper==1.1.0.post3 # via booleanoperations | ||
pycodestyle==2.6.0 # via flake8 | ||
pyflakes==2.2.0 # via flake8 | ||
pyparsing==2.4.7 # via packaging | ||
pytest==5.4.2 # via -r requirements-dev.in | ||
pytz==2020.1 # via fs | ||
regex==2020.5.14 # via black | ||
six==1.15.0 # via fs, packaging | ||
toml==0.10.1 # via black, isort | ||
typed-ast==1.4.1 # via black, mypy | ||
typing-extensions==3.7.4.2 # via mypy | ||
ufo2ft==2.14.0 # via -r requirements-dev.in | ||
wcwidth==0.1.9 # via pytest | ||
|
||
# The following packages are considered to be unsafe in a requirements file: | ||
# setuptools |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
import setuptools | ||
|
||
setuptools.setup(use_scm_version={"write_to": "src/vttLib/_version.py"}) | ||
setuptools.setup() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,7 @@ | ||
import logging | ||
import os | ||
import sys | ||
from argparse import ArgumentParser | ||
|
||
import fontTools.ttLib | ||
|
||
import vttLib | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
from pathlib import Path | ||
from typing import Any | ||
|
||
import pytest | ||
|
||
|
||
@pytest.fixture | ||
def original_shared_datadir(request) -> Path: | ||
def original_shared_datadir(request: Any) -> Path: | ||
return Path(request.fspath.dirname, "data") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.