diff --git a/.gitignore b/.gitignore index 20c1ae8..c0461ec 100644 --- a/.gitignore +++ b/.gitignore @@ -25,3 +25,4 @@ pip-log.txt *.wpu *.wpr .pypirc +rdatasets/_version.py diff --git a/pyproject.toml b/pyproject.toml index 7ac6ba7..61a93ff 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -10,8 +10,7 @@ include-package-data = true where = ["rdatasets"] [tool.setuptools.package-data] -rdatasets = ["*.compress", "*.pickle"] -"rdatasets._data" = ["*.compress", "*.pickle"] +"*" = ["*.compress", "*.pickle"] [project] name = "rdatasets" diff --git a/rdatasets/__init__.py b/rdatasets/__init__.py index d0ff9f8..6dc3c36 100644 --- a/rdatasets/__init__.py +++ b/rdatasets/__init__.py @@ -2,7 +2,7 @@ # See LICENSE for license details. -from .data import data, descr, get_data_path, items, packages, summary +from .rdatasets import data, descr, get_data_path, items, packages, summary -__all__ = [s for s in dir() if not s.startswith('_')] +__all__ = ['packages', 'items', 'data', 'get_data_path', 'descr', 'summary'] diff --git a/rdatasets/data.py b/rdatasets/rdatasets.py similarity index 97% rename from rdatasets/data.py rename to rdatasets/rdatasets.py index 99c2cf3..a0fa0d4 100644 --- a/rdatasets/data.py +++ b/rdatasets/rdatasets.py @@ -7,8 +7,6 @@ import pandas as pd -__all__ = ['packages', 'items', 'data', 'get_data_path', 'descr', 'summary'] - def packages(): """Show all package names.""" diff --git a/tests/__init__.py b/tests/__init__.py new file mode 100644 index 0000000..e69de29