pre-commit-ci[bot]
27c2b403db
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2022-10-31 22:32:14 +00:00
Erik Sundell
15a1fb6e2d
refactor: manually add transitions to f-strings
2022-10-31 21:22:32 +01:00
Min RK
6826d72aa2
allow user to specify a single port with default command
...
Allows specifying `-p9999` or `-p5555:9999` without also needing to override the default command
app retrieves port arguments from length-1 port mapping for default command,
instead of requiring random port OR overriding the whole command
2022-10-31 12:57:23 +01:00
Simon Li
1735925116
Use enum to standardise `phase`
2022-10-03 22:49:22 +01:00
jgart
13976264ee
Typo fix utils docstring
2021-08-14 11:37:02 -04:00
Tim Head
10a0cdd04b
Smarter splitting without try/except
2020-08-17 08:06:08 +02:00
Tim Head
a7ab636441
Add additional test cases and robuster parsing
2020-08-13 14:29:50 +02:00
Tim Head
6d2b129ed8
Handle requirements.txt with `--pre` lines
...
This is a global flag which our inspection of requirements.txt files
should ignore as it doesn't imply a local reference.
2020-08-13 14:00:16 +02:00
Tim Head
110d34d041
Improve handling of pip arguments when detecting local dependencies
2020-03-27 15:28:19 +01:00
Simon Li
57593936f0
utils.execute_cmd flush buffer if no EOL
2020-02-14 23:19:46 +00:00
GeorgianaElena
795769ee28
Removed debug print
2019-08-29 15:51:12 +03:00
GeorgianaElena
95fd0e5b81
Don't change file encoding
2019-08-29 15:13:33 +03:00
GeorgianaElena
3752fa1868
Added function to handle different file encodings
2019-08-28 16:25:12 +03:00
Tim Head
6c5c09b62b
Merge pull request #743 from minrk/conda-env-first-again-again
...
[MRG] preassembly for conda/python
2019-07-19 10:36:15 +02:00
Min RK
dd6cd93585
typo in doi regexp
...
must use `r` prefix when there are escapes
2019-07-18 14:41:01 +02:00
Min RK
3da5543bfc
check for local pip requirements in conda environments
2019-07-18 14:39:35 +02:00
Tim Head
dd8ba8ec18
Remove print statement and unused import
2019-07-03 06:53:59 +02:00
Tom Morrell
93147888c5
Reformatting and better tests
2019-06-20 13:22:17 -07:00
Tom Morrell
87f33e3b6a
Full generalization and support for CaltechDATA
2019-06-18 15:11:06 -07:00
Tim Head
8b004e06dc
Apply auto formatting
...
Apologies to anyone finding this commit via git blame or log
run the autoformatting by
pre-commit run --all-files
2019-06-03 21:37:25 +02:00
Tim Head
dce6c1e8d7
Add basic Zenodo content provider
2019-05-29 22:27:09 +02:00
Min RK
17d7afb124
fix "Possible nested set" warning
...
`[:xdigit:]` is not a valid character class in Python regular expressions
use explicit hex digit pattern
2019-02-21 11:01:38 +01:00
Tim Head
498b09e2ed
Extend doc string for port mapping function
2018-12-22 08:01:09 +01:00
Tim Head
7cb4555018
Add check for port sepc > 65535
2018-12-21 18:43:07 +01:00
Tim Head
9e6dc8f7d7
Update tests and add invalid port spec tests
2018-12-21 17:59:42 +01:00
Tim Head
7067663763
Add tests for port mapping conversion
2018-12-21 15:58:56 +01:00
yuvipanda
e1ead75302
Move argument parsing out of Repo2Docker class
...
Argument parsing should only be used when calling from
the command line, and not be deeply tied into the class
itself. This makes it easier for folks to just set
traitlets on an empty class and start it, without having to
deal with passing arguments.
This breaks how people might already be using Repo2Docker as
a library, so should not be part of 0.7
2018-12-14 13:15:33 -08:00
Tim Head
d934c59156
Remove unused shutil import
2018-12-11 10:55:00 +01:00
yuvipanda
ee9b150ef8
Remove maybe_cleanup util function
...
It was used in exactly one place, and could be inlined with
minimal loss of clarity
2018-12-10 23:13:46 -08:00
yuvipanda
30e69bccee
Add unit test for execute_cmd in repo2docker.utils
2018-12-10 23:06:25 -08:00
Tim Head
df7251dff6
Add context manager to change working dir
...
The context manager takes care of restoring the current working
directory when we are done. This is useful when the directory we set as
working directory stops existing.
2018-10-16 13:29:59 +02:00
Tim Head
86b32d511d
PEP8 styling
2018-10-12 16:33:16 +02:00
cclauss
b5988f83c1
from traitlets import TraitError in utils.py
...
__TraitError__ is used on lines 259 and 266 but it is neither imported nor defined which will cause a __NameError__ to be raised instead of a __TraitError__.
flake8 testing of https://github.com/jupyter/repo2docker on Python 3.6.3
$ __flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics__
```
./repo2docker/utils.py:259:19: F821 undefined name 'TraitError'
raise TraitError(
^
./repo2docker/utils.py:266:19: F821 undefined name 'TraitError'
raise TraitError(
^
2 F821 undefined name 'TraitError'
2
```
2018-07-16 10:01:50 +02:00
Chris Holdgraf
544b1ba039
improving ref checker
2018-06-27 11:35:17 -07:00
Chris Holdgraf
728fb9707e
adding a ref checker util
2018-06-27 09:25:07 -07:00
Carol Willing
a6e02c8715
add review suggestion
2018-03-15 12:14:34 -07:00
Carol Willing
c7bb2056d6
add docstrings and format regex
2018-03-15 12:12:44 -07:00
Mukundan Sundararajan
549bd9663b
add ability for port mapping to work with non jupyter-workflow
...
Added tests for port mapping
Added tests for publish all exposed ports
Added argument validation for ports argument
Added short form for argument publish. Changed variable name port to ports.
2018-01-11 16:49:09 -08:00
Mukundan Sundararajan
174c8000d2
Removed class and added function to validate docker image name
2017-12-22 19:45:16 -08:00
Mukundan Sundararajan
b6414c3ef4
Added a regex based patter definition for Image name
2017-12-22 16:17:32 -08:00
Tim Head
b893463735
Apply PEP8 style roller
2017-12-08 15:32:21 +01:00
yuvipanda
86c24c1a18
Set limits for how much memory docker build can use
...
This prevents builds from gobbling all the RAM on a node!
2017-11-30 17:14:42 -08:00
Tim Head
5242bd8339
Switch to using context manager for cleanup
2017-11-01 21:15:27 +01:00
Min RK
e7f0ab645e
comment about output capturing
2017-05-24 16:42:25 -07:00
Min RK
698f9e1196
flush lines with carriage returns
...
for terminal progress bars
2017-05-24 16:33:35 -07:00
Min RK
f3505db967
only capture logs when doing json logging
...
and don’t do json logging by default
log messages include newlines, carriage returns so that they can be handled correctly in terminal frontends
2017-05-24 14:11:37 -07:00
Min RK
c158daab9d
use bundled s2i by adding package to PATH
2017-05-24 09:49:23 -07:00
yuvipanda
93972e9b58
Rename builder to repo2docker
...
Package name is jupyter-repo2docker
2017-05-22 16:22:36 -07:00