Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
boxed committed Oct 20, 2024
1 parent c8c61e5 commit 58d70dc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 0 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,6 @@ whitelist lines are:
- Optimizing break instead of continue. The code runs fine when mutating break
to continue, but it's slower.

See also `Advanced whitelisting and configuration`_


Example mutations
-----------------
Expand Down
8 changes: 4 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,15 @@ def finalize_options(self):

def run(self):
from subprocess import check_output
tag = check_output(['git', 'describe', '--all', '--exact-match', 'HEAD']).strip().split('/')[-1]
tag = check_output(['git', 'describe', '--all', '--exact-match', 'HEAD']).strip().decode().split('/')[-1]
version = read_version()
if tag != version:
print('Missing {} tag on release'.format(version))
raise SystemExit(1)

current_branch = check_output(['git', 'rev-parse', '--abbrev-ref', 'HEAD']).strip()
if current_branch != 'master':
print('Only release from master')
current_branch = check_output(['git', 'rev-parse', '--abbrev-ref', 'HEAD']).decode().strip()
if current_branch != 'main':
print('Only release from main')
raise SystemExit(1)

print("Ok to distribute files")
Expand Down

0 comments on commit 58d70dc

Please sign in to comment.