forked from python-poetry/poetry
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into merge-develop-into-master
# Conflicts: # .github/workflows/release.yml # CHANGELOG.md # Makefile # make-linux-release.sh # poetry.lock # poetry/__version__.py # poetry/packages/locker.py # pyproject.toml # tests/packages/test_locker.py
- Loading branch information
Showing
374 changed files
with
8,451 additions
and
18,425 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
freebsd_instance: | ||
image_family: freebsd-12-1-snap | ||
|
||
test_task: | ||
name: "Tests / FreeBSD / " | ||
env: | ||
matrix: | ||
- PYTHON: python2.7 | ||
- PYTHON: python3.5 | ||
- PYTHON: python3.6 | ||
- PYTHON: python3.7 | ||
- PYTHON: python3.8 | ||
python_script: | ||
- PYPACKAGE=$(printf '%s' $PYTHON | tr -d '.') | ||
- SQLPACKAGE=$(printf '%s-sqlite3' $PYPACKAGE | sed 's/thon//') | ||
- pkg install -y git-lite $PYPACKAGE $SQLPACKAGE | ||
pip_script: | ||
- $PYTHON -m ensurepip | ||
- $PYTHON -m pip install -U pip tox | ||
- $PYTHON -m pip install -U --pre poetry | ||
- poetry config virtualenvs.in-project true | ||
tox_script: $PYTHON -m tox -e py -- -q --junitxml=junit.xml tests | ||
on_failure: | ||
annotate_failure_artifacts: | ||
path: junit.xml | ||
format: junit | ||
type: text/xml | ||
|
||
release_task: | ||
name: "Release / FreeBSD" | ||
only_if: $CIRRUS_TAG != '' | ||
freebsd_instance: | ||
matrix: | ||
- image_family: freebsd-12-1-snap | ||
- image_family: freebsd-11-3-snap | ||
python_script: pkg install -y python3 python27 python35 python36 python37 python38 | ||
pip_script: | ||
- python2.7 -m ensurepip | ||
- python3.5 -m ensurepip | ||
- python3.6 -m ensurepip | ||
- python3.7 -m ensurepip | ||
- python3.8 -m ensurepip | ||
build_script: ./make-nix-release.sh | ||
archive_artifacts: | ||
path: "releases/*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -81,6 +81,7 @@ poetry init | |
* `--name`: Name of the package. | ||
* `--description`: Description of the package. | ||
* `--author`: Author of the package. | ||
* `--python` Compatible Python versions. | ||
* `--dependency`: Package to require with a version constraint. Should be in format `foo:1.0.0`. | ||
* `--dev-dependency`: Development requirements, see `--require`. | ||
|
||
|
@@ -107,6 +108,13 @@ the `--no-dev` option. | |
poetry install --no-dev | ||
``` | ||
|
||
If you want to remove old dependencies no longer present in the lock file, use the | ||
`--remove-untracked` option. | ||
|
||
```bash | ||
poetry install --remove-untracked | ||
``` | ||
|
||
You can also specify the extras you want installed | ||
by passing the `--E|--extras` option (See [Extras](#extras) for more info) | ||
|
||
|
@@ -247,6 +255,7 @@ poetry add "git+https://github.com/pallets/[email protected][dotenv,dev]" | |
* `--path`: The path to a dependency. | ||
* `--optional` : Add as an optional dependency. | ||
* `--dry-run` : Outputs the operations but will not execute anything (implicitly enables --verbose). | ||
* `--lock` : Do not perform install (only update the lockfile). | ||
|
||
|
||
## remove | ||
|
@@ -327,6 +336,7 @@ It can also build the package if you pass it the `--build` option. | |
Should match a repository name set by the [`config`](#config) command. | ||
* `--username (-u)`: The username to access the repository. | ||
* `--password (-p)`: The password to access the repository. | ||
* `--dry-run`: Perform all actions except upload the package. | ||
|
||
## config | ||
|
||
|
@@ -438,7 +448,9 @@ The table below illustrates the effect of these rules with concrete examples. | |
| prerelease | 1.0.3-alpha.0 | 1.0.3-alpha.1 | | ||
| prerelease | 1.0.3-beta.0 | 1.0.3-beta.1 | | ||
|
||
## Options | ||
|
||
* `--short (-s)`: Output the version number only. | ||
|
||
## export | ||
|
||
|
@@ -454,8 +466,8 @@ poetry export -f requirements.txt > requirements.txt | |
|
||
### Options | ||
|
||
* `--format (-f)`: The format to export to. Currently, only | ||
`requirements.txt` is supported. | ||
* `--format (-f)`: The format to export to (default: `requirements.txt`). | ||
Currently, only `requirements.txt` is supported. | ||
* `--output (-o)`: The name of the output file. If omitted, print to standard | ||
output. | ||
* `--dev`: Include development dependencies. | ||
|
@@ -469,3 +481,15 @@ The `env` command regroups sub commands to interact with the virtualenvs | |
associated with a specific project. | ||
|
||
See [Managing environments](/docs/managing-environments/) for more information about these commands. | ||
|
||
## cache | ||
|
||
The `cache` command regroups sub commands to interact with Poetry's cache. | ||
|
||
### cache list | ||
|
||
The `cache list` command lists Poetry's available caches. | ||
|
||
```bash | ||
poetry cache list | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.