Skip to content

Commit

Permalink
Fix tests, bump version, universal wheel
Browse files Browse the repository at this point in the history
  • Loading branch information
pudo committed Nov 6, 2017
1 parent 2c6bc67 commit 14d1c65
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions followthemoney/mapping/property.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import re
from copy import deepcopy
from normality import stringify
from banal import unique_list, ensure_list

Expand All @@ -9,6 +10,7 @@ class PropertyMapping(object):
FORMAT_PATTERN = re.compile('{{([^(}})]*)}}')

def __init__(self, mapper, data, schema):
data = deepcopy(data)
self.mapper = mapper
self.data = data
self.schema = schema
Expand Down
2 changes: 2 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[bdist_wheel]
universal=1
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name='followthemoney',
version='0.2.3',
version='0.3.0',
long_description="Data model and validator for investigative graph data.",
author='Organized Crime and Corruption Reporting Project',
author_email='[email protected]',
Expand Down
4 changes: 3 additions & 1 deletion tests/test_mapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ def test_kek_sqlite(self):

def test_local_csv_load(self):
url = 'file://' + os.path.join(self.fixture_path, 'experts.csv')
mapping = {'csv_url': url}
mapping = {
'csv_url': url
}
with self.assertRaises(InvalidMapping):
list(model.map_entities(mapping))
mapping['entities'] = {
Expand Down

0 comments on commit 14d1c65

Please sign in to comment.