Improve and refactor noxfile to prepare for translation commands #379
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull Request
Pull Request Checklist
Description of Changes
Followup to #377
As I started to work through adding the relevant translation commands, I ended up finding a number of additional limitations, corner-case bugs and structural or needing to make a number of significant improvements, fixes and refactorings to the noxfile along the way. To keep things atomic and moving along and avoid jamming large and non-directly-related changes (e.g. adding the whole po-file structure and building that I have locally) into one big PR, I've split out these into a separate one that can (hopefully) get merged quickly prior to me dropping the translations PR that I'm working on in parallel.
Additionally, these improvements also further improve the noxfile's suitability to be easily re-used for many other Spyder projects, with only relatively small and self-contained modifications.
In particular, the main changes here:
nox -s build
and split the Build section into separate, easier to follow parts just for Nox and manual installations respectively, as well as other smaller fixesnox -s clean
so it actually works and add --ignore option to itnox -s install
so users can pass extra args to pip, e.g.--upgrade
to upgrade the Nox environment to the latest versions of the dependencies