Skip to content

Commit

Permalink
v1.0.7
Browse files Browse the repository at this point in the history
changed version systematically with move from python-venv to pipenv
  • Loading branch information
WhaleJ84 authored Jan 7, 2021
2 parents 5b9746f + fe18fc0 commit f68c084
Show file tree
Hide file tree
Showing 8 changed files with 353 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.coverage
hb_organiser/config.py
hb_organiser.log
queue.txt
15 changes: 15 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[[source]]
url = "https://pypi.python.org/simple"
verify_ssl = true
name = "pypi"

[packages]

[dev-packages]
setuptools = "*"
wheel = "*"
pylint = "*"
twine = "*"

[requires]
python_version = "3.8"
320 changes: 320 additions & 0 deletions Pipfile.lock

Large diffs are not rendered by default.

16 changes: 15 additions & 1 deletion build/lib/hb_organiser/organiser.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,21 @@ def copy_file(source, destination, task=None):
:type task: str
:return:
"""
if not isfile(destination) or source in open('queue.txt'):
if not isfile(destination):
# TODO: Fix this duplicate code section.
# Was nastily thrown in to fix a bug
try:
if source in open('queue.txt'):
print(f"{task} COPY: {source} {destination}")
log = open('queue.txt', 'w')
log.write(source)
log.close()
copyfile(source, destination)
log = open('queue.txt', 'w')
log.write('')
log.close()
except FileNotFoundError:
pass
print(f"{task} COPY: {source} {destination}")
log = open('queue.txt', 'w')
log.write(source)
Expand Down
Binary file added dist/hb_organiser-1.0.7-py3-none-any.whl
Binary file not shown.
Binary file added dist/hb_organiser-1.0.7.tar.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion hb_organiser.egg-info/PKG-INFO
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: hb-organiser
Version: 0.0.7
Version: 1.0.7
Summary: Organises Humble Bundle bundles based on their platform.
Home-page: https://github.com/WhaleJ84/hb_organiser
Author: James Whale
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="hb_organiser",
version="0.0.7",
version="1.0.7",
author="James Whale",
author_email="[email protected]",
description="Organises Humble Bundle bundles based on their platform.",
Expand Down

0 comments on commit f68c084

Please sign in to comment.