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

Update to using pyproject.toml #11

Merged
merged 4 commits into from
Oct 18, 2023
Merged

Conversation

edsu
Copy link
Contributor

@edsu edsu commented Oct 16, 2023

It seems like the Python community is moving towards using pyproject.toml files to manage package and project information. This commit adds a pyproject.toml, removes the setup.py and and adds some instructions for running the tests with poetry. The github CI action was also updated.

It seems like the Python community is moving towards using
pyproject.toml files to manage package and project information. This
commit adds a pyproject.toml, removes the setup.py and and adds some
instructions for running the tests with poetry. The github CI action was
also updated.
@Florents-Tselai
Copy link
Owner

Thanks for this, I wanted to do this, too;
Could you please check the failing checks?
Also, I'd like to make the package versions as lenient as possible.
E.g. requiring python 3.11 I think is too much.

Allow Python v3.9 and higher to be used, and unpin dependencies for
flexibility. Also, the GitHub action was updated so that it does the
poetry install step, which is needed to install dependencies and to run
pytest.
@edsu
Copy link
Contributor Author

edsu commented Oct 17, 2023

@Florents-Tselai good idea about loosening the versions and allowing older pythons. I just updated the PR to allow for pythons >= 3.9 (will that be enough, or should we go lower?). I also unpinned the dependencies to see if that will work going forward. I think I mostly just copied the requirement versions from the setup.py, but I liked the idea of leaving them looser, especially for getting newer/better versions of things as they become available.

And I think I fixed the CI build, I had forgotten to install dependencies!

@Florents-Tselai Florents-Tselai merged commit e5f7446 into Florents-Tselai:main Oct 18, 2023
1 check passed
@edsu edsu deleted the pyproject branch October 18, 2023 11:56
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