Rasmus Wriedt Larsen
d1a140b28e
python-setup: Fix pipenv (--keep-outdated deprecated)
...
Recently released pipenv removed support for `--keep-outdated` flag (see https://github.com/pypa/pipenv/blob/main/CHANGELOG.rst#pipenv-202379-2023-07-09 )
Local testing showed that installation was fine without this 👍
2023-07-12 17:09:00 +02:00
Rasmus Wriedt Larsen
3b0a2f607d
python-setup: Update comment with fully qualified configuration name
2022-12-06 11:37:57 +01:00
Rasmus Wriedt Larsen
27c1438455
python-setup: Apply suggestions from code review
2022-12-06 11:32:21 +01:00
Rasmus Wriedt Larsen
7fc528c3c6
python-setup: Don't allow Poetry to make venv in project
...
I mostly verified this works on my local machine, but did add a sample `poetry.toml` to the tests, so it can be verified from looking at the logs 🤷
2022-12-06 10:41:46 +01:00
Henry Mercer
ff5ca122ed
Merge pull request #1257 from github/rasmuswl/fix-ubuntu22.04-venv-creation
...
python-setup: Fix venv creation in Ubuntu 22.04
2022-09-21 16:27:55 +01:00
Rasmus Wriedt Larsen
32ca2cf500
Apply suggestions from code review
...
Co-authored-by: Henry Mercer <henrymercer@github.com >
2022-09-21 16:06:07 +02:00
Rasmus Wriedt Larsen
8a893ddf18
python-setup: Flush even more
2022-09-21 15:36:13 +02:00
Rasmus Wriedt Larsen
93ba53f2de
add missing spaces
2022-09-21 15:36:13 +02:00
Rasmus Wriedt Larsen
1fa5d72846
python-setup: Fail early if installing for Python 2, and python2 not available
2022-09-21 14:50:13 +02:00
Rasmus Wriedt Larsen
ca8a78d5f3
python-setup: flush at the end of _check_call
2022-09-21 10:02:51 +02:00
Rasmus Wriedt Larsen
2264307214
python-setup: change env passing
2022-09-21 10:01:57 +02:00
Rasmus Wriedt Larsen
70509c3884
python-setup: Add support for Poetry 1.2
2022-09-19 12:21:43 +02:00
Rasmus Wriedt Larsen
b9577df761
python-setup: refactor Pipenv without lockfile
2022-04-18 11:14:14 -04:00
Michael A. Smith
808c29257b
Support Pipfile without Pipfile.lock
...
As previously written, if codeql finds a `Pipfile`, but no `Pipfile.lock`, it will run `pipenv install` with args that require `Pipfile.lock` to exist. Pipfile will fail with this message:
```
Usage: python -m pipenv install [OPTIONS] [PACKAGES]...
ERROR:: Pipfile.lock must exist to use --keep-outdated!
package installation with pipenv failed, see error above
```
This changeset enables auto_install to work with Pipfile when there is no lock. (Bonus: `--skip-lock` is generally a bit faster.)
2022-04-18 11:14:14 -04:00
David Verdeguer
e0f78380e3
Merge branch 'main' into daverlo/python-windows
2020-10-15 12:12:50 +02:00
David Verdeguer
7d1f309c39
Address comments
2020-10-15 11:56:40 +02:00
David Verdeguer
2c3dafc162
Use sys.executable
2020-10-14 10:54:41 +02:00
David Verdeguer
0d97ea8f14
Call pipenv and poetry through python
2020-10-13 17:38:53 +02:00
Rasmus Wriedt Larsen
64ebf10c1d
Don't use ::set-env in python-setup
...
Is now deprecated as described in
https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/
2020-10-08 16:12:40 +02:00
David Verdeguer
9bc8c56ef0
Add missing [
2020-10-08 12:17:28 +02:00
David Verdeguer
424a9cfa1c
Apply suggestions from code review
...
Co-authored-by: Arthur Baars <aibaars@github.com >
2020-10-08 11:59:35 +02:00
David Verdeguer
e97bdbdfac
Combine auto_install scripts
2020-10-07 12:55:02 +02:00
Rasmus Wriedt Larsen
18312707fe
Explain get_extractor_version for python setup scripts
2020-09-25 12:07:22 +02:00
Rasmus Wriedt Larsen
dffce9945c
Minor fixes to python installation scripts based on code review
2020-09-24 15:43:34 +02:00
Rasmus Wriedt Larsen
7fc41c62be
Update python scripts to handle setup.py
2020-09-11 12:40:40 +02:00
David Verdeguer
5701037850
Add python scripts
2020-09-11 12:25:47 +02:00