Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include py.typed in MANIFEST.in #5703

Merged
merged 1 commit into from
Sep 7, 2022
Merged

Include py.typed in MANIFEST.in #5703

merged 1 commit into from
Sep 7, 2022

Conversation

panasenco
Copy link
Contributor

@panasenco panasenco commented Aug 23, 2022

This enables packages that install dbt-core from pypi to use mypy.

Resolves #5737

Description

Currently when developing a dbt adapter and installing dbt-core with pip, I get errors like the following when trying to run mypy:

error: Skipping analyzing "dbt.contracts.connection": module is installed, but missing library stubs or py.typed marker
error: Skipping analyzing "dbt.events": module is installed, but missing library stubs or py.typed marker

This is because the file py.typed is not included in the package uploaded to pypi.

The PR aims to include the file in the official dbt-core package to allow type checking in packages that depend on it.

I tested a local install and the file py.typed is now included in the dbt folder.

Checklist

@panasenco panasenco requested a review from a team as a code owner August 23, 2022 18:19
@cla-bot cla-bot bot added the cla:yes label Aug 23, 2022
This enables packages that install dbt-core from pypi to use mypy.
@jtcohen6
Copy link
Contributor

@panasenco Thanks for the PR! Would you just mind opening an issue to associate with it? The description you included above is sufficient

@panasenco
Copy link
Contributor Author

@panasenco Thanks for the PR! Would you just mind opening an issue to associate with it? The description you included above is sufficient

Done! #5737

@leahwicz leahwicz added the ready_for_review Externally contributed PR has functional approval, ready for code review from Core engineering label Sep 6, 2022
@leahwicz leahwicz closed this Sep 7, 2022
@leahwicz leahwicz reopened this Sep 7, 2022
@leahwicz
Copy link
Contributor

leahwicz commented Sep 7, 2022

Re-triggering Snyk CI

@leahwicz leahwicz merged commit e95e36d into dbt-labs:main Sep 7, 2022
agoblet pushed a commit to BigDataRepublic/dbt-core that referenced this pull request Sep 16, 2022
This enables packages that install dbt-core from pypi to use mypy.
agoblet pushed a commit to BigDataRepublic/dbt-core that referenced this pull request Sep 16, 2022
This enables packages that install dbt-core from pypi to use mypy.
josephberni pushed a commit to Gousto/dbt-core that referenced this pull request Sep 16, 2022
This enables packages that install dbt-core from pypi to use mypy.
bneijt added a commit to BigDataRepublic/dbt-core that referenced this pull request Jun 23, 2023
add noop and warn tests

improve tests

rename tests

add view dropping test

add unmanaged schema test

make tests more dry

Delete tmp.csv

Manage schemas is optional

Add --target-path as a CLI option. (dbt-labs#5402)

Include py.typed in MANIFEST.in (dbt-labs#5703)

This enables packages that install dbt-core from pypi to use mypy.

wip: move manage logic to separate command

Add manage command
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla:yes ready_for_review Externally contributed PR has functional approval, ready for code review from Core engineering
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CT-1106] [Bug] Include py.typed in MANIFEST.in
3 participants