138 Commits

Author SHA1 Message Date
Cosimo Lupo
41099fd376
Bump version: 3.6.2 → 3.6.3.dev0 2017-01-30 17:25:52 +00:00
Cosimo Lupo
d67135852f
Release 3.6.2 2017-01-30 17:24:57 +00:00
Cosimo Lupo
1cf852bb3f
Bump version: 3.6.1 → 3.6.2.dev0 2017-01-28 16:16:25 +00:00
Cosimo Lupo
0617123053
Release 3.6.1 2017-01-28 16:01:32 +00:00
Cosimo Lupo
a9dcf1c1b0
Bump version: 3.6.0 → 3.6.1.dev0 2017-01-26 19:52:25 +00:00
Cosimo Lupo
18b6459ce2
Release 3.6.0 2017-01-26 19:50:17 +00:00
Cosimo Lupo
3ec651ee22
[setup.py] in long_description, add 'Changelog' header to separate README.rst from NEWS.rst 2017-01-20 09:39:18 +00:00
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
8aa9f15ad5
require pytest>=3.0 in setup.py's setup_requires and setup.cfg 2017-01-17 13:33:47 +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
530533ec60
setup.py: allow to override default "share/man" via environment variable
Apparently on some BSD systems man pages go to /usr/man instead of /usr/share/man.
It's too complicated to keep track of all the nuances of Linux distros so package maintainers can simply override the default via a $FONTTOOLS_MANPATH env variable

Fixes #84
2017-01-11 13:18:57 +00:00
Cosimo Lupo
fb6d3f6356
setup.py: always install ttx manpage (even when not used); remove platform-specific branch
It's not a good thing that we build different wheel packages (with/without data_files) according to the platform we build them with.
After all, these wheels are meant to be "universal".

Even when manpages can't be used on a target platform (e.g. Windows), their mere presence should not do any harm; they are simply copied to a 'share/man' folder relative to the python prefix. On Unix systems (Linux, Homebrew, etc.) this is usually `/usr` or `/usr/local`, so `man ttx` just works (TM).

Note that other popular python tools like IPython or Sympy also install manpages the same way we do here with ttx, and they do that unconditionally for all platforms.

As regards issue #796, whereby attempting to `sudo pip install fonttools` fails because the manpage file is copied to a SIP-protected location on OSX El Capitan and above:

Users who still wish to install fonttools globally with sudo (and are not scared after googling 'why sudo pip is bad'), can still use the '--install-data' option of setup.py install to modify the data_files base installation directory.

If you install with pip (recommended over `python setup.py install`), you can use --install-option to pass through installation options to setup.py (which is run by pip when installing from source).

