diff --git a/Makefile b/Makefile index 5c4e5176..344b987e 100644 --- a/Makefile +++ b/Makefile @@ -20,16 +20,25 @@ black: black examples docs pandagg tests setup.py develop: - -python -m pip install -e . + -python -m pip install -e ".[develop]" doc-references: -make -C docs api-doc tests: - pytest + pytest coverage: coverage run --source=./pandagg -m pytest coverage report -check: black doc-references +check: doc-references black lint + +create_dist: check + python setup.py sdist bdist_wheel + +test_dist: create_dist + twine upload -r testpypi dist/* + +upload_dist: + twine upload dist/* diff --git a/pandagg/node/aggs/abstract.py b/pandagg/node/aggs/abstract.py index 0f899e3e..18b3152b 100644 --- a/pandagg/node/aggs/abstract.py +++ b/pandagg/node/aggs/abstract.py @@ -98,7 +98,9 @@ def valid_on_field_type(cls, field_type): return field_type in cls.WHITELISTED_MAPPING_TYPES if cls.BLACKLISTED_MAPPING_TYPES is not None: return field_type not in cls.BLACKLISTED_MAPPING_TYPES - return False + # by default laxist + # TODO - constraint to only allowed types + return True def to_dict(self): """ diff --git a/setup.py b/setup.py index 93e505c9..5cc40cb4 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,7 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- -__version__ = "0.2.0" +__version__ = "0.2.1" import os @@ -17,11 +17,14 @@ develop_requires = [ "pre-commit", "black", + "coverage", "flake8", "pytest", "pytest-cov", "mock", "pandas", + "Sphinx", + "twine", ] setup(