Skip to content

Commit

Permalink
Fix pip install datadotworld[pandas] (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
rflprr authored Jun 2, 2017
1 parent 3836077 commit d86c667
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@ jobs:
name: Release to pypi
command: |
if [[ "${CIRCLE_BRANCH}" =~ ^(${RELEASE_BRANCH})$ ]]; then
python setup.py sdist --formats=gztar
python setup.py sdist bdist_wheel
twine upload -u $PYPI_USERNAME -p $PYPI_PASSWORD dist/*
fi
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1 +1 @@
include *.md
include README.rst LICENSE.txt
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ You can install it using ``pip`` directly from PyPI::

Optionally, you can install the library including pandas support::

pip install datadotworld[PANDAS]
pip install datadotworld[pandas]

Configure
---------
Expand Down
2 changes: 1 addition & 1 deletion datadotworld/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
from datadotworld.config import FileConfig, ChainedConfig
from datadotworld.datadotworld import DataDotWorld

__version__ = '1.2.1'
__version__ = '1.2.2'

# Convenience top-level functions

Expand Down
2 changes: 1 addition & 1 deletion datadotworld/models/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def _load_dataframe(self, resource_name):
import pandas
except ImportError:
raise RuntimeError('To enable dataframe support, '
'run \'pip install datadotworld[PANDAS]\'')
'run \'pip install datadotworld[pandas]\'')

tabular_resource = self.__tabular_resources[resource_name]
field_dtypes = fields_to_dtypes(tabular_resource.descriptor['schema'])
Expand Down
2 changes: 1 addition & 1 deletion datadotworld/models/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,6 @@ def dataframe(self):
import pandas as pd
except ImportError:
raise RuntimeError('To enable dataframe support, '
'run \'pip install datadotworld[PANDAS]\'')
'run \'pip install datadotworld[pandas]\'')

return pd.DataFrame.from_records(self.table, coerce_float=True)
8 changes: 7 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,10 @@
test=pytest

[bdist_wheel]
universal=1
universal=1

[metadata]
provides-extra =
pandas
requires-dist =
pandas<1.0a; extra == 'pandas'
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def find_version(*paths):
'pandas<1.0a',
],
extras_require={
'PANDAS': [
'pandas': [
'pandas<1.0a',
],
},
Expand Down

0 comments on commit d86c667

Please sign in to comment.