Skip to content

Commit

Permalink
removed py2 building of wheel
Browse files Browse the repository at this point in the history
  • Loading branch information
tmbo committed Jan 23, 2019
1 parent 9181d33 commit ba9f40c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 12 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# Rasa NLU
[![Join the forum at https://forum.rasa.com](https://img.shields.io/badge/forum-join%20discussions-brightgreen.svg)](https://forum.rasa.com/?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![PyPI version](https://badge.fury.io/py/rasa_nlu.svg)](https://badge.fury.io/py/rasa_nlu)
[![Supported Python Versions](https://img.shields.io/pypi/pyversions/rasa_nlu.svg)](https://pypi.python.org/pypi/rasa_nlu)
[![Build Status](https://travis-ci.com/RasaHQ/rasa_nlu.svg?branch=master)](https://travis-ci.com/RasaHQ/rasa_nlu)
[![Coverage Status](https://coveralls.io/repos/github/RasaHQ/rasa_nlu/badge.svg?branch=master)](https://coveralls.io/github/RasaHQ/rasa_nlu?branch=master)
[![PyPI version](https://badge.fury.io/py/rasa_nlu.svg)](https://badge.fury.io/py/rasa_nlu)
[![Documentation Status](https://img.shields.io/badge/docs-stable-brightgreen.svg)](https://nlu.rasa.com/)
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2FRasaHQ%2Frasa_nlu.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2FRasaHQ%2Frasa_nlu?ref=badge_shield)

Expand Down
3 changes: 1 addition & 2 deletions rasa_nlu/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,8 @@ def decorated(*args, **kwargs):


def decode_parameters(request):
"""Make sure all the parameters have the same encoding.
"""Make sure all the parameters have the same encoding."""

Ensures py2 / py3 compatibility."""
return {
key.decode('utf-8', 'strict'): value[0].decode('utf-8', 'strict')
for key, value in request.args.items()}
Expand Down
6 changes: 1 addition & 5 deletions rasa_nlu/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,14 +347,10 @@ def configure_colored_logging(loglevel):
def pycloud_unpickle(file_name):
# type: (Text) -> Any
"""Unpickle an object from file using cloudpickle."""
from future.utils import PY2
import cloudpickle

with io.open(file_name, 'rb') as f: # pragma: no test
if PY2:
return cloudpickle.load(f)
else:
return cloudpickle.load(f, encoding="latin-1")
return cloudpickle.load(f, encoding="latin-1")


def pycloud_pickle(file_name, obj):
Expand Down
4 changes: 0 additions & 4 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,3 @@ pep8ignore =
[metadata]
description-file = README.md
license_file = LICENSE.txt

[bdist_wheel]
# this will create a universal wheel for all distributions and py2 & py3
universal=1

0 comments on commit ba9f40c

Please sign in to comment.