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

build: added pyproject.toml #1621

Merged
merged 3 commits into from
Jul 26, 2023
Merged

build: added pyproject.toml #1621

merged 3 commits into from
Jul 26, 2023

Conversation

teto
Copy link
Contributor

@teto teto commented May 21, 2023

The 'setup.py' approach is hardly automatable, which is why the python ecosystem currently discourage it peps.python.org/pep-0518 . The pyproject.toml can be parsed by 3rd-party tools while addressing shortcomings of setup.py (can create a sandbox a la pipenv).

poetry install

@pazz
Copy link
Owner

pazz commented May 22, 2023

nice, cheers!
Would you mind updating the docs also?

@teto
Copy link
Contributor Author

teto commented May 22, 2023

sure, do you mean the "contributing" section about running tests ? any other places you have in mind
what about the setup.py ? shall it be kept during the transition to smooth things out ( I think so) ?

@pazz
Copy link
Owner

pazz commented May 22, 2023 via email

Matthieu Coudron added 3 commits June 3, 2023 23:36
The 'setup.py' approach is hardly automatable, which is why the python ecosystem currently discourage it peps.python.org/pep-0518 . The pyproject.toml can be parsed by 3rd-party tools while addressing shortcomings of setup.py (can create a sandbox a la pipenv).

`poetry install`
we need python3-dev (for pyconf.h) and swig for the python gpg dependency
 I was able to generate the doc via 'poetry run make -C docs html'
@teto
Copy link
Contributor Author

teto commented Jun 3, 2023

I haven't updated the instructions to generate the documentation since poetry run make -C docs html is kinda different than the current approach. Let me know if it's ok to add sphinx as a dev dependency else I will remove the last commit

@pazz
Copy link
Owner

pazz commented Jun 14, 2023

I am not at all familiar with poetry and don't really have the time to read up.
I am not generally opposed but since everyone and their cat has their own distribution system these days I'd tend to be careful with adding support requirements to the main repository.
Is there anyone who'd second this addition?

About the sphinx docs: when you build them this way, is this also generating the list of commands correctly? These are separate scripts in our doc build process..

@pazz pazz merged commit 2e0dba3 into pazz:master Jul 26, 2023
@teto teto deleted the poetry branch July 26, 2023 13:14
@teto
Copy link
Contributor Author

teto commented Jul 26, 2023

thank you sorry I was not sure how to answer. If you have trouble with the recent merge let me know and I'll try to address the issues.

@pazz
Copy link
Owner

pazz commented Jul 26, 2023 via email

@teto
Copy link
Contributor Author

teto commented Jul 28, 2023

Do you have an opinion about how to deal with the bot-suggested version
bumps? Can we simply allow them in? It looks alright to me..

which one ?

@teto
Copy link
Contributor Author

teto commented Jul 28, 2023

ha this #1623 ? probably fine

@pazz
Copy link
Owner

pazz commented Jul 28, 2023 via email

@teto
Copy link
Contributor Author

teto commented Jul 28, 2023

This PR didnt change the settings so it must have preexisted. Feel free to disable dependabot in gitlab settings. We can accept those automated PRs only if we are confident in the testuite but it seems we run none :s

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.

2 participants