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

Add typing and configparser dependencies for python versions that need it #572

Merged
merged 2 commits into from
Jun 23, 2020

Conversation

jairideout
Copy link
Contributor

What does this PR do?

Fixes import errors when using datadog wheel build with Python versions older than 3.5.

Fixes #571

Description of the Change

Adds explicit typing and configparser dependencies regardless of Python version, in order to allow a single py2.py3 wheel build to work correctly.

Alternate Designs

An alternative solution is to create multiple wheel builds for Python < 3.5 and Python >= 3.5. This solution seemed simpler and doesn't require the build/release process to change.

Possible Drawbacks

There are two more lightweight dependencies that aren't actually necessary for Python 3.5+ installations.

Verification Process

I reproduced the import errors described in #571, and saw that they were fixed by installing typing and configparser. I added the two new dependencies to setup.py and ran the unit and integration tests in Python 2.7 and 3.8. Finally, I created a wheel build and tested it in Python 2.7 and 3.5.

Additional Notes

N/A

Release Notes

N/A

Review checklist (to be filled by reviewers)

  • Feature or bug fix MUST have appropriate tests (unit, integration, etc...)
  • PR title must be written as a CHANGELOG entry (see why)
  • Files changes must correspond to the primary purpose of the PR as described in the title (small unrelated changes should have their own PR)
  • PR must have one changelog/ label attached. If applicable it should have the backward-incompatible label attached.
  • PR should not have do-not-merge/ label attached.
  • If Applicable, issue must have kind/ and severity/ labels attached at least.

…ython version.

Fixes import errors when using `datadog` wheel build with Python versions older than 3.5.

Fixes DataDog#571
@jairideout jairideout requested a review from a team as a code owner June 22, 2020 21:49
@zippolyte zippolyte added the changelog/Fixed Fixed features results into a bug fix version bump label Jun 23, 2020
@zippolyte
Copy link
Contributor

/azp run DataDog.datadogpy.integration

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

setup.py Outdated Show resolved Hide resolved
Co-authored-by: Jiri Kuncar <jiri.kuncar@gmail.com>
@zippolyte
Copy link
Contributor

/azp run DataDog.datadogpy.integration

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@zippolyte zippolyte changed the title Add explicit typing and configparser dependencies regardless of Python version Add typing and configparser dependencies for python versions that need it Jun 23, 2020
@zippolyte zippolyte merged commit 9027ccf into DataDog:master Jun 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog/Fixed Fixed features results into a bug fix version bump
Projects
None yet
Development

Successfully merging this pull request may close these issues.

datadog 0.37.0 wheel import error for Python < 3.5
3 participants