-
Notifications
You must be signed in to change notification settings - Fork 31
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
Fixed setup.py and setup.cfg #39
Conversation
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.
LGTM in general. A couple of minor questions though:
fb65e81
to
f7e0c9b
Compare
Can you clarify what is the purpose of this PR? There's no description, and title is as ambiguous as it can get:
What is/was wrong with setup.py/setup.cfg so it required fixing? |
Also I wonder if it is acceptible to make |
690a174
to
1d01b14
Compare
For me, this fixed being able to install with poetry.
I did have to rename the branch though since it is named the same as a file in the repo.
Clone of this PR with a different branch name.
|
please don't use |
@higherorderfunctor Although I don't agree with @KOLANICH's opinion of Poetry, if it fails to parse a setup.cfg with
That is also a bug in Poetry - it's perfectly legal to have a Git branch name that is identical to the name of a file in that branch. I'd encourage you to report both of these bugs on the Poetry issue tracker: https://github.com/python-poetry/poetry/issues |
2570120
to
135a031
Compare
I believe you have to add -- to the checkout command to disambiguate file vs branch. Poetry isn't doing this and as far as I know there is no way to inject this (I would agree this is a bug). |
4ee084e
to
40e0244
Compare
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.
Well, this PR now does something completely different than before... This isn't "fixing" setup.py and setup.cfg, it's replacing them entirely with a pyproject.toml-based configuration.
Unfortunately, at this point, this is a complete non-starter for us. According to the setuptools documentation about pyproject.toml
configuration:
✏️ Note
New in 61.0.0 (experimental)
⚠️ WarningSupport for declaring project metadata or configuring
setuptools
viapyproject.toml
files is still experimental and might change (or be removed) in future releases.
We shouldn't rely on an experimental unstable feature that's not even a month old, unless there's a very good reason for it, and I'm not seeing that here - the current setup.py/setup.cfg work just fine.
Regardless of whether the feature is stable or not, requiring a new setuptools version is also a problem for Python version compatibility. setuptools 61.0.0 requires at least Python 3.7 (59.7.0 dropped support for older Python versions). Kaitai Struct still supports Python 3.4 and 2.7, so we can't require anything newer than setuptools 43.0.0 (from late 2019), the last version to support Python 3.4.
feels like bullshit. PEP 621 is accepted, had been long a goal for
I wonder if we can backport the latest |
Also |
But why - what would be the point? Why not just use something established and stable? It makes no sense to me. |
|
Anyway, I revert back to |
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.
These changes all make sense IMO. Just one suggestion:
5858f14
to
b50f830
Compare
Most of JS-based functionality of GitHub is broken for me by now. |
Co-Authored-by: dgelessus <dgelessus@users.noreply.github.com>
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.
Thanks!
No description provided.