Mwlib

Latest version: v0.17.0.post1

Safety actively analyzes 630094 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 11 of 11

0.9.7

Not secure
--------------------------------
- fix bug in expr parsing
- fix bug in localised namespace handling/ifexist
- fix bug in redirect handling together with specific revision in mwapidb

0.9.6

Not secure
--------------------------------
- mwapidb: return authors alphabetically sorted (420)
- zipcreator: fixed classname from DummyScheduler to DummyJobScheduler; this bug
broke the --no-threads option
- serve: if rendering is forced, don't re-use ZIP file (432)
- options: remove default value "Print" from --print-template-prefix
- mapidb: expand local* functions, add them to source dictionary
- expander: fix memory leak in template parser (439)
- expander: better noinclude, includeonly handling (426)
- expander: iferror now uses a regular expression (435)
- expander: workaround dateutils bug
(resulting in a TypeError: unsupported operand type(s) for +=: 'NoneType' and 'int')

0.9.5

Not secure
--------------------------------
- initial release


! /usr/bin/env python

import os
import subprocess
import sys


def system(cmd, dry_run=False):
print("====> Running", cmd)
if dry_run:
return

popen = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, shell=True, encoding="utf-8")
nl = True
while True:
char = popen.stdout.read(1)
if not char:
break
if nl:
sys.stdout.write(" ")
sys.stdout.write(char)
sys.stdout.flush()
nl = char == "\n"

st = popen.wait()
if st != 0:
sys.exit("Error: command %r failed" % cmd)
print()


def main():
dry_run = "dry" in os.environ
st, tags = subprocess.getstatusoutput("git tag")
assert st == 0, "failed to get tags"
tags = set(tags.split())
import setup

version = setup.get_version()

assert version not in tags, "already have tagged %s" % version

print("building version", version)
st, descr = subprocess.getstatusoutput("git describe --all --dirty")
assert st == 0
dirty = "-dirty" in descr
if dirty:
print("working directory is dirty")

if not dirty:
system("git tag %s" % version)
system("%s setup.py sdist" % sys.executable)
system("%s setup.py register" % sys.executable, dry_run)
system("%s setup.py sdist upload" % sys.executable, dry_run)
else:
print("WARNING: build was dirty. did not upload or tag a release")
sys.exit(1)


if __name__ == "__main__":
main()

Page 11 of 11

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.