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

Replaced setup.py with setup.cfg + pyproject.toml #15

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

KOLANICH
Copy link

@KOLANICH KOLANICH commented Dec 1, 2021

In fact setup.py can be removed, but it should be a separate commit

@@ -0,0 +1,5 @@
[build-system]
requires = ["setuptools>=44", "wheel", "setuptools_scm[toml]>=3.4.3"]
Copy link
Owner

Choose a reason for hiding this comment

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

I'm not that familiar with pyproject.toml yet, but what is that setuptools_scm[toml]>=3.4.3 for? It's not listed at https://packaging.python.org/tutorials/packaging-projects/#creating-pyproject-toml

Copy link
Author

@KOLANICH KOLANICH Dec 3, 2021

Choose a reason for hiding this comment

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

It is needed to fetch version from git tags. The version restriction and toml extra is because we configure it via pyproject.toml (every tool has to read pyproject.toml itself).

setup.cfg Outdated Show resolved Hide resolved
@soxofaan
Copy link
Owner

soxofaan commented Dec 2, 2021

In fact setup.py can be removed, but it should be a separate commit

why should it be in a separate commit?

An do you mean just a separate git commit? Or does there also have to be a build/release in between?

@KOLANICH
Copy link
Author

KOLANICH commented Dec 3, 2021

why should it be in a separate commit?

It is a breaking change. Versions of pip before the one that has landed this year (it was I who has fixed that bug) cannot do editable installs on setup.py-less projects (but regular ones work for pretty long time). Having it in a separate commit allows to easily undo that commit (first git format-patch, then patch) for people stuck with obsolete versions of pip.

Or does there also have to be a build/release in between?

I meant a git commit, but it is usually good to introduce separate releases for breaking changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants