-
Notifications
You must be signed in to change notification settings - Fork 0
Seek file before retry #94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
5c9ff5b
08217fd
0a69bfb
813c694
928941b
91cc9b5
355e540
baee39c
bbd8eaa
4044a08
821e395
61db785
0b1cd5c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -359,7 +359,7 @@ def download_file(url): | |
| filename = os.path.join(tempfile.gettempdir(), | ||
| hashlib.sha1(url.encode()).hexdigest() + ext) | ||
| if os.path.exists(filename): # avoid redownloading | ||
| logger.info("Skipping download of {}: file already exist in ".format(url, filename)) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: maybe only fix the bug in this PR?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. flake got bumped automatically, I think either we freeze it, or if we let it flexible we can embed those kind of small fixes in PRs
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. requirements-dev.txt should be fully frozen, even for python libs: it's not used by the lib users, it's OK to freeze/pin.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok it wasn't in requirement.dev so i moved it there and froze it |
||
| logger.info("Skipping download of {}: file already exist in {}".format(url, filename)) | ||
| return filename | ||
| r = requests.get(url, stream=True) | ||
| r.raise_for_status() | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,3 +3,4 @@ pytest==4.6.5 | |
| pytest-cov==2.7.1 | ||
| pytest-voluptuous==1.1.0 | ||
| httpretty==0.9.6 | ||
| flake8==3.8.4 | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,17 +2,9 @@ | |
| import io | ||
| from setuptools import find_packages, setup | ||
|
|
||
| try: | ||
| # for pip >= 10 | ||
| from pip._internal.req import parse_requirements | ||
| except ImportError: | ||
| # for pip <= 9.0.3 | ||
| from pip.req import parse_requirements | ||
|
|
||
|
Comment on lines
-5
to
-11
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: maybe only fix the bug in this PR?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This prevented me to install it on my computer, it would be nice to include it in this PR |
||
|
|
||
| here = os.path.abspath(os.path.dirname(__file__)) | ||
|
|
||
|
|
||
| about = {} | ||
| with io.open(os.path.join(here, 'deepomatic', 'api', 'version.py'), 'r', encoding='utf-8') as f: | ||
| exec(f.read(), about) | ||
|
|
@@ -24,7 +16,8 @@ | |
| os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) | ||
|
|
||
| # Read requirements | ||
| install_reqs = parse_requirements(os.path.join(here, 'requirements.txt'), session='hack') | ||
| with io.open(os.path.join(here, 'requirements.txt'), encoding='utf-8') as f: | ||
| requirements = f.readlines() | ||
|
|
||
| namespaces = ['deepomatic'] | ||
|
|
||
|
|
@@ -43,7 +36,7 @@ | |
| long_description=README, | ||
| long_description_content_type='text/markdown', | ||
| data_files=[('', ['requirements.txt'])], | ||
| install_requires=[str(ir.req) for ir in install_reqs], | ||
| install_requires=requirements, | ||
| python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", | ||
| classifiers=[ | ||
| 'Operating System :: OS Independent', | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.