-
Notifications
You must be signed in to change notification settings - Fork 30
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
📦 Get rid of pbr in packaging #76
Conversation
Replace calling FWIW, I can fix the CI if you want. I was going to rework the workflow anyway. |
setup.py
Outdated
@@ -3,7 +3,7 @@ | |||
from setuptools import setup | |||
|
|||
setup( | |||
setup_requires=['pbr'], | |||
setup_requires=['pbr', 'setuptools'], |
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 is deprecated and must be in pyproject.toml
's [build-system]
.
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.
Done.
68cf0dc
to
4467030
Compare
pyproject.toml
Outdated
] | ||
|
||
[build-system] | ||
requires = ["setuptools>=64", "setuptools_scm>=8"] |
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.
setuptools-scm
won't work like this. You have to opt in by adding [tool.setuptools_scm]
and allowing the version to be dynamic.
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.
Yeah I wanted to turn on the dynamic
stuff too. Thanks for doing it!
pyproject.toml
Outdated
version = "0.3.0" | ||
description = "Use requests to talk HTTP via a UNIX domain socket" | ||
readme = "README.md" | ||
requires-python = ">=3.8" |
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.
A lot of people have already dropped 3.8 because it's EOL: https://endoflife.date/python
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.
OK I went ahead and dropped it too in d3cbf96.
Also, the support for Git archives versioning needs to be enabled with two more files: https://setuptools-scm.rtfd.io/en/latest/usage/#git-archives |
Aside from the messy history, I think this is looking good. Thanks :) |
"version", | ||
] | ||
|
||
[[project.authors]] |
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.
FYI, there's also [[project.maintainers]]
that can be filled with multiple entries as well.
[project] | ||
name = "requests-unixsocket" | ||
description = "Use requests to talk HTTP via a UNIX domain socket" | ||
requires-python = ">= 3.9" |
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.
I'd rather keep the entries ordered in this section (mostly).
.github/workflows/tests.yml
Outdated
# Install pytest (you can use some other testing utility) | ||
- name: Install deps | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements.txt -r test-requirements.txt | ||
# Run the tests. I'm using pytest and the file is in the tests directory. | ||
# Install the package using the setup.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.
Well, that's just not true anymore. First of all, it's used for building and not installing (pip install
would just unzip the wheel for installing). And second, it's being deleted 🤷♂️
I think, I'd split out a few things and clean the commits unless somebody wants to go with merging it as is... |
Go ahead and clean up as you see fit! Thanks! |
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.
The code looks good-enough to me. So if @webknjaz is going to rework the history I'm good :)
d3cbf96
to
0450eab
Compare
This patch additionally enables support for `git archive`s [[1]]. [1]: https://setuptools-scm.readthedocs.io/en/latest/usage/#git-archives Co-Authored-By: Sviatoslav Sydorenko <[email protected]>
Co-Authored-By: Sviatoslav Sydorenko <[email protected]>
0450eab
to
1ffca8e
Compare
Looks like one of the tests is unreliable, by the way: https://github.com/msabramo/requests-unixsocket/actions/runs/12663395181/job/35289911221. |
Filed #81 for the release work. |
No description provided.