Cosimo Lupo
7aaab4dff7
[setup.py] display README and NEWS on PyPI page; parse/update NEWS.rst in 'release' command
2017-01-18 18:59:55 +00:00
Cosimo Lupo
e83383113f
[NEWS] convert changelog to reStructuredText so we can publish on PyPI page
2017-01-18 18:40:54 +00:00
Cosimo Lupo
9d1f01899b
[NEWS] make changelog headers more consistent and machine-parseable
2017-01-18 18:40:50 +00:00
Cosimo Lupo
91644142e2
[MetaTools] change builtTableList.py to use README.rst instead of *.md
2017-01-18 16:16:54 +00:00
Cosimo Lupo
025137c3ac
[README.rst] fix the table list
2017-01-18 16:16:37 +00:00
Cosimo Lupo
91ab4a4e50
[README] convert from Markdown to reStructuredText so we can use it on both PyPI and Github
...
I converted it automatically with pandoc:
$ pandoc --from=markdown --to=rst --output README.rst README.md
2017-01-18 15:59:51 +00:00
Cosimo Lupo
cef9b8174d
Update changelog
2017-01-18 12:37:16 +00:00
Cosimo Lupo
63f5253ec7
[ttLib] don't close stdout in TTFont.saveXML()
...
otherwise when dumping multiple TTX to standard output it raises:
ValueError: I/O operation on closed file
2017-01-18 12:06:46 +00:00
Cosimo Lupo
ff247f9be4
[ttx] fix typo in --help
2017-01-18 12:01:32 +00:00
Cosimo Lupo
223c39f77e
[tox] also run pytest --pyargs fontTools
for embedded doctests
2017-01-17 22:14:16 +00:00
Cosimo Lupo
084ee0750a
[subset_test] invert arguments order in difflib.unified_diff; remove unused variable
2017-01-17 17:39:41 +00:00
Cosimo Lupo
89b688cecf
Merge pull request #811 from anthrotype/external-tests
...
move tests to external "Tests/" folder
2017-01-17 15:27:31 +00:00
Cosimo Lupo
98013fe526
[loggingTools_test] don't assert exact clock times
...
Windows timer can be imprecise:
https://ci.appveyor.com/project/fonttools/fonttools/build/1.0.419/job/vlpd9qv07384w5sl
2017-01-17 14:12:14 +00:00
Cosimo Lupo
a79bb0fa01
[Tests] convert varLib/models.py doctests into models_test.py
2017-01-17 13:39:38 +00:00
Cosimo Lupo
adaf708ae0
[Tests] convert ttProgram doctests into ttProgram_test.py
2017-01-17 13:39:37 +00:00
Cosimo Lupo
4ef3f1dd42
[Tests] convert GlyphCoordinates doctests into _g_l_y_f_test.py
2017-01-17 13:39:37 +00:00
Cosimo Lupo
a2066c9fbe
[Tests] convert _f_p_g_m doctests into _f_p_g_m_test.py
2017-01-17 13:39:37 +00:00
Cosimo Lupo
ad6e8e606c
[Tests] covert O_S_2f_2 doctests to unittest and moved to O_S_2f_2_test.py
2017-01-17 13:39:37 +00:00
Cosimo Lupo
ae6059e234
[Tests] covert woff2 doctests to unittest and moved to woff2_test.py
2017-01-17 13:39:36 +00:00
Cosimo Lupo
8fe1a874ff
[Tests] covert sfnt doctests into sfnt_test.py
2017-01-17 13:39:36 +00:00
Cosimo Lupo
cf5807bb94
[Tests] covert transform doctests into transform_test.py
2017-01-17 13:39:36 +00:00
Cosimo Lupo
99a9cb901a
[Tests] covert timeTools doctests into timeTools_test.py
2017-01-17 13:39:36 +00:00
Cosimo Lupo
34474743f5
[Tests] covert textTools doctests into textTools_test.py
2017-01-17 13:39:36 +00:00
Cosimo Lupo
7a62f04adf
[Tests] covert py23 doctests to unittest and add to py23_test.py
2017-01-17 13:39:35 +00:00
Cosimo Lupo
29141af3a9
[Tests] convert loggingTools doctests into loggingTools.py
2017-01-17 13:39:35 +00:00
Cosimo Lupo
8b0130ccb3
[Tests] convert eexec doctests into eexec_test.py
2017-01-17 13:39:35 +00:00
Cosimo Lupo
f22722ae51
[Tests] convert classifyTools doctests into bezierTools_test.py
2017-01-17 13:39:35 +00:00
Cosimo Lupo
3e23cc7bd6
[Tests] convert bezierTools doctests into bezierTools_test.py
2017-01-17 13:39:34 +00:00
Cosimo Lupo
4973060af0
[Tests] convert arrayTools doctests into arrayTools_test.py
2017-01-17 13:39:34 +00:00
Cosimo Lupo
e634005bd9
[arrayTools] no need to cast round(v) to int()
...
as we are using python3 round
2017-01-17 13:39:34 +00:00
Cosimo Lupo
1044eaf15b
README.md: update test instructions
2017-01-17 13:39:34 +00:00
Cosimo Lupo
8aa9f15ad5
require pytest>=3.0 in setup.py's setup_requires and setup.cfg
2017-01-17 13:33:47 +00:00
Cosimo Lupo
b7505c0b64
Update dev-requirements.txt: require pytest 3; use default bumpversion
...
we need pytest 3 for some tests use `pytest.approx()`.
we no longer need patched bumpversion, as we now call `git tag` ourselves (in `python setup.py release`)
2017-01-17 13:33:47 +00:00
Cosimo Lupo
3cdc800873
[Tests] rename all 'testdata' folders to simply 'data'
...
as it's now obvious what kind of data they are
2017-01-17 13:33:46 +00:00
Cosimo Lupo
6a6efc7877
[tox] call pytest without --pyargs option
...
Previously, we were using --pyargs to make sure pytest would run the test suite against the installed package, because our tests
were embedded inside the package and hence importable.
Now that they are placed in an external folder, that option is not needed.
pytest without options will run all the test modules from the default test paths as defined in setup.cfg, i.e Tests/ folder.
The tests will be run against the installed fontTools in the current tox environment.
We also pass {posargs} in the 'htmlcov' tox env, to allow passing extra options after `tox -e htmlcov -- {posargs}` to the `coverage html` command.
2017-01-17 13:29:32 +00:00
Cosimo Lupo
cee2fdfccc
[setup.cfg] configure pytest to run on "Tests/" folder by default
...
The embedded doctests won't work anymore when running "pytest", as they are still in Lib/fontTools.
We'll have to port them to unittest/pytest.
2017-01-16 09:14:13 +00:00
Cosimo Lupo
a01fc22fbc
[MANIFEST.in] add Test/*.py to sdist; adjust paths to testdata
2017-01-16 09:14:13 +00:00
Cosimo Lupo
e1d340cc65
[Tests] use absolute imports and add __init__.py where relevant
...
We can't use relative imports any more since the tests are now located outside the package.
I had to add __init__.py to Tests/feaLib/ so that pytest does not get confused by the presence
of two test files with the same basename: i.e. Tests/feaLib/builder_test.py and Tests/feaLib/builder_test.py
https://github.com/pytest-dev/pytest/issues/774
http://stackoverflow.com/questions/12582503/py-test-test-discovery-failure-when-tests-in-different-directories-are-called
2017-01-16 09:14:13 +00:00
Cosimo Lupo
78ad48eaf3
Move all *_test.py modules and test data to external Tests/ folder
2017-01-16 09:14:12 +00:00
Cosimo Lupo
c54d7548e9
Delete .gitattributes as no longer needed
...
this was needed when we were using setuptools_scm/versioneer to add version to git archives
2017-01-15 21:35:52 +00:00
Cosimo Lupo
7ddef61691
Bump version: 3.5.0 → 3.5.1.dev0
2017-01-14 15:22:43 +00:00
Cosimo Lupo
40a44f39d0
Release 3.5.0
2017-01-14 15:22:42 +00:00
Cosimo Lupo
69a532cfbb
Update changelog
2017-01-14 12:11:38 +00:00
Cosimo Lupo
29f0a99a06
[t2CharStringPen] add docstring to T2CharStringPen to explain how 'roundTolerance' works
2017-01-14 12:11:21 +00:00
Cosimo Lupo
5479090856
Merge pull request #804 from anthrotype/t2pen-round
...
[t2CharStringPen] add "roundTolerance" option
2017-01-14 11:40:51 +00:00
Cosimo Lupo
8891f4185e
[t2CharStringPen] allow tolerance to be > 0.5
...
See https://github.com/fonttools/fonttools/pull/804#issuecomment-272559973
2017-01-13 22:32:10 +00:00
Sascha Brawer
849734d5b5
[avar] Adjust avar header to OpenType 1.8.1 erratum
...
https://www.microsoft.com/typography/otspec/errata.htm
No behavioral changes, no changes in API, no changes in binary format.
Resolves https://github.com/fonttools/fonttools/issues/807
2017-01-13 15:46:20 +01:00
Cosimo Lupo
c63fea0f8f
[subset] when no --output-file=, use INPUT_FILE.subset.{extension}
...
We should probably use cliTools.makeOutputFileName here for consistency with ttx,
but I know some prefer the approach taken by pyftsubset so I don't want force this.
Howver, I find it a bit annoying that when one is too lazy (like me) to specify
the --output-file=, the subsetter outputs a file ending with an invalid ".subset" extension, which Finder or Windows Explorer don't recongize as a font, and so one has to rename it anyway.
This makes the '.subset' string is inserted between the file name and its original extension (if any).
2017-01-13 12:50:46 +00:00
Cosimo Lupo
f168c0ccb5
[subset] allow to pass --options=... before the fontfile positional argument
...
The code in main() assumes that the first of the args which are not consumed by Options.parse_opts(args) is the positional argument (ie. does not start with '--') for the input font file, and that is what the usage() says too.
However I find it myself writing --options=... first, and then at the end the positional arguments, as is the convention for many other Unix tools.
This patch makes this possible, while also keeping the current behavior.
2017-01-13 12:47:00 +00:00
Cosimo Lupo
2c142d7390
Update changelog
2017-01-13 11:35:40 +00:00