Skip to content

Commit

Permalink
SNOW-510552 fix py.typed not being included in wheels (#1011)
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-mkeller committed Dec 22, 2021
1 parent b41c765 commit 1659ec6
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 8 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Expand Up @@ -117,3 +117,6 @@ core.*

# Editor specific
.vscode

# Compiled Cython
src/snowflake/connector/arrow_iterator.cpp
4 changes: 4 additions & 0 deletions .pre-commit-config.yaml
Expand Up @@ -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
15 changes: 15 additions & 0 deletions 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
9 changes: 1 addition & 8 deletions setup.py
Expand Up @@ -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 = "
Expand Down

0 comments on commit 1659ec6

Please sign in to comment.