Skip to content

Commit

Permalink
Make ralph working on Python 3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
mkurek committed Jul 25, 2018
1 parent 6731489 commit ecf15ba
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -35,7 +35,7 @@ cache:

python:
- "3.4"
# - "3.5" # temporary removed to speedup build (python3.4 should be now used on production)
- "3.6"

before_install:
- pip install flake8==3.0.4 isort==4.2.5
Expand Down
2 changes: 1 addition & 1 deletion requirements/base.txt
Expand Up @@ -16,7 +16,7 @@ django-transaction-hooks==0.2 # it's merged to Django 1.9 - remove this when Dj
djangorestframework==3.2.2
djangorestframework_xml==1.2.0
drf-nested-routers==0.11.1
mysqlclient==1.3.6
mysqlclient==1.3.13
netaddr==0.7.18
python-dateutil==2.4.2
pytz==2015.4
Expand Down
2 changes: 2 additions & 0 deletions src/ralph/data_importer/mixins.py
Expand Up @@ -20,6 +20,8 @@ def __new__(cls, name, bases, attrs):
Add additional fields to the export_class.fields with *_str
for display ForeignKey fields.
"""
# https://bugs.python.org/issue29270
attrs.pop('__classcell__', None)
new_class = super().__new__(cls, name, bases, attrs)
# Generate second class only for export which has added
# additional *_str fields
Expand Down

0 comments on commit ecf15ba

Please sign in to comment.