From aad2f80ceb110579306f51e2b03ab00c676fb688 Mon Sep 17 00:00:00 2001 From: Hiroshi Miura Date: Sun, 25 Mar 2018 19:44:09 +0900 Subject: [PATCH 1/2] Generate wheel with platform name --- setup.cfg | 2 +- setup.py | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/setup.cfg b/setup.cfg index d645be7..79bc678 100644 --- a/setup.cfg +++ b/setup.cfg @@ -2,4 +2,4 @@ # This flag says that the code is written to work on both Python 2 and Python # 3. If at all possible, it is good practice to do this. If you cannot, you # will need to generate wheels for each Python version that you support. -universal=0 +universal=1 diff --git a/setup.py b/setup.py index c8025d9..770a309 100644 --- a/setup.py +++ b/setup.py @@ -6,6 +6,15 @@ from setuptools.command.install import install from distutils.command.build import build +try: + from wheel.bdist_wheel import bdist_wheel as _bdist_wheel + class bdist_wheel(_bdist_wheel): + def finalize_options(self): + _bdist_wheel.finalize_options(self) + self.root_is_pure = False +except ImportError: + bdist_wheel = None + import pykakasi.genkanwadict as genkanwadict def gen_dict(src_f, pkl_f): @@ -77,6 +86,7 @@ def run(self): test_suite = 'nose.collector', tests_require = tests_require, cmdclass = { + 'bdist_wheel': bdist_wheel, 'build':my_build } ) From 2329e289b96f3266a1bd8520306cfb4f4e333b2e Mon Sep 17 00:00:00 2001 From: Hiroshi Miura Date: Sun, 25 Mar 2018 19:50:31 +0900 Subject: [PATCH 2/2] Update changelog --- CHANGELOG.rst | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index e1a62ab..4c94ff1 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -4,34 +4,45 @@ PyKakasi ChangeLog .. current developments +Unreleased +========== + +**Added:** None + +**Changed:** None + +**Fixed:** + +* Build wheel with platform name. + +**Deprecated:** None + +**Removed:** None + +**Security:** None + Version 0.25 (25, Mar, 2018) ============================ -**Added**: +**Added:** * Test on Python 3.5 and Python 3.6 * Test on Windows using AppVeyor * Mesure test coverage and monitor on coveralls.io -**Changed:**: +**Changed:** * Move dictionary data to pykakasi/data * Build dictionary when setup.py build * Recoomend installation from github source not pypi. (#17) -**Deprecated:** None - -**Removed:** None - -**Fixed:**: +**Fixed:** * kakasi.py: Fix exception class name typo of InvalidFlagValueException * kakasi.py, h2a.py, k2a.py: Do not import all exception class. * test_genkanwadict.py: Multi platform support for temp directory(#27). * setup.py: change _pre_build() to pre_build() (#17). -**Security:** None - Version 0.23 (25, May, 2014) =============================