Commit Graph

38 Commits

Author SHA1 Message Date
Damian Shaw 68529081c2
Enforce f-strings via Ruff (#12393) 2023-11-07 09:14:56 +00:00
Damian Shaw 9685f64fe8
Update ruff and config (#12390) 2023-11-06 09:30:05 +00:00
Lukas Geiger 3d6b0be901 Remove outdated noqa comments 2023-09-22 01:28:54 +01:00
Christian Clauss 0a24a001fb Fix issues raised in code review 2023-08-28 15:04:54 +02:00
Christian Clauss 69a1e956da Ruff rules C4,C90,PERF 2023-08-28 14:51:13 +02:00
Paul Moore bdef9159bd Use ruff for import sorting as well 2023-06-05 15:06:11 +01:00
Paul Moore 0af7d6de7a Tidy up file exclusions 2023-06-05 14:36:34 +01:00
Paul Moore 80cb6f443f Switch to ruff for linting 2023-06-05 14:26:05 +01:00
Pradyun Gedam eb7b4ed62e
Update vendored `pkg_resources` 2023-02-04 21:18:10 +00:00
Pradyun Gedam 81c783752a
Fix a typo related to pygments vendoring 2021-11-26 15:26:27 +00:00
Pradyun Gedam 7510fb04b6
Vendor rich and required dependencies (pygments, typing_extensions)
This will enable building upon these libraries, to improve the
presentation style and output.
2021-11-26 11:50:21 +00:00
Pradyun Gedam bf71afc143
Merge pull request #10580 from pradyunsg/better-towncrier-template
Improve our towncrier template, to do the right thing after releases
2021-10-15 18:31:10 +01:00
Pradyun Gedam aa89947b01
Improve our towncrier template, to do the right thing after releases
This also adds a bunch of comments, which should serve as useful guides
to future humans that work on these files.
2021-10-15 15:11:43 +01: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
Dominic Davis-Foster a36a2c58e5
Remove "platformdirs" from tool.vendoring.typing-stubs 2021-09-30 15:37:12 +01:00
Dominic Davis-Foster ae6cf66c79
Switch from appdirs to platformdirs 2021-09-30 15:34:35 +01:00
Jon Dufresne e37ad39205 Simplify vendoring configuration
The msgpack-python was replaced by msgpack. This removes the need to
special case its directory.

The pytoml library is no longer vendored.

The resolvelib package distributes its license and so doesn't require a
license fallback URL.
2021-09-13 18:38:13 -07:00
Jon Dufresne 51f07aac5a Remove tenacity/tests from vendoring configuration
Since upstream release 8.0.0 and change:

d442271252

the tenacity package does not include tests.
2021-08-21 06:58:49 -06:00
Jon Dufresne 3064f71161 Upgrade vendored distro to use new typing and API
The most recent version of distro, 1.6.0, include type information. This
allows pip to remove some workarounds. See upstream commit:
20cb68d6b0

The new version also deprecated the top level function
distro.linux_distribution(). Switch to the new preferred API. See
upstream commit:
f947776f5a
2021-08-15 21:54:40 +02:00
Tzu-ping Chung 5457c6f399
Merge branch 'main' into switch-to-tenacity 2021-04-03 23:31:48 +08: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
cjc7373 64ecfc8476 switch from 'retrying' to 'tenacity' 2021-02-21 09:04:27 +08:00
Jon Dufresne d9b5525193 Prefer stdlib contextlib over contextlib2 when available
Removes the vendored contextlib2.

ExitStack and suppress are available from stdlib contextlib on all
supported Python versions.

The nullcontext context manager which isn't available in Python 3.6, but
the function is simple to implement. Once Python 3.6 support is dropped,
so too can the compat shim.
2021-02-19 04:13:33 -08:00
KOLANICH 3764736f20
Explicitly specify build-backend in pyproject.toml (#7742) 2020-04-10 20:16:21 +05:30
Tzu-ping Chung 36065cf2e0 Vendor ResolveLib from Git
We are vendoring from the Git source for now, so the bug fix turnover
can be quicker if there's anything wrong in the resolution logic.

HEAD up-to-date as of 2020-03-12.
2020-03-12 22:37:30 +08:00
Pradyun Gedam 6929cc6d6b
Address review comments
These were all nitpicks but hey, that's good news. :)
2019-12-15 21:22:04 +05:30
Pradyun Gedam cdee9e2c33
Add configuration for using vendoring 2019-12-15 04:00:07 +05:30
Chris Hunt 459c1c7e40 Validate NEWS files with rstcheck. 2019-09-16 20:52:46 -04:00
Pradyun Gedam 026fd7bbe8
Switch to inline tables in pyproject.toml 2019-08-27 14:54:08 +05:30
Pradyun Gedam 520e21b5cf
Add a format to allow references to PRs to be links 2018-08-14 09:39:56 +05:30
Donald Stufft dec22c92c2 Switch to CalVer and set a release cadence 2018-04-22 14:21:50 -04:00
Donald Stufft 3c0d97a0b7 Fix title formatting 2018-04-22 13:49:05 -04:00
Donald Stufft 0b830f3551 Fix towncrier 2018-03-31 11:20:57 -04:00
Pradyun S. Gedam 17a30594b9 Update pyproject.toml 2017-05-20 13:10:43 +05:30
Donald Stufft 02ebcb9051 Use a better name for Removals 2017-03-19 16:55:54 -04:00
Donald Stufft 90dd13f6a6 Add a special kind of towncrier type for vendored lib updates 2017-03-19 16:49:55 -04:00
Donald Stufft c36cca51ca Allow marking a change as "trivial" for the news file 2017-03-19 16:39:27 -04:00
Donald Stufft a45c2f5e24 Generate our NEWS.rst with towncrier 2017-03-19 12:00:31 -04:00