Commit Graph

65 Commits

Author SHA1 Message Date
Pradyun Gedam 147b914782
Get rid of the tools/automation folder
It was an unnecessary level added to the folder hierarchy.
2021-04-01 23:25:09 +01:00
Pradyun Gedam 1720aee672
No `--hook-stage=manual` to pre-commit in nox 2021-04-01 23:21:21 +01:00
Pradyun Gedam ac263f07b1
Add a docs-live nox session 2021-03-06 10:52:22 +00:00
Tzu-ping Chung 0b9008a8a4 Make vendoring task respond well to empty lines 2021-02-23 01:13:04 +08:00
Pradyun Gedam 51f0fb2781
Tweak and blacken noxfile.py 2021-02-21 13:03:38 +00:00
Jon Dufresne 7ffd0ca13e Complete typing of noxfile.py
Allows removing a "mypy: disallow-untyped-defs=False" comment.

To workaround a mypy bug, map(os.path.basename, distribution_files) was
changed to use a generator expression. See:
https://github.com/python/mypy/issues/9864

To verify correct usage of the nox API, it is now a dependency during
pre-commit mypy runs.

The mypy configuration "follow_imports = silent" allowed erroneous code
to pass, so it has been removed. Now, all imports must be available
during type.
2021-02-19 05:47:55 -08:00
Stéphane Bidoul fe3aec0f5e
Better way to run slow linters in CI only
Taking advantage of pre-commit's manual stage.
2021-01-24 15:39:51 +01:00
Paul Moore f5a13dc6c5 Release process now (as of 21.0) produces py3-only wheels 2021-01-23 10:38:13 +00:00
Stéphane Bidoul 41e4547542
Merge pull request #9333 from sbidoul/pre-commit-speed-sbi
Improve local pre-commit experience
2020-12-23 12:47:20 +01:00
Stéphane Bidoul ccbf085095
Improve local pre-commit experience 2020-12-21 20:10:44 +01:00
Pradyun Gedam 527550d5a7
Drop Python 2.7 and 3.5 from CI 2020-12-19 19:55:04 +00:00
Pradyun Gedam 1466e7c49a
Don't upgrade setuptools when vendoring
Signed-off-by: Pradyun Gedam <pradyunsg@users.noreply.github.com>
2020-11-28 14:48:25 +00:00
Pradyun Gedam 7c3028fa4d
Add automation for upgrading dependencies
Signed-off-by: Pradyun Gedam <pradyunsg@users.noreply.github.com>
2020-11-19 18:38:03 +00:00
Nguyễn Gia Phong da7569a440 Document and start testing Python 3.9 support
At first use it for GitHub Action for linting.
2020-10-12 17:37:23 +07:00
Pradyun Gedam cfaa08efed
Remove a sorted call
Otherwise, we'd try sorting this list twice.
2020-05-21 19:32:28 +05:30
Pradyun Gedam f5ff110df7
Apply suggestion from review comments
Co-authored-by: Nguyễn Gia Phong <mcsinyx@disroot.org>
2020-05-21 19:29:18 +05:30
Paul Moore 8d79644170 Make nox upload-release work on Windows 2020-05-21 11:32:47 +01:00
Pradyun Gedam 4d42b89713
Fix copying distribution files from checkout 2020-04-21 07:49:09 +05:30
Paul Moore e8613ffcaa Remove pip version requirement for vendoring 2020-04-14 11:03:48 +01:00
Paul Moore 8db9f5bdb6 Add a vendoring session to noxfile.py 2020-04-13 12:32:28 +01:00
Pradyun Gedam de633cdf4b
Significantly improve release version validation 2020-04-11 23:43:07 +05:30
Pradyun Gedam a8058fe9e9
Speed up `nox -s docs` 2020-03-14 00:29:04 +05:30
Pradyun Gedam 540d3aa0ec
Fix nox -s docs 2020-02-11 19:10:27 +05:30
Sviatoslav Sydorenko d772171ad9
♻ Relocate get_git_untracked_files to utils 2020-02-03 11:22:02 +01:00
Sviatoslav Sydorenko 9d592b394a
🎨 Copy and log built dists explicitly 2020-02-03 11:14:31 +01:00
Sviatoslav Sydorenko 6f1a43e4b2
Relocate helper CMs to tools.automation.release 2020-02-03 11:00:40 +01:00
Sviatoslav Sydorenko 6a0b1f2675
Refactor the untracked files check
Co-Authored-By: Pradyun Gedam <pradyunsg@gmail.com>
2020-02-03 11:00:36 +01:00
Sviatoslav Sydorenko 75f8c6d6ff
Reword has_git_untracked_files error log msg
Co-Authored-By: Pradyun Gedam <pradyunsg@gmail.com>
2020-02-03 10:53:32 +01:00
Sviatoslav Sydorenko 3306f21ed8
Drop unnecessary build dir cleanup in tmp checkout
Co-Authored-By: Pradyun Gedam <pradyunsg@gmail.com>
2020-02-03 10:53:32 +01:00
Sviatoslav Sydorenko db028e516c
Refactor isolated_temporary_checkout CM naming
Co-Authored-By: Pradyun Gedam <pradyunsg@gmail.com>
2020-02-03 10:53:32 +01:00
Sviatoslav Sydorenko daba4b4c9e
Move tmp dir logging to build_release 2020-02-03 10:53:31 +01:00
Sviatoslav Sydorenko 01c4553754
Make mk_tmp_git_checkout docstring shorter 2020-02-03 10:53:31 +01:00
Sviatoslav Sydorenko bed90abe2d
Remove `dist/` before copying the dists back 2020-02-03 10:53:29 +01:00
Sviatoslav Sydorenko 3da19325f4
Use nox.sessions.Session.chdir instead of os.chdir 2020-02-03 10:52:57 +01:00
Sviatoslav Sydorenko 63ee9b702b
Make release task build dists @ clean tmp checkout
Co-Authored-By: Pradyun Gedam <pradyunsg@gmail.com>
2020-02-03 10:52:53 +01:00
Sviatoslav Sydorenko 957fb28b30
Abort on Git-untracked files in the workdir
Allow own `.nox/` runtime env files.
2020-02-03 10:44:56 +01:00
Sviatoslav Sydorenko 231ce2e36c
Revert "🔥 Exterminate files that aren't Git-tracked"
This reverts commit 9c1a4d4c4d.
2020-02-03 10:44:56 +01:00
Sviatoslav Sydorenko 9f92d3d465
🔥 Exterminate files that aren't Git-tracked
This is a follow-up improvement for
https://github.com/pypa/pip/pull/7624/files
2020-02-03 10:44:56 +01:00
Sviatoslav Sydorenko fb2598a645 Suggest a way of cleaning dist if non-empty 2020-01-30 20:54:36 -05:00
Pradyun Gedam b9555fb9d4
Empty build directory before building distributions
Mainly to avoid pypa/wheel#147
2020-01-21 18:43:36 +05:30
Pradyun Gedam bda17b73e6
Add dist/ prefix to expected filenames 2020-01-21 18:43:36 +05:30
Pradyun Gedam 4b1c3484b0
Minor updates to noxfile.py (#7330) 2019-11-11 11:19:16 +05:30
Pradyun Gedam 22cdfd6ad1
nox: Add a command for uploading releases 2019-11-10 12:18:16 +05:30
Pradyun Gedam b94df0b570
nox: Log the correct command name in error 2019-11-10 12:18:02 +05:30
Pradyun Gedam 08a7f501e8
nox: Update interpreters available for testing 2019-11-10 11:48:34 +05:30
Pradyun Gedam 3dfa9e420f
nox: Remove pre-existing source distributions 2019-11-10 11:48:13 +05:30
Pradyun Gedam db66b6eaf5
Add a nox command to build release artifacts 2019-11-03 14:48:18 +05:30
Pradyun Gedam 9e3e82e081
Rewrite release preparation automation 2019-11-03 14:48:11 +05:30
Pradyun Gedam ba63e01bb6
Merge pull request #7191 from qiell/fix/update-shutil-remove-to-rmtree
Change method from shutil.remove to shutil.rmtree
2019-10-15 12:31:20 +05:30
Xavier Fernandez 8df9329396 Add release target 2019-10-14 14:23:00 +02:00