This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
WORKERS = [] | |
class BackgroundWorker(QtCore.QThread): | |
result = QtCore.pyqtSignal(object) | |
exception = QtCore.pyqtSignal(object) | |
def __init__(self, func, fin): | |
super().__init__() | |
WORKERS.append(self) | |
self.finished.connect(lambda: WORKERS.remove(self)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import setuptools | |
import subprocess | |
major_version = '1.4' | |
commits = commits = subprocess.check_output( | |
['/usr/bin/git', 'rev-list', 'HEAD', '--count']).decode('utf8').strip() | |
kwargs = {} # you know what to put here | |
setuptools.setup( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The gist that used to be here has since been implemented as a complete pip-installable package: https://github.com/anqxyr/mkepub | |
This notice is left here as a courtesy to the people who starred/bookmarked this gist in the past. | |