Граф коммитов

19 Коммитов

Автор SHA1 Сообщение Дата
Will Kahn-Greene 156c5898b3 Remove six dependency from html5lib (#618)
This way lies madness, but at least we don't have a six dependency
anymore.

The way this work is that we vendored html5lib 1.1, but then this
applies a 01_html5lib_six.patch to that which changes imports from six
to import from bleach.six_shim.

This updates the vendor management code and vendorverify to install
html5lib 1.1 and then apply the patch and then compare with what's in
the tree. If we end up applying further patches in the future, we can
use this model to do that.
2024-10-28 14:32:10 -04:00
Will Kahn-Greene 1c322eca07
Remove scripts/run_tests.sh since we don't use it anymore 2022-12-08 16:22:28 -05:00
Will Kahn-Greene 2d24b5650f
Update dev requirements
This updates dev requirements. While doing that, I split out flake8 into
its own world because its dependencies conflict with other dependencies.
2022-12-07 21:36:37 -05:00
Will Kahn-Greene 0a5a1e4e0e Fix checkrot and update dev dependencies 2022-04-01 11:58:49 -04:00
Will Kahn-Greene 8548eedcf7 Redo dev dependencies
Previously, we maintained dev dependencies in a .in file and then used
pip-compile to generate a requirements file and then used that for
building dev environments and CI test environments.

We hit dependencies that have different dependencies depending on Python
version and interpreter. That breaks with the compiled requirements
method.

This redoes dev requirements so that they're an extra specified in
setup.py. We don't need to track dependencies of dependencies or hash
dev dependencies. We can update dev dependencies as we need to. Having
stable pinned versions reduces unexpected errors because the universe
changed.

Developers will need to do:

pip install -e '.[dev]'

now to pick up dev dependencies.
2022-02-09 10:27:41 -05:00
Will Kahn-Greene 50acf3456f Fix flake8/black configuration
Add some additional files and directories that should be covered by
Python formatting.

Change flake8 line length to 88 to match black.

Change flake8 to ignore line length--it's handled by black.
2022-02-09 10:00:36 -05:00
Hugo van Kemenade 90b669dfd9 Drop support for EOL Python 3.6 2022-02-08 20:28:38 -05:00
Will Kahn-Greene 498af1383d Fix pip-tools problem and rework requirements (#636)
This fixes the problem with pip-tools < 6.5.0 and pip 22 by adding
pip-tools to the dev requirements, setting it to 6.5.0, and installing
that before checking the requirements.

This also moves requirements checking code to the scripts/run_tests.sh
script so it's easier to do in a local dev environment.

This also rebuilds the dev requirements.
2022-02-07 22:14:56 -05:00
Greg Guthe b04b95eb89
user vendor install script in vendor verify 2021-08-25 10:34:40 -04:00
Greg Guthe 4f0cebbb0c
vendor: rename install script
Not using pip for all vendored deps
2021-08-25 10:34:40 -04:00
Greg Guthe 7838d76ab8
scripts: black format and format-check for py36 2021-08-25 10:34:40 -04:00
Greg Guthe 1c16d17ba7
scripts: fail tox vendorverify target when tree diff fails
diff should exit with a non-zero exit code when the tree diff includes
extra files or directories
2021-07-14 12:12:27 -04:00
Greg Guthe 491abb06ce
fix typo s/vnedoring/vendoring/ 2021-01-26 17:11:21 -05:00
Greg Guthe 103c16de43 scripts: add format and format-check test modes 2020-09-16 17:42:36 +00:00
Will Kahn-Greene f0306aad47 Fix tox.ini to run doctests in docs 2019-09-25 09:42:32 -04:00
Will Kahn-Greene 2052f00700 Fix vendor_verify.sh problems with RECORD
RECORD is not sorted and the lines are in a different order once in a while
causing vendor_verify.sh to fail. The order of the lines doesn't matter for
this file, so this tweaks the script to diff that file separately after
sorting the contents on both sides.
2018-10-08 15:49:43 -04:00
Will Kahn-Greene 4278434e12 Flesh out comments in vendor_verify script 2018-10-05 12:45:01 -04:00
Will Kahn-Greene d796f53e46 Fix vendor_verify.sh script to clean up after itself if successful 2018-10-05 12:42:26 -04:00
Will Kahn-Greene ba37abea00 Add vendor verify
Adds vendor_verify step in Travis testing. This also tweaks Travis testing
to lint in just a couple of environments rather than all of them.
2018-08-28 10:50:01 -04:00