diff --git a/Makefile b/Makefile deleted file mode 100644 index 8adf3bc..0000000 --- a/Makefile +++ /dev/null @@ -1,13 +0,0 @@ -# must use personal access token for github password -# must use local su password for sudo -# must set up ~/.pypirc for pypi password - -update: - python update.py - git commit -am "update version" - git push origin master - sudo python3 setup.py sdist bdist_wheel - twine upload --skip-existing dist/* - -test: - python3 -m unittest \ No newline at end of file diff --git a/update.py b/update.py deleted file mode 100644 index ac4ab28..0000000 --- a/update.py +++ /dev/null @@ -1,23 +0,0 @@ -import re - -if __name__ == '__main__': - setupFile = 'setup.py' - outLines = [] - # read and update old version - with open(setupFile, 'r') as f: - for line in f: - regex = r".+version.+'(.+)'," - match = re.match(regex, line) - if match != None: - items = list(match.groups()) - version = items[0] - major, middle, minor = [int(x) for x in version.split('.')] - minor += 1 - newVersion = '{}.{}.{}'.format(major, middle, minor) - print('{} -> {}'.format(version, newVersion)) - line = "\tversion = '{}',\n".format(newVersion) - outLines.append(line) - # write updated lines - with open(setupFile, 'w') as f: - s = ''.join(outLines) - f.write(s)