Skip to content

Commit

Permalink
Merge pull request #601 from adobe-type-tools/release
Browse files Browse the repository at this point in the history
Release 2.8.1
  • Loading branch information
miguelsousa authored Sep 7, 2018
2 parents f0a340a + f3b2131 commit 8dfa984
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
6 changes: 6 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
Changelog
=========

2.8.1 (released 2018-09-07)
---------------------------

- Made the wheels 'universal' py2.py3
([#595](https://github.com/adobe-type-tools/afdko/pull/595))

2.8.0 (released 2018-09-07)
---------------------------

Expand Down
3 changes: 0 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
[bdist_wheel]
universal=0

[metadata]
license_file = LICENSE.md
15 changes: 9 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,21 @@
import setuptools.command.install
from setuptools import setup

"""
We need a customized version of the 'bdist_wheel' command, because otherwise
the wheel is identified as being non-platform specific. This is because the
afdko has no Python extensions and the command line tools are installed as
data files.
"""
try:
from wheel.bdist_wheel import bdist_wheel

class CustomBDistWheel(bdist_wheel):
"""Mark the wheel as "universal" (both python 2 and 3), yet
platform-specific, since it contains native C executables.
"""

def finalize_options(self):
bdist_wheel.finalize_options(self)
self.root_is_pure = False

def get_tag(self):
return ('py2.py3', 'none',) + bdist_wheel.get_tag(self)[2:]

except ImportError:
print("afdko: setup.py requires that the Python package 'wheel' be "
"installed. Try the command 'pip install wheel'.")
Expand Down Expand Up @@ -214,6 +216,7 @@ def main():
# Copied from fonttools setup.py
with io.open("README.md", encoding="utf-8") as readme:
long_description = readme.read()
long_description += '\n'
with io.open("NEWS.md", encoding="utf-8") as changelog:
long_description += changelog.read()

Expand Down

0 comments on commit 8dfa984

Please sign in to comment.