Skip to content

Commit

Permalink
fixing python3 pip install issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mweiss17 committed Oct 28, 2018
1 parent e981b75 commit a30660b
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
6 changes: 3 additions & 3 deletions academictorrents/PiecesManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def __init__(self, torrent):
Thread.__init__(self)
self.torrent = torrent
self.piecesCompleted = False

self.numberOfPieces = torrent.numberOfPieces
self.bitfield = bitstring.BitArray(self.numberOfPieces)
self.pieces = self.generate_pieces()
Expand All @@ -37,9 +37,9 @@ def check_percent_finished(self):
def check_disk_pieces(self):
for index, piece in enumerate(self.pieces):
if index % 50 == 0:
progress_bar.print_progress(index, self.numberOfPieces - 1, "Checking Disk Pieces:", " finished")
progress_bar.print_progress(index, self.numberOfPieces - 1, "Checking for pieces on disk:", " finished")
piece.isCompleteOnDisk() # this should set all the finished bools on the finished pieces
progress_bar.print_progress(index, self.numberOfPieces - 1, "Checking Disk Pieces:", " finished")
progress_bar.print_progress(index, self.numberOfPieces - 1, "Checking for pieces on disk:", " finished")

def update_bit_field(self, pieceIndex):
self.bitfield[pieceIndex] = 1
Expand Down
2 changes: 1 addition & 1 deletion academictorrents/Tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@

class FuncThread(threading.Thread):
def __init__(self, target, *args):
threading.Thread.__init__(self)
self._target = target
self._args = args
threading.Thread.__init__(self)

def run(self):
self._target(*self._args)
Expand Down
2 changes: 1 addition & 1 deletion academictorrents/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "2.0.22"
__version__ = "2.0.27"
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
bencode.py == 2.0.0
bitstring == 3.1.5
PyPubSub == 3.3.0
requests == 2.7.0
requests == 2.19.1
pytest == 3.2.5
future == 0.16.0
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
long_description=readme,
author='Martin Weiss, Alexis Gallepe, Jonathan Nogueira',
author_email='[email protected]',
data_files = [("", ["LICENSE"])],
url='https://github.com/AcademicTorrents/python-r-api',
classifiers=(
"Programming Language :: Python :: 2.6"
Expand All @@ -33,7 +34,7 @@
'bencode.py==2.0.0',
'bitstring==3.1.5',
'PyPubSub==3.3.0',
'requests==2.7.0',
'requests==2.19.1',
'future==0.16.0'
]
)

0 comments on commit a30660b

Please sign in to comment.