diff --git a/.gitignore b/.gitignore index 10800e13c..cb12fb218 100644 --- a/.gitignore +++ b/.gitignore @@ -117,3 +117,6 @@ core.* # Editor specific .vscode + +# Compiled Cython +src/snowflake/connector/arrow_iterator.cpp diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9f8cf4cee..4bc7c43cc 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -65,3 +65,7 @@ repos: - id: flake8 additional_dependencies: - flake8-bugbear == 20.11.1 +- repo: https://github.com/mgedmin/check-manifest + rev: "0.47" + hooks: + - id: check-manifest diff --git a/MANIFEST.in b/MANIFEST.in index 171502207..874058246 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,6 +1,21 @@ include *.md +include *.rst include LICENSE.txt include NOTICE include pyproject.toml recursive-include src/snowflake/connector py.typed *.py *.pyx +recursive-include src/snowflake/connector/vendored LICENSE* + recursive-include src/snowflake/connector/cpp *.cpp *.hpp +exclude src/snowflake/connector/arrow_iterator.cpp + +exclude .git-blame-ignore-revs +exclude .pre-commit-config.yaml +exclude license_header.txt +exclude tox.ini + +prune ci +prune benchmark +prune test +prune tested_requirements +prune src/snowflake/connector/cpp/scripts diff --git a/setup.py b/setup.py index efdfeed31..76554cf37 100644 --- a/setup.py +++ b/setup.py @@ -226,14 +226,7 @@ def _get_arrow_lib_as_linker_input(self): package_dir={ "": "src", }, - package_data={ - "snowflake.connector": [ - "*.md", - "LICENSE.txt", - "NOTICE", - "src/snowflake/connector/py.typed", - ], - }, + include_package_data=True, entry_points={ "console_scripts": [ "snowflake-dump-ocsp-response = "