Min RK
b8c76448a3
generalize separate kernel environment from server for old Python
...
replaces `.py2` special-case with a general `separate_kernel_env` flag,
currently triggered by requesting Python < 3.7.
Python 3.6 and 3.5 are now treated as Python 2.7
2023-02-03 15:27:07 +01:00
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
pre-commit-ci[bot]
5a93542321
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2022-10-31 21:22:32 +01:00
paugier
fadb3c8dc8
Bump Black version (20.8b1) and use --target-version=py36
2020-09-10 08:11:29 +02: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
Min RK
3da5543bfc
check for local pip requirements in conda environments
2019-07-18 14:39:35 +02:00
Min RK
d6e66c886d
preassemble python
2019-07-16 15:52:39 +02:00
Min RK
b6ab2a9986
check requirements.txt for local references
...
allows assemble_from_subset when requirements.txt doesn't contain any local references
2019-07-16 07:56:11 +02: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
Joseph Hamman
c230c70f4e
support for .binder directory
2019-04-27 17:01:20 -07:00
Tim Head
843b7a5e30
Unpin pip again
2019-04-16 21:49:37 +02:00
Maksim Rakitin
38422f1aa7
FIX: a temporary workaround for pip-19.0.1 issues
2019-02-07 15:16:30 -05:00
Tim Head
0ef79326e5
Escape environment variable when using Python string formatting
2018-08-18 12:50:31 +02:00
Min RK
69a116a07f
handle runtime not being Python in Python BuildPack
...
because R buildpack subclasses the Python buildpack,
where runtime.txt should be ignored for retrieving the Python version
2018-04-18 12:40:04 +02:00
Min RK
6d12d2d807
always use $KERNEL_PYTHON_PREFIX/bin/pip
...
it's always defined and always right for the pip for the kernel env,
whether it's separate from the notebook or not.
2018-04-16 16:58:01 +02:00
Min RK
211a6978c6
clarify comments about requirements3.txt
2018-04-16 16:58:01 +02:00
Min RK
647d04cbc8
Fix detect docstring for Python
...
since it's not just about Python 3 anymore
2018-04-16 10:57:42 +02:00
Min RK
6b15b01fbd
inherit PythonBuildPack from conda buildpack
...
- sets up base env with conda
- installs packages with pip
- eliminates duplicate frozen envs for pip
- py3/py2 split happens in one class, not separate classes
2018-04-16 10:56:39 +02:00
Chris Holdgraf
02970c8413
Merge pull request #289 from GladysNalvarte/setup.py
...
Support setup.py in Python buildpacks
2018-04-14 15:53:42 -07:00
Gladys Nalvarte
9394393f7c
Improve the error message for unsupported python2
2018-04-11 10:33:21 +02:00
Gladys Nalvarte
5f702d6983
Corrects __init__.py
...
It will install setup.py file only when binder folder does not exist.
2018-04-03 15:49:09 +02:00
Gladys Nalvarte
821514c474
Support setup.py in Python buildpacks
2018-03-27 15:33:42 +02:00
Gladys Nalvarte
cd9011d128
Corrects typos in Python buildpacks
2018-03-26 12:38:35 +02:00
Gladys Nalvarte
5611d7c836
Enables Python2 just with runtime.txt file
2018-03-23 15:25:38 +01:00
Carol Willing
550fd2875d
Reword per @betatim review
2018-03-16 15:02:12 -07:00
Carol Willing
3aa407b3ff
add docstring to python3 and python2 buildpacks
2018-03-16 09:27:26 -07:00
Tim Head
ed717955b1
Fix detecting dependency files in binder/ subidr
2018-03-15 16:22:01 +01:00
Min RK
26dac5cc9b
Merge pull request #207 from yuvipanda/inheritance
...
Use inheritance to define composed buildpacks
2018-02-02 09:36:38 +01:00
yuvipanda
d438ad7091
Add nteract jupyter extension to requirements.txt based setups
...
Didn't add to conda, since there is currently no way to add
pip packages to our conda frozen setup (due to
https://github.com/conda/conda/pull/6438 ).
This means nteract will be available only when used with
requirement.txt, and not when used with environment.yml files.
2018-02-01 04:29:41 -08:00
yuvipanda
91065eb11a
Fix tautology
2018-02-01 04:27:55 -08:00
yuvipanda
be10cadbcb
Remove traitlet imports from all buildpacks
2018-02-01 04:23:34 -08:00
yuvipanda
4d19924180
Use inheritance to define composed buildpacks
...
- This is much cleaner to understand than traitlets
- Remove 'name' and 'component' traitlets
2018-02-01 04:23:34 -08:00
yuvipanda
28bccecfff
Switch assemble_scripts to use methods instead of traitlets
2018-02-01 01:43:14 -08:00
yuvipanda
42eb8e573c
Convert build_script & build_script files to methods
2018-02-01 01:39:36 -08:00
yuvipanda
d3c6703e9e
Move path and env from traitlets to methods
2018-02-01 01:21:17 -08:00
yuvipanda
dc653388f5
Use methods for packages and base packages, not traitlets
2018-02-01 01:11:40 -08:00
yuvipanda
ac6659e553
Use fully frozen requirements.txt for venv
...
Fixes #154
There's also a 'freeze.bash' script that'll generate the frozen
versions from the unfrozen versions at current date.
2017-11-30 01:44:41 -08:00
yuvipanda
a84e8ebcf5
Use requirements.txt for installing base packages in requirements.txt
...
Lets us move to a frozen requirements.txt that can be automated
soon.
2017-11-30 01:44:33 -08:00
yuvipanda
c43d45ce21
Move conda support files next to the code
...
Better than in a separate files dir IMO
2017-11-30 01:44:25 -08:00