-
Notifications
You must be signed in to change notification settings - Fork 382
build: migrate from setup.py to pyproject.toml #1458
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
base: main
Are you sure you want to change the base?
Conversation
for more information, see https://pre-commit.ci
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks a great start. All the tests are failing, probably because of the new test. Can change in the GitHub actions configuration be change to increase the version of Python to be used?
[project] | ||
name = "jupyter-repo2docker" | ||
dynamic = ["version"] | ||
description = "Repo2docker: Turn code repositories into Jupyter enabled Docker Images" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replace Repo2docker
with repo2docker
|
||
|
||
[tool.setuptools_scm] | ||
# 这个配置会让 setuptools-scm 自动创建一个 my_awesome_project/_version.py 文件, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove comments
@@ -0,0 +1,18 @@ | |||
import tomllib |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tomllib
requires Python 3.11. This might be the reason that all tests are failing.
try: | ||
with open("pyproject.toml", "rb") as f: | ||
tomllib.load(f) | ||
print("✅ TOML语法正确") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can the Chinese text be translated into English?
This improves dependency management, IDE support, and aligns with current Python packaging standards.