132 Commits

Author SHA1 Message Date
Rylan Polster
a7a9793f99 needs_python? separate formula name from tap name 2020-07-03 16:37:32 -04:00
Bo Anderson
cd0c3fa835 extend/pathname: use Java.overridable_java_home_env in write_jar_script 2020-06-19 12:04:30 +01:00
Bo Anderson
cd93d4e38a language/java: add support for OpenJDK formula 2020-06-19 11:46:31 +01:00
Alexander Bayandin
4d27c32d44 Revert "Merge pull request #7722 from Bo98/java-improvements"
This reverts commit 91b4d450703bcc2de6dce22eb5fdecb5a843f92e, reversing
changes made to c98901132595178b6261cbe2d51ab732dd77dac4.
2020-06-18 12:23:02 +01:00
Bo Anderson
07547e8cae extend/pathname: use Java.overridable_java_home_env in write_jar_script 2020-06-10 17:08:41 +01:00
Bo Anderson
bbb2696742 language/java: add support for OpenJDK formula 2020-06-10 17:08:38 +01:00
Bo Anderson
d56c6b31a0 language/java: deprecate java_home_cmd 2020-06-10 15:11:56 +01:00
Mike McQuaid
4f75a77b08
Update deprecations
Add more deprecations, disable deprecations and remove disabled code.
2020-05-18 13:50:46 +01:00
Bo Anderson
e03846720c language/haskell: move to compat 2020-05-16 15:00:09 +01:00
Mike McQuaid
3381cbf5c7
Use Homebrew::EnvConfig. 2020-04-07 09:58:26 +01:00
Bo Anderson
32ab83d055 language/python: move rewrite_python_shebang to compat 2020-03-27 22:27:06 +00:00
Bo Anderson
5d68856350 language/python: use rewrite_shebang, add detected_python_shebang 2020-03-27 19:18:23 +00:00
Bo Anderson
878bb0e983 language/perl: add detected_perl_shebang 2020-03-27 19:18:19 +00:00
Michka Popoff
30c4383e86
Merge pull request #7141 from iMichka/regex
rewrite_python_shebang: make version part optional
2020-03-10 22:29:54 +01:00
Michka Popoff
cccd8d3655 rewrite_python_shebang: make version part optional
We forgot about the simplest case:
/usr/bin/env python
2020-03-10 22:11:45 +01:00
Bo Anderson
2594e7093e language/python: fix virtualenv symlinks for versioned Python 2020-03-10 14:17:30 +00:00
Alexander Bayandin
9bab086967 rewrite_python_shebang: move loop invariants out of loop 2020-03-05 23:20:16 +00:00
Peter Teixeira
7ccec0cdf0 Use literal "python" 2020-03-04 10:13:32 -05:00
Bo Anderson
f9481d4d35 python: Fix error in virtualenv_install_with_resources
Fixes #7115.
2020-03-04 14:13:41 +00:00
Mike McQuaid
f6631d6449
Merge pull request #7019 from iMichka/python2doc
brew: remove most traces of python@2
2020-03-04 11:21:07 +00:00
Mike McQuaid
b3a340cc6a
Merge pull request #7089 from dawidd6/npm-args-unsafe-perm
node: add --unsafe-perm to std_args
2020-03-02 13:19:59 +00:00
Michka Popoff
79a3d3568b python: add rewrite function for generic shebangs
From PEP 394
https://www.python.org/dev/peps/pep-0394/#for-python-script-publishers

In cases where the script is expected to be executed outside virtual environments,
developers will need to be aware of the following discrepancies across platforms and installation methods:

Older Linux distributions will provide a python command that refers to Python 2, and will likely not provide a python2 command.
Some newer Linux distributions will provide a python command that refers to Python 3.
Some Linux distributions will not provide a python command at all by default, but will provide a python3 command by default.

