1
0
Fork 0
mirror of https://github.com/python-poetry/install.python-poetry.org.git synced 2024-11-06 06:05:52 -05:00
Commit graph

59 commits

Author SHA1 Message Date
pre-commit-ci[bot]
42a10434ed [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/PyCQA/flake8: 5.0.4 → 6.0.0](https://github.com/PyCQA/flake8/compare/5.0.4...6.0.0)
- [github.com/pre-commit/pre-commit-hooks: v4.3.0 → v4.4.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.3.0...v4.4.0)
2022-11-28 19:58:07 -07:00
pre-commit-ci[bot]
fb4d36d19d [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/asottile/pyupgrade: v3.2.0 → v3.2.2](https://github.com/asottile/pyupgrade/compare/v3.2.0...v3.2.2)
2022-11-14 17:23:25 -07:00
pre-commit-ci[bot]
89f4049e20 [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/asottile/pyupgrade: v3.1.0 → v3.2.0](https://github.com/asottile/pyupgrade/compare/v3.1.0...v3.2.0)
2022-10-31 19:27:53 -06:00
Bartosz Sokorski
c776287cbd
Change -dev to full Python 3.11 version (#77)
As in the title, this PR removes the -dev part from Python 3.11 version
in CI.
2022-10-31 01:05:34 +01:00
pre-commit-ci[bot]
6362d37d57 [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/psf/black: 22.8.0 → 22.10.0](https://github.com/psf/black/compare/22.8.0...22.10.0)
- [github.com/asottile/pyupgrade: v2.38.2 → v3.1.0](https://github.com/asottile/pyupgrade/compare/v2.38.2...v3.1.0)
2022-10-10 19:23:17 -06:00
pre-commit-ci[bot]
6161821b1d [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/asottile/pyupgrade: v2.38.0 → v2.38.2](https://github.com/asottile/pyupgrade/compare/v2.38.0...v2.38.2)
2022-09-26 18:19:13 -06:00
pre-commit-ci[bot]
c8c3ce44ff [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/asottile/pyupgrade: v2.37.3 → v2.38.0](https://github.com/asottile/pyupgrade/compare/v2.37.3...v2.38.0)
2022-09-19 19:23:24 -06:00
Mathieu Kniewallner
6fd4578c5f chore(ci): don't fail fast on matrix 2022-09-17 19:13:16 -06:00
Mathieu Kniewallner
fb3ae6a4ee docs(README): consistently use install.python-poetry.org 2022-09-17 19:13:16 -06:00
Bjorn Neergaard
e8d8f76750 fix: check that sys.executable is valid before env creation 2022-09-17 15:49:17 -06:00
pre-commit-ci[bot]
206447fcd4
[pre-commit.ci] pre-commit autoupdate (#41)
updates:
- [github.com/asottile/pyupgrade: v2.34.0 → v2.37.3](https://github.com/asottile/pyupgrade/compare/v2.34.0...v2.37.3)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-09-13 01:17:36 +02:00
Bartosz Sokorski
9b64f71d73
Added pyupgrade check and upgraded script code (#16) 2022-09-07 00:56:46 -06:00
Mathieu Kniewallner
ae8a9ad9a8
ci: explicitly test for 1.2.0 2022-09-06 02:01:00 -06:00
Bjorn Neergaard
c71c7d6c22 ci: only test Ubuntu LTS versions 2022-09-06 01:59:59 -06:00
Bjorn Neergaard
edbdec9887 ci: update matrix versions 2022-09-06 01:59:59 -06:00
Bjorn Neergaard
ac6fb50a38 refactor: update path handling and comments
This is part of a major overhaul of the installer I hope to complete in
a relatively short time. This first pass makes sure we use consistent
directories on all platforms by preferring the documented paths to a
possibly unexpected `site.getuserbase()` (which results in a Library
path on macOS Framework builds, like Homebrew and OS-provided Pythons).

Path handling as a whole is updated to take advantage of `pathlib` and
DRY up some tedious code. It also starts the first stage of increasing
use of classes and careful thought as to the visibility of class-level
attributes in this script -- I hope to end up with a DSL-like end result
that is as informative as possible to the reader of this script.
2022-09-06 01:59:59 -06:00
pre-commit-ci[bot]
07dd8a55c5
[pre-commit.ci] pre-commit autoupdate (#35)
updates:
- [github.com/psf/black: 22.6.0 → 22.8.0](https://github.com/psf/black/compare/22.6.0...22.8.0)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-09-05 21:33:07 -04:00
Mathieu Kniewallner
e837f27653
Bump flake8 and additional dependencies (#27)
* chore: run `pre-commit autoupdate`

* build(deps): bump `flake8-bugbear` to `22.7.1`
2022-08-11 12:10:07 -04:00
Arun Babu Neelicattu
5ad0932c19 ci: add debian integration tests 2022-07-25 01:54:18 -06:00
Arun Babu Neelicattu
d2a07fc9f1 readme: document known issue with debian 2022-07-25 01:54:18 -06:00
Arun Babu Neelicattu
be23be56c5 installer: use virtualenv.pyz when ensurepip absent 2022-07-25 01:54:18 -06:00
StarHeart
303392379b fix: delete leftover poetry script on windows 2022-07-25 01:52:47 -06:00
finswimmer
915d307694 fix: resolve env path in case windows redirects installation path 2022-07-13 02:52:11 -06:00
finswimmer
af5e82544f
ci: use Poetry 1.1.14 in installer workflow (#20) 2022-07-11 16:54:48 +02:00
pre-commit-ci[bot]
492e67ea3e
[pre-commit.ci] pre-commit autoupdate (#19)
updates:
- [github.com/psf/black: 22.3.0 → 22.6.0](https://github.com/psf/black/compare/22.3.0...22.6.0)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-07-05 18:59:46 -04:00
Bartosz Sokorski
9fb40d244a
Drop --isolated from pip arguments (#17) 2022-06-23 08:08:48 -06:00
pre-commit-ci[bot]
c09d0c66e7
[pre-commit.ci] pre-commit autoupdate (#15)
updates:
- [github.com/pre-commit/pre-commit-hooks: v4.2.0 → v4.3.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.2.0...v4.3.0)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-06-13 19:13:33 -04:00
Mathieu Kniewallner
9804ea2fb8
Test against python 3.11 and remove obsolete code-quality workflow (#14)
* chore(ci): remove obsolete `code-quality` workflow

* chore(ci): test against Python 3.11

* chore(ci): use `1.1.13` for Poetry version to install

* chore(ci): bump actions

* chore(pre-commit): pin `flake8-bugbear`

* chore(pre-commit): remove unneeeded `toml` extra for `isort`

* chore(isort): remove options already in `black` profile
2022-06-06 11:51:12 -06:00
pre-commit-ci[bot]
0fab381034
[pre-commit.ci] pre-commit autoupdate (#13)
updates:
- [github.com/psf/black: 22.1.0 → 22.3.0](https://github.com/psf/black/compare/22.1.0...22.3.0)
- [github.com/pre-commit/pre-commit-hooks: v4.1.0 → v4.2.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.1.0...v4.2.0)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-04-20 09:29:19 -04:00
Dimas Putra
f0d4b98ac1
Set content-type header to text/plain
This change ensures content-type header is set to ensure correect
encoding detection, eg: on pwsh.

Resolves: python-poetry/poetry#4845
2022-02-09 10:29:08 +01:00
pre-commit-ci[bot]
1a1d031ff7 [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/psf/black: 21.12b0 → 22.1.0](https://github.com/psf/black/compare/21.12b0...22.1.0)
2022-02-08 21:17:10 +01:00
Stijn de Gooijer
7dcb4ce0e4
ensure exit code 1 on invalid version 2022-02-08 21:13:20 +01:00
pre-commit-ci[bot]
767db614c9 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2022-01-21 10:00:14 -07:00
s0600204
5ddfc5667c Update README.md 2022-01-21 10:00:14 -07:00
s0600204
110f89092a Fix installing under MinGW on Windows
python[.exe], when installed via (msys) MinGW on Windows, can be found under a
path structure similar to that you might find on *nix systems.

The install-python.py script was not taking this into consideration, causing
installation failure under Windows + MinGW.

A similar fault in poetry itself was resolved with python-poetry/poetry#3713.
2022-01-21 10:00:14 -07:00
pre-commit-ci[bot]
09509fbe05 [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/psf/black: 21.10b0 → 21.12b0](https://github.com/psf/black/compare/21.10b0...21.12b0)
- https://gitlab.com/pycqa/flake8https://github.com/PyCQA/flake8
- [github.com/PyCQA/flake8: 3.9.2 → 4.0.1](https://github.com/PyCQA/flake8/compare/3.9.2...4.0.1)
- https://github.com/timothycrosley/isorthttps://github.com/PyCQA/isort
- [github.com/pre-commit/pre-commit-hooks: v4.0.1 → v4.1.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.0.1...v4.1.0)
2022-01-21 09:52:43 -07:00
Bjorn Neergaard
8a49e07b64 ci: fix concurrency group for push events 2021-11-21 10:51:52 -07:00
Bjorn Neergaard
2f92f18b7b chore: clean up minor code smells
This resolves some code smells found during python-poetry/poetry#4773. I
have not yet added the new lints to this repo, but I once they're
relatively stable/agreed on the main repo I will PR them here.
2021-11-16 09:48:34 -07:00
Bjorn Neergaard
ea79142501 ci: improve installer.yml workflow
Test on newer OS versions, DRY tasks, and limit concurrency
during PRs (kill current jobs on new push).
2021-11-16 09:48:34 -07:00
Arun Babu Neelicattu
c864942778
Misc. cleanup for project setup (#1)
* ci: fix branch configuration

* readme: add initial content

* add .gitignore

* add code quality checks managed by pre-commit
2021-11-12 18:28:30 -07:00
Arun Babu Neelicattu
f308a34806 vercel: add initial configuration 2021-11-12 21:39:38 +01:00
Arun Babu Neelicattu
75536e9b5d installer: use venv and improve error handling (#4099)
* installer: improve error handling and logging

Co-authored-by: Bjorn Neergaard <bjorn@neersighted.com>

* installer: default to using in-built venv module

This change refactors virtual environment creation and introduces a new
wrapper to handle command execution etc. If venv module is not
available, in cases like that of the ubuntu distribution where the
module is not part of the default python install, the virtualenv
package is used by fetching the appropriate zipapp for the package for
the python runtime.

Resolves: #4089
Resolves: #4093

* ci/installer: upload failure logs

* installer: preserve existing environment on failure

This change ensures that if creation of a new environment fails, any
previously existing environment is restored.

Co-authored-by: Bjorn Neergaard <bjorn@neersighted.com>
2021-11-11 19:59:23 -07:00
Arun Babu Neelicattu
02b8003b33 ci: add install-poetry script workflow (#4666) 2021-11-10 08:23:17 -07:00
Nishant Misra
b2aef2b5cd Poetry Install with pip unavailable shouldn't throw Exception (#4522)
When installing Poetry through `install-poetry.py`, if `pip` is not
available, Exception should not be raised, rather installation should
be aborted with user-friendly error msg.

Fixes #4521

Co-authored-by: TurtleNishant <nishant@turtlelectric.com>
Co-authored-by: Bjorn Neergaard <bjorn@neersighted.com>
2021-11-10 07:27:47 -07:00
Nikolai Røed Kristiansen
396c06a6a9 Fix printing install errors redirected to stdout (#4466)
Following a regression in #4443
2021-09-19 07:55:08 +02:00
Sébastien Eustace
2f316d632b Merge pull request #4433 from python-poetry/revert-system-env-changes
Fix the detection of the system environment with custom installer
2021-09-14 00:30:52 +02:00
Sébastien Eustace
28f4f9f527 Fix the detection of the system environment with custom installer 2021-09-06 18:18:11 +02:00
Sébastien Eustace
8c5f2528f6 Merge pull request #4443 from finswimmer/issue/4441-capture-output
fix (install-poetry): revert use of capture_output
2021-08-26 18:13:03 +02:00
finswimmer
45fac464bd fix (install-poetry): revert use of capture_output 2021-08-26 17:55:48 +02:00
Mathieu Kniewallner
0e3b144488 fix(install-poetry): check for returncode when pip installing Poetry (#4425) 2021-08-26 14:36:08 +02:00