Pradyun Gedam
08b7a100ca
Update noxfile.py
2022-10-08 17:47:22 +01:00
Paul Moore
bed8c14b25
Update noxfile.py
...
Co-authored-by: Pradyun Gedam <pradyunsg@gmail.com>
2022-10-08 17:30:30 +01:00
Paul Moore
430a846d3f
Add a warning comment to the vendoring session in noxfile
2022-10-08 15:56:57 +01:00
Stéphane Bidoul
7b96a3cd55
Use default setuptools behaviour in our tests
...
Our tests should pass without configuring setuptools in legacy mode.
2022-07-23 16:43:24 +02:00
Pradyun Gedam
56a26be75d
Fix the coverage tracking nox session
...
This session now correctly handles tracking coverage and running tests.
2022-07-08 10:54:15 +01:00
Pradyun Gedam
1a2d2a188f
Rename tox_pip.py
to protected_pip.py
...
This is in line with what the only point of use (in noxfile.py) calls
this.
2022-04-29 16:10:26 +01:00
Pradyun Gedam
764d8841fe
Use the standard library distutils for running tests
...
This is in line with what our unit tests are written with the assumption
of.
2022-01-14 11:29:16 +00:00
Diego Ramirez
fb89b6513b
Fix linting
2021-12-01 12:30:20 -06:00
Diego Ramirez
e0f6628ff5
Implement suggestions, and use more Nox sessions in our CI
2021-12-01 12:22:29 -06:00
Diego Ramirez
093ef1dfdf
Resolve all the pre-commit
issues
2021-11-29 10:15:07 -06:00
Diego Ramirez
7ced6c583b
Replace tox with Nox (CLI, docs)
2021-11-29 09:29:14 -06:00
Diego Ramirez
5c916121a9
Simple fixes to the coverage
Nox session
2021-11-27 08:53:41 -06:00
Diego Ramirez
7c3fd811a6
Make some fixes to the coverage
Nox session
...
- Simplify it, by replacing a run with a Python if statement.
- Pass an env argument to the coverage call to ensure it will work.
2021-11-27 08:42:03 -06:00
Diego Ramirez
097709b967
Add a coverage
session to our noxfile
...
That way, we can move from tox to Nox without problems. See pypa/pip#6721 for details.
2021-11-25 08:54:48 -06:00
Hugo van Kemenade
0252c04a16
Drop support for soon-EOL Python 3.6
2021-11-08 12:02:16 +02:00
Pradyun Gedam
858dd34af6
Upgrade to vendoring 1.2
...
This enables wheel usage in vendoring's license fetching, at the cost of
requiring two more license-related fallbacks.
The additional fallbacks are due to packages which include the license
in their source distributions but not in their wheel distributions, and
the change in vendoring that prefers using wheels when possible.
This should fix the bootstrapping problem we're seeing with `flit` and
`tomli`, by allowing us to use wheels to break the loop.
2021-10-14 08:00:40 +01:00
Pradyun Gedam
1e3c127d4a
Avoid passing .
to vendoring
2021-10-09 09:41:56 +01:00
Pradyun Gedam
3b8113d452
Bump to vendoring 1.0.x
...
This now supports:
- Clearer failure mode, for imports of the format `import x.y`
- Regular expression support for dropping files (useful for when we vendor pygments)
- Patching files prior to rewriting imports, allowing generation of patches on the
original package sources.
- Detection of py.typed files, which omits generation of unnecessary `.pyi` stubs.
2021-09-13 08:11:45 +01:00
Jon Dufresne
030b8b4ef6
Upgrade nox to remove mypy ignores
2021-08-12 07:41:30 -07:00
Jon Dufresne
6a6561c2cb
Move many type comments to annotations
...
Use the tool com2ann to automatically convert most type comments to type
annotations. Some type comments continue to exist where any work beyond
the automatic conversion was required (for example, additional
formatting or circular references).
For additional information on the com2ann tool, see:
https://github.com/ilevkivskyi/com2ann
2021-08-10 07:12:32 -07:00
Pradyun Gedam
4ee9a4af25
Add Python 3.10 support
2021-08-06 13:42:31 +01:00
Pradyun Gedam
d009436b0f
Fix test requirement paths in noxfile
2021-07-28 23:24:49 +01:00
Pradyun Gedam
25af8e5f36
Move docs requirements to docs/
...
This makes the file easier to locate, by placing it next to the stuff
that it will affect.
2021-07-24 12:06:51 +01:00
Diego Ramirez
b0626f61da
Make proper annotations on noxfile.py
...
As I said on the pypa PR 10018, it is necessary to convert the commentaries into proper annotations.
2021-06-08 13:19:10 -05:00
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
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