For example, to install man pages to /usr/local/share/man/man1/*.1 you could pass "/usr/local" as the base directory for --install-data, like so:

sudo -H /usr/bin/python -m pip install --install-option="--install-data=/usr/local" fonttools
2017-01-11 13:18:57 +00:00
Cosimo Lupo
9d39007aa6
Bump version: 3.4.1.dev0 → 3.5.0.dev0 2017-01-02 17:03:59 +01:00
Cosimo Lupo
61ab1e7f6d
build sdist/wheel only once for both Github and PyPI
This makes sure we upload the same files to Github Releases and PyPI.

Currently we were building them twice, with the risk of different files
being uploaded to the two repositories.
2016-12-26 19:36:08 +00:00
Cosimo Lupo
1f086bb230
Bump version: 3.4.0 → 3.4.1.dev0 2016-12-21 18:13:54 +00:00
Cosimo Lupo
94cb10a796
setup.py: fix typo in trove classifiers
which made the deployment to PyPI fail:
https://travis-ci.org/fonttools/fonttools/jobs/185813647#L5650
2016-12-21 16:26:02 +00:00
Cosimo Lupo
fc7cc64e81
Release 3.4.0 2016-12-21 16:08:55 +00:00
Cosimo Lupo
fea1b7287c
setup.py: change from 'Beta' to 'Production/Stable' in pypi trove classifiers, and add the 'Fonts' topic 2016-12-20 17:41:07 +00:00
Cosimo Lupo
ca9c16baeb
NEWS: write tag date on a different line so services like pyup.io can parse the changelog
https://pyup.io/changelogs/fonttools/
2016-12-20 15:38:16 +00:00
Cosimo Lupo
464fece4a4
setup.py: add "Python 3" to PyPI Trove Classifiers, otherwise we don't show up as PY3 compatible
but we are!
2016-12-20 14:53:54 +00:00
Cosimo Lupo
323877f7df
Bump version: 3.3.1 → 3.3.2.dev0 2016-12-15 11:12:14 +00:00
Cosimo Lupo
95f76885e7
Release 3.3.1 2016-12-15 11:12:13 +00:00
Cosimo Lupo
2a757ad55a
setup.py: add custom 'release' command to run bump all versions and tag new releases 2016-12-14 23:11:29 +00:00
Cosimo Lupo
685c5a1140
Bump version: 3.3.0 → 3.3.1.dev0 2016-12-14 22:38:54 +00:00
Cosimo Lupo
4f6147460d
remove versioneer (see discussion at #767) 2016-12-14 12:14:43 +00:00
Parag A Nemade
2326ed6f50
Remove py_modules sstruct and xmlWriter from setup.py for issue#696
Signed-off-by: Parag A Nemade <pnemade@fedoraproject.org>
2016-12-07 10:30:48 +05:30
Behdad Esfahbod
f5bf9b04de Add a 'fonttools' command-line tool that simply runs modules
ttx is now equivalent to:
$ fonttools ttx

pyftsubset can be called as:
$ fonttools subset

varLib can be called as:
$ fonttools.varLib

Also adds a executable at toplevel called fonttools, such that
with "./fonttools ..." one can run stuff without installing.
Python seems to automatically include ./Lib into its search path.
2016-10-30 15:19:29 +02:00
Cosimo Lupo
47cdb2a501 setup.py: use versioneer instead of setuptools_scm 2016-10-12 00:40:06 +01:00
Cosimo Lupo
6b152f57ae generate 'version.py' file with plain version string instead of using pkg_resources to read version from package metadata
See https://github.com/fonttools/fonttools/issues/697#issuecomment-252621005
2016-10-10 15:06:11 +01:00
Hartmut Goebel
f8982ac952 Remove extra_path distribution kwarg
This is of no use, it is undocumented and bound to be removed.

See https://bugs.python.org/issue901727 and https://bugs.python.org/issue27919.
2016-10-08 15:10:02 +02:00
Cosimo Lupo
969b68ec2b [setup.py] fix url so PyPI shows the new project homepage 2016-09-27 19:34:43 +01:00
Cosimo Lupo
c6de6c4a5f setup.py: use pytest-runner to bootstrap pytest and simply do python setup.py test; add wheel to setup requirements when doing pyhton setup.py bdist_wheel 2016-09-27 13:20:48 +01:00
Cosimo Lupo
f5454ba123 setup.py: use version from setuptools_scm
setuptools_scm handles managing python package versions using git metadata instead of declaring them as the version argument or in a git-managed file.

https://github.com/pypa/setuptools_scm
2016-09-26 23:56:31 +01:00
Cosimo Lupo
4e4b8d73c9 setup.py: version 3.1.0 2016-09-26 23:22:18 +01:00
Cosimo Lupo
c8135baed5 setup.py: install the ttx 'man' page only on Linux 2016-08-20 11:35:49 +01:00
Cosimo Lupo
dd5d442ea6 Revert "Remove old 'Doc/ttx.1'"
This reverts commit fe90e12601b9bea3983ddc1c0ec58303d14bbbe3.

Khaled commented:

> We either need to update the man page or find a way to generate it from other
existing documentation, not just drop it entirely with no replacement

fe90e12601 (commitcomment-18713586)
2016-08-20 11:30:18 +01:00
Cosimo Lupo
5f94d8b2df MANIFEST.in: include all the files that should be included in source dist
One notable absence was README.md... :)

For the testdata/*, I now use `include_package_data=True` in setup.py, to automatically install any data files found inside package directories that are also specified in MANIFEST.in file.

I also include the Snippets, which I think should belong to the source distribution, despite not being installed as console scripts like ttx, etc.

The MANIFEST.in does not need to include itself (done by default).
2016-08-19 14:21:33 +01:00
Cosimo Lupo
3796a8ba05 setup.py: add 'package_data' for test files
There's no point in installing the test modules if we don't also install the test data.

(BTW, all this stuff would not be necessary if we were to use 'setuptools_scm'
which would just include in the distribution all the files which are tracked by
git version control...)
2016-08-19 13:02:03 +01:00
Cosimo Lupo
fe90e12601 Remove old 'Doc/ttx.1' man page as outdated, not working on Mac/Windows
The file contains outdated information and nobody is maintaining it any longer.
Plus it only works on Linux, and only if pip installing as sudo (which is bad!).

We need proper Sphinx+ReadTheDocs kind of documentation.
2016-08-19 12:27:09 +01:00
Cosimo Lupo
e6a7e3c53c setup.py: use setuptools.find_packages instead of specifying list of sub-packages 2016-08-19 10:16:18 +01:00
Cosimo Lupo
94b7cac969 setup.py: drop support for distutils-only setup; require setuptools
It's 2016.
2016-08-19 10:14:01 +01:00
Cosimo Lupo
189fac4758 setup.py: pep8 whitespace; remove unused imports 2016-08-06 13:37:39 +01:00
Cosimo Lupo
8e3b30a078 Revert "setup.py: version 3.1"
This reverts commit cef46f09cf2ddac7e4cd34ed385a094877a8bc4e.

Let's change the package version string only when we are ready to tag the new release.
2016-08-06 13:30:15 +01:00
Cosimo Lupo
cef46f09cf setup.py: version 3.1 2016-08-06 11:59:00 +01:00
Behdad Esfahbod
5f953db5ee [varLib] Document module a bit 2016-04-15 13:56:37 -07:00
Ayantha Randika
aa90ff936d Added otlLib 2016-01-19 17:49:08 +05:30
amitdo
bf51c78d72 Remove obsolete code - 'xml.parsers.expat' is part of
Python's stdlib

The 'xml.parsers.expat' module has been a part of Python's Standard Library since version 2.0. Link: https://docs.python.org/2/library/pyexpat.html#module-xml.parsers.expat . FontTools requires Python 2.7, or Python 3.3 or later. Checking for the existence of this module is not necessary anymore.
2016-01-10 12:45:32 +02:00
Adrien Tétar
ed5b9d9b57 setup.py: add feaLib and mtiLib 2016-01-02 16:38:17 +01:00
Ben Kiel
d7623b08ca Add t1Lib to packages
Seems that setup.py wasn't installing this.
2015-12-07 16:01:09 -06:00