def run(self): self.sign = True self.identity = '0x2f1c8ae0' upload.run(self) for command, pyversion, filename in self.distribution.dist_files: full_version = re.search(r'ReText-([\d\.]+)\.tar\.gz', filename).group(1) new_path = ('[email protected]:/home/frs/project/r/re/retext/ReText-%s/' % full_version[:-2]) args = ['scp', filename, filename + '.asc', new_path] print('calling process', args) check_call(args)
def run(self): result = subprocess.check_output("git status -z", shell=True) for fstat in result.split("\x00"): stat = fstat[0:2] fn = fstat[3:] # New files are ok for now. if stat == '??': continue raise AssertionError("Unexpected git status (%s) for %s" % (stat, fn)) UploadCommand.run(self)
def run(self): result = subprocess.check_output("git status -z", shell=True) for fstat in result.split(b"\x00"): # Skip empty line (potentially at the end of the output) if not len(fstat): continue stat = fstat[0:2] fn = fstat[3:] # New files are ok for now. if stat == b'??': continue raise AssertionError("Unexpected git status (%s) for %s" % (stat, fn)) UploadCommand.run(self)
def protected_upload(self=None): """ Allow only uploads with Python 3. I experienced problems earlier, when i uploaded packages built with python2. They containded .pyc files that made the distribution fail on python3 because of a bad magic number error. Since only I use this by now, i protect myself from this to happen again by this little mechanism. It may be removed or changed in the future. >>> protected_upload() ==> For backwards compatibility you should only upload packages built with Python 3 to PyPI. """ if self and sys.version_info.major == 3: return _upload.run(self) print('==> For backwards compatibility you should only upload packages built with Python 3 to PyPI.')
def run(self): message = 'v' + version + '\n\n' with open('CHANGELOG.txt') as cl: while not cl.readline().startswith('Changes'): pass while True: line = cl.readline().strip() if not line: break message += line + '\n' repo = git.Repo() tag = repo.create_tag('v' + version, message=message) remote = repo.remotes.origin remote.push(tags=True) return _upload.run(self)
def run(self): tag_path = 'v%s' % version message = '%s\n\n' % tag_path with open('CHANGELOG.txt') as f: while not f.readline().startswith('Changes'): pass while True: line = f.readline().strip() if not line: break message += line + '\n' repo = git.Repo() tag = repo.create_tag(tag_path, message=message) remote = repo.remotes.origin remote.push(tags=True) return upload.run(self)
def run(self): import git result = upload.run(self) message = 'Photini-' + __version__ + '\n\n' with open('CHANGELOG.txt') as cl: while not cl.readline().startswith('Changes'): pass while True: line = cl.readline().strip() if not line: break message += line + '\n' repo = git.Repo() tag = repo.create_tag(__version__, message=message) remote = repo.remotes.origin remote.push(tags=True) return result
def run(self): import git tag_path = 'Photini-%s' % next_release message = '%s\n\n' % tag_path with open('CHANGELOG.txt') as cl: while not cl.readline().startswith('Changes'): pass while True: line = cl.readline().strip() if not line: break message += line + '\n' repo = git.Repo() tag = repo.create_tag(tag_path, message=message) remote = repo.remotes.origin remote.push(tags=True) return upload.run(self)