When potentially targeting these environments, developers may either use a Python package installation tool that rewrites shebang lines
for the installed environment, provide instructions on updating shebang lines interactively,
or else use more specific shebang lines that are tailored to the target environment.
2020-02-28 20:08:43 +01:00
Dawid Dziurla
aac200a53d
node: detect root via Process.uid 2020-02-28 13:37:44 +01:00
Dawid Dziurla
79a1500f2b
node: add --unsafe-perm to std_args only if run as root 2020-02-28 13:00:43 +01:00
Dawid Dziurla
6874c79375
node: add --unsafe-perm to std_args 2020-02-28 12:47:03 +01:00
Michka Popoff
c46a30b575 brew: remove most traces of python@2 2020-02-17 22:38:24 +01:00
Michka Popoff
38feac473c virtualenv: support mojave and high sierra system Python
On High Sierra and Mojave, virtualenv 16.x does not build when used with
system Python
Fall back to an older virtualenv version, which is known to work.
2019-12-30 20:18:55 +01:00
Alexander Bayandin
c92a3d3f84 virtualenv_install_with_resources: add python@3.8 handling 2019-12-19 17:23:15 +00:00
Chongyu Zhu
22a7b4bc1e
python_virtualenv_constants: upgrade virtualenv to 16.7.4 2019-08-24 17:08:23 +08:00
Chongyu Zhu
97cbf43a3d
python_virtualenv_constants: upgrade virtualenv to 16.7.2 2019-07-27 04:49:46 +08:00
Chongyu Zhu
da20f63da1
python_virtualenv_constants: upgrade virtualenv to 16.7.1 2019-07-26 02:13:05 +08:00
Chongyu Zhu
ba9dde9a4e
python_virtualenv_constants: upgrade virtualenv to 16.6.2 2019-07-15 08:32:56 +08:00
Chongyu Zhu
08561335ce
python_virtualenv_constants: upgrade virtualenv to 16.6.1 2019-06-17 12:34:59 +08:00
Chongyu Zhu
0bb29e8253
python_virtualenv_constants: upgrade virtualenv to 16.6.0 2019-05-15 20:05:37 +08:00
Chongyu Zhu
e3615add8c
python_virtualenv_constants: upgrade virtualenv to 16.5.0 2019-04-24 19:12:00 +08:00
Mike McQuaid
36dbad3922
Add frozen_string_literal to all files. 2019-04-20 13:27:36 +09:00
EricFromCanada
fa6404e0f5 grammar fixes 2019-04-13 21:29:32 -04:00
Jonathan Chang
46af0260f0 python: support pypy3 2019-03-11 20:14:03 +11:00
Chongyu Zhu
9dbd04ac09
python_virtualenv_constants: upgrade virtualenv to 16.4.3 2019-03-01 11:15:57 +08:00
Mike McQuaid
e095da4d01
rubocop: enable Layout/EmptyLineAfterGuardClause. 2019-02-21 12:55:49 +00:00
Mike McQuaid
d64429a736
rubocop: enable Style/IfUnlessModifier. 2019-02-21 12:55:49 +00:00
Chongyu Zhu
6cac67bcd0
python_virtualenv_constants: upgrade virtualenv to 16.4.0 2019-02-09 23:10:50 +08:00
Mike McQuaid
1aa8ad09e2
Deprecate macOS versions below Mavericks
And remove all dead/unneeded code.
2019-01-27 12:27:47 +00:00
Chongyu Zhu
80d8d441a2
python_virtualenv_constants: upgrade virtualenv to 16.3.0 2019-01-26 14:26:35 +08:00
Chongyu Zhu
2181ea76c6
python_virtualenv_constants: upgrade virtualenv to 16.2.0 2019-01-01 18:21:23 +08:00
Shaun Jackman
e8b22690a0 Fix Language::Java::java_home_env for Linux
/usr/libexec/java_home is specific to macOS.
Language::Java::java_home_cmd is not implemented on Linux and raises
NotImplementedError.

Add private Language::Java::java_home_shell and use it instead of java_home_cmd.
Add public Language::Java::java_home for use by formulae.
2018-11-29 12:50:31 -08:00
Chongyu Zhu
77daf29c47
python_virtualenv_constants: upgrade virtualenv to 16.1.0 2018-11-01 00:47:47 +08:00
EricFromCanada
20167e5f1b Adjust comments to tidy API docs output. 2018-10-18 21:42:43 -04:00
Markus Reiter
c4d418e126 Use ActiveSupport’s #second. 2018-10-07 23:10:56 +02:00
Jonathan Chang
0fe273be5f language/python: support pypy 2018-09-24 16:24:30 -04:00