Skip to content

Commit

Permalink
Merge pull request #180 from yilei/push_up_to_408735139
Browse files Browse the repository at this point in the history
Push up to 408735139
  • Loading branch information
yilei committed Nov 10, 2021
2 parents 4a81f36 + a2892e5 commit 0f86230
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
6 changes: 6 additions & 0 deletions absl/CHANGELOG.md → CHANGELOG.md
Expand Up @@ -6,10 +6,16 @@ The format is based on [Keep a Changelog](https://keepachangelog.com).

## Unreleased

Nothing notable unreleased.

## 1.0.0 (2021-11-09)

### Changed

* `absl-py` no longer supports Python 2.7, 3.4, 3.5. All versions have reached
end-of-life for more than a year now.
* New releases will be tagged as `vX.Y.Z` instead of `pypi-vX.Y.Z` in the git
repo going forward.

## 0.15.0 (2021-10-19)

Expand Down
6 changes: 4 additions & 2 deletions absl/flags/_validators.py
Expand Up @@ -203,7 +203,8 @@ def mark_flag_as_required(flag_name, flag_values=_flagvalues.FLAGS):
warnings.warn(
'Flag --%s has a non-None default value; therefore, '
'mark_flag_as_required will pass even if flag is not specified in the '
'command line!' % flag_name)
'command line!' % flag_name,
stacklevel=2)
register_validator(
flag_name,
lambda value: value is not None,
Expand Down Expand Up @@ -255,7 +256,8 @@ def mark_flags_as_mutual_exclusive(flag_names, required=False,
warnings.warn(
'Flag --{} has a non-None default value. That does not make sense '
'with mark_flags_as_mutual_exclusive, which checks whether the '
'listed flags have a value other than None.'.format(flag_name))
'listed flags have a value other than None.'.format(flag_name),
stacklevel=2)

def validate_mutual_exclusion(flags_dict):
flag_count = sum(1 for val in flags_dict.values() if val is not None)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -51,7 +51,7 @@

setuptools.setup(
name='absl-py',
version='0.15.0',
version='1.0.0',
description=(
'Abseil Python Common Libraries, '
'see https://github.com/abseil/abseil-py.'),
Expand Down

0 comments on commit 0f86230

Please sign in to comment.