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

Support Python checks defined by a pyproject.toml file #11233

Merged
merged 4 commits into from
Feb 3, 2022
Merged

Conversation

ofek
Copy link
Contributor

@ofek ofek commented Jan 27, 2022

Motivation

First step toward removing setup.py

Additional Notes

Can be tested with postgres on https://github.com/DataDog/integrations-core/tree/ofek/build-test

Comment on lines 94 to 97
'toml>=0.9.4, <1.0.0',
'tomli>=2.0.0',
'tomli-w>=1.0.0',
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In a future PR we'll remove toml, hukkin/tomli#141

Comment on lines +181 to +182
# sort, and prevent backslash escapes since strings are written using double quotes
dependencies[:] = sorted(str(dependency).replace('"', "'") for dependency in dependencies)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

love it!

@github-actions
Copy link

The validations job has failed; please review the Files changed tab for possible suggestions to resolve.

Copy link
Contributor

@sarah-witt sarah-witt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great and works well! I left a few nits

Co-authored-by: Sarah Witt <sarah.witt@datadoghq.com>
sarah-witt
sarah-witt previously approved these changes Feb 3, 2022
Copy link
Contributor

@sarah-witt sarah-witt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did some more testing and it looks good! Maybe one more thing we can do before migrating is update the package validation to validate more fields such as [tool.hatch.version]

Copy link
Contributor

@sarah-witt sarah-witt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

@ofek ofek merged commit 0263d56 into master Feb 3, 2022
@ofek ofek deleted the ofek/build branch February 3, 2022 22:15
github-actions bot pushed a commit that referenced this pull request Feb 3, 2022
* Support Python checks defined by a `pyproject.toml` file

* Apply suggestions from code review

Co-authored-by: Sarah Witt <sarah.witt@datadoghq.com>

* address

Co-authored-by: Sarah Witt <sarah.witt@datadoghq.com> 0263d56
This was referenced Feb 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants