-
Notifications
You must be signed in to change notification settings - Fork 4
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
Use standard pyproject.toml #57
Conversation
Thanks for the PR! Are you already working on getting the checks to pass or should I look into it? |
Thanks @hofaflo. I tried to modify |
So what I'm saying is that I don't know how to specify using a pre-release NumPy... |
I guess this will require using the |
@hofaflo a test is failing because of a user warning. Did I miss something? I don't think this is related to the changes in this PR. |
Regarding building the docs, I'm not sure how you would like to declare |
We're testing with the oldest and newest supported NumPy version for each Python version. If I understand correctly, for
This is probably because
Simplifying this example from the RTD docs a bit, maybe something like commands:
- pip install uv
- uv run --extra dev python -m sphinx -T -b html -d docs/_build/doctrees -D language=en docs/source $READTHEDOCS_OUTPUT/html |
Hmmm, not sure why the test are not being triggered now? |
Never mind, I found it. |
Do you want to bump any dev packages while I'm at it @hofaflo? |
No thanks, I think that would fit better in a separate PR. Could you update the section "Development environment" accordingly? E.g. to something like this: We suggest to use [`uv`](https://docs.astral.sh/uv/getting-started/installation/) for managing project dependencies, but any other standard-compliant tool will work too.
Create a virtual environment with Python 3.9 and install all dependencies:
uv sync --python=3.9 --all-extras
**When using `uv`, prepend the commands below with `uv run` to make sure they are executed in the virtual environment!** We'll need to replace publish:
needs: test
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
with:
lfs: true
- name: Setup uv
uses: astral-sh/setup-uv@v3
- name: Publish to PyPI
run: |
uv build
uv publish Finally, we should remove remaining mentions of |
Great, will do! Finally, do you think we can skip
and instead use
? |
And another question/heads up regarding the dynamic version. If I install the current |
PS: I'm not even sure what's going on, because |
The dynamic version is incorrect for editable installs unless the project is rebuilt (https://github.com/ofek/hatch-vcs?tab=readme-ov-file#editable-installs), so all good! However, what do you want the dev version to look like?
|
I'd like to leave this as-is to keep the step commands shorter.
Thanks for bringing this up! I think the default is more appropriate, as we aren't using release branches anyway. |
OK, I've switched to the default versioning scheme, I think this is now ready for review! |
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.
Looks perfect, thanks @cbrnr!
Fingers crossed that everything works in the release workflow! But I guess we'll find out soon... |
(Or maybe you test on test-pypi before the next release.) |
Fixes #56.