Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Convertsetup.py topyproject.toml#5

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation

hugovk
Copy link
Member

Fixes#4.

I used two tools for this:

I used the first to convertsetup.py tosetup.cfg, and the second fromsetup.cfg topyproject.toml, something like this:

pip install setuptools-py2cfg ini2tomlsetuptools-py2cfg setup.py> setup.cfgini2toml setup.cfg> pyproject.tomlrm setup.*

Next, I added a few more pre-commit hooks, one to formatpyproject.toml to make it easy to compare against other projects, and some others to check TOML and YAML files.

Then to check the output is okay, I ran:

pip install buildpython -m build

Which creates an sdist and wheel in thedist directory. I compared the output frommaster and from this branch, and there were no unexpected differences.

We're still using setuptools here as the "build backend", which is just fine. We can also easily change it to others too. I tend to use hatchling, but it doesn't make too much difference.

@egeakman
Copy link
Member

Thanks Hugo!

@egeakmanegeakman added the enhancementNew feature or request labelNov 7, 2023
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
@egeakmanegeakman merged commit4f8193f intopython-docs-translations:masterNov 8, 2023
@hugovkhugovk deleted the setup.py-to-pyproject.toml branchNovember 8, 2023 20:46
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@egeakmanegeakmanegeakman approved these changes

Assignees
No one assigned
Labels
enhancementNew feature or request
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Use the latest packaging method instead of setup.py
2 participants
@hugovk@egeakman

[8]ページ先頭

©2009-2025 Movatter.jp