diff --git a/.circleci/config.yml b/.circleci/config.yml index 10438384a..585ce50ad 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -29,7 +29,7 @@ commands: default: "" steps: - restore_cache: - key: deps-v6-<>-<>-<>-<>-{{ .Branch }}-{{ checksum "requirements.txt" }}-{{ checksum "setup.py" }} + key: deps-v7-<>-<>-<>-<>-{{ .Branch }}-{{ checksum "requirements.txt" }}-{{ checksum "setup.py" }} - run: name: Install python deps in venv environment: diff --git a/metrics/bigfiles_high_water_mark b/metrics/bigfiles_high_water_mark index 7fdcfb8c0..4880c9fba 100644 --- a/metrics/bigfiles_high_water_mark +++ b/metrics/bigfiles_high_water_mark @@ -1 +1 @@ -1131 +1132 diff --git a/setup.py b/setup.py index 4840ab49c..5ad3f9426 100755 --- a/setup.py +++ b/setup.py @@ -8,6 +8,7 @@ from distutils.cmd import Command import os.path import sys +import warnings __version__: Optional[str] = None # Read in and set version variable without the overhead/requirements @@ -66,9 +67,9 @@ def run(self) -> None: f"{self.type_of_coverage} coverage used to be {high_water_mark}; " f"down to {new_coverage}%. Fix by viewing '{self.coverage_url}'") elif new_coverage > high_water_mark: - with open(self.coverage_file, 'w') as f: - f.write(str(new_coverage)) - print(f"Just ratcheted coverage up to {new_coverage}%") + warnings.warn( + f"WARNING: Your current coverage is higher than current high watermark.\n" + f"Consider increasing high watermark in {self.coverage_file} to {new_coverage}.") else: print(f"Code coverage steady at {new_coverage}%") @@ -309,7 +310,7 @@ def initialize_options(self) -> None: # resulting in runtime complaints. Can be removed once 20.4 # is proven to work. 'chardet>=3,<4', - 'tenacity>=4.12.0,<7', + 'tenacity>=8.0.1', # v5.0.1 resolves https://github.com/exhuma/config_resolver/issues/69 'config-resolver>=5.0.1,<6', 'typing_inspect',