-
Notifications
You must be signed in to change notification settings - Fork 7
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
Modernize setup to use pyproject.toml #116
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.
Couple of small comments.
There's still a few references to setup.py
in the codebase to factor out too.
Would be good to see this repo harmonise with https://github.com/octoenergy/cookiecutter-kraken-package - we could backport some of the docs set-up to there.
acb31c5
to
4ec5f5e
Compare
This does the following: - Combines setup.py, setup.cfg into pyproject.toml - Configures documentation site - Fully executes on the formatting changes we thought we had introduced when we migrated to ruff
Version now tracked and pull from pyproject.toml
4ec5f5e
to
59df684
Compare
As these have been replaced by ruff now.
Copying the approach from the CookieCutterPackage repo.
As this is more useful than having the CI job abort after the first fail.
To run the simplest jobs first.
As it's not really useful.
@@ -16,22 +16,6 @@ repos: | |||
stages: [commit] | |||
- id: trailing-whitespace # Trims trailing whitespace. | |||
|
|||
|
|||
- repo: https://github.com/timothycrosley/isort |
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.
General comment: Thanks for the catch on pre-commit. My VSCode doesn't search in this file. Need to fix that.
@@ -7,28 +7,22 @@ jobs: | |||
steps: |
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.
General comment: Looking at this I like the bold changes. I think I get too timid with these kinds of chores, trying to keep them tiny in scope.
@@ -17,12 +17,16 @@ jobs: | |||
- run: | |||
name: Test | |||
command: make test | |||
when: always |
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.
TIL
aad3bb2
to
6f7b478
Compare
"License :: OSI Approved :: MIT License", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", |
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.
We should add support for Python 3.12 at some point too.
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.
Agreed, created #121.
Note: Even though the project in theory had been converted to ruff for linting and formatting, this PR uncovered that some modules were formatted with it and others were not. Hence the volume of files changed.
Why main, dev, and docs for dependencies?
project.dependencies
setting and is the PyPI deployed project expects