Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
python-poetry
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
python-poetry
Commits
d52780c5
Commit
d52780c5
authored
Apr 05, 2022
by
Arun Babu Neelicattu
Committed by
Randy Döring
Apr 16, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
export: add poetry-plugin-export
parent
d18b6520
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
105 additions
and
85 deletions
+105
-85
docs/cli.md
+12
-3
poetry.lock
+88
-69
pyproject.toml
+1
-0
tests/console/commands/test_export.py
+4
-13
No files found.
docs/cli.md
View file @
d52780c5
...
...
@@ -621,8 +621,13 @@ poetry export -f requirements.txt --output requirements.txt
```
{{% note %}}
Only the `
requirements.txt
` format is currently supported.
This command is also available as a pre-commit hook. See [pre-commit hooks](/docs/pre-commit-hooks#poetry-export) for more information.
This command is provided by the [Export Poetry Plugin](https://github.com/python-poetry/poetry-plugin-export)
and is also available as a pre-commit hook. See [pre-commit hooks](/docs/pre-commit-hooks#poetry-export) for more information.
{{% /note %}}
{{% note %}}
Unlike the `
install
` command, this command only includes the project's dependencies defined in the implicit `
default
`
group defined in `
tool.poetry.dependencies
` when used without specifying any options.
{{% /note %}}
### Options
...
...
@@ -631,8 +636,12 @@ This command is also available as a pre-commit hook. See [pre-commit hooks](/doc
Currently, only `
requirements.txt
` is supported.
* `
--output (-o)
`: The name of the output file. If omitted, print to standard
output.
* `
--dev
`: Include development dependencies.
* `
--dev
`: Include development dependencies.
(**Deprecated**)
* `
--extras (-E)
`: Extra sets of dependencies to include.
* `
--without
`: The dependency groups to ignore.
* `
--with
`: The optional dependency groups to include.
* `
--only
`: The only dependency groups to include.
* `
--default
`: Only include the default dependencies. (**Deprecated**)
* `
--without-hashes
`: Exclude hashes from the exported file.
* `
--without-urls
`: Exclude source repository urls from the exported file.
* `
--with-credentials
`: Include credentials for extra indices.
...
...
poetry.lock
View file @
d52780c5
...
...
@@ -129,7 +129,7 @@ python-versions = ">=3.6,<4.0"
[[package]]
name = "cryptography"
version = "36.0.
1
"
version = "36.0.
2
"
description = "cryptography is a package which provides cryptographic recipes and primitives to Python developers."
category = "main"
optional = false
...
...
@@ -148,14 +148,14 @@ test = ["pytest (>=6.2.0)", "pytest-cov", "pytest-subtests", "pytest-xdist", "pr
[[package]]
name = "deepdiff"
version = "5.
7
.0"
version = "5.
8
.0"
description = "Deep Difference and Search of any Python object/data."
category = "dev"
optional = false
python-versions = ">=3.6"
[package.dependencies]
ordered-set = "
4.0.2
"
ordered-set = "
>=4.1.0,<4.2.0
"
[package.extras]
cli = ["click (==8.0.3)", "pyyaml (==5.4.1)", "toml (==0.10.2)", "clevercsv (==0.7.1)"]
...
...
@@ -224,7 +224,7 @@ python-versions = ">=3"
[[package]]
name = "identify"
version = "2.4.1
1
"
version = "2.4.1
2
"
description = "File identification library for Python"
category = "dev"
optional = false
...
...
@@ -243,7 +243,7 @@ python-versions = ">=3.5"
[[package]]
name = "importlib-metadata"
version = "4.11.
2
"
version = "4.11.
3
"
description = "Read metadata from Python packages"
category = "main"
optional = false
...
...
@@ -268,14 +268,14 @@ python-versions = "*"
[[package]]
name = "jeepney"
version = "0.
7.1
"
version = "0.
8.0
"
description = "Low-level, pure Python DBus protocol wrapper."
category = "main"
optional = false
python-versions = ">=3.
6
"
python-versions = ">=3.
7
"
[package.extras]
test = ["pytest", "pytest-trio", "pytest-asyncio", "testpath", "trio", "async-timeout"]
test = ["pytest", "pytest-trio", "pytest-asyncio
(>=0.17)
", "testpath", "trio", "async-timeout"]
trio = ["trio", "async-generator"]
[[package]]
...
...
@@ -322,11 +322,14 @@ python-versions = "*"
[[package]]
name = "ordered-set"
version = "4.
0.2
"
description = "A
set that remembers its order, and allows looking up its items by their index in that order.
"
version = "4.
1.0
"
description = "A
n OrderedSet is a custom MutableSet that remembers its order, so that every
"
category = "dev"
optional = false
python-versions = ">=3.5"
python-versions = ">=3.7"
[package.extras]
dev = ["pytest", "black", "mypy"]
[[package]]
name = "packaging"
...
...
@@ -400,12 +403,23 @@ python-versions = ">=3.7,<4.0"
importlib-metadata = {version = ">=1.7.0", markers = "python_version < \"3.8\""}
[[package]]
name = "poetry-plugin-export"
version = "1.0.1"
description = "Poetry plugin to export the dependencies to various formats"
category = "main"
optional = false
python-versions = ">=3.7,<4.0"
[package.dependencies]
poetry = ">=1.2.0b1dev0,<2.0.0"
[[package]]
name = "pre-commit"
version = "2.1
7.0
"
version = "2.1
8.1
"
description = "A framework for managing and maintaining multi-language pre-commit hooks."
category = "dev"
optional = false
python-versions = ">=3.
6.1
"
python-versions = ">=3.
7
"
[package.dependencies]
cfgv = ">=2.0.0"
...
...
@@ -450,14 +464,14 @@ python-versions = "*"
[[package]]
name = "pyparsing"
version = "3.0.
7
"
description = "
Python parsing module
"
version = "3.0.
8
"
description = "
pyparsing module - Classes and methods to define and execute parsing grammars
"
category = "main"
optional = false
python-versions = ">=3.6"
python-versions = ">=3.6
.8
"
[package.extras]
diagrams = ["
jinja2", "railroad-diagrams
"]
diagrams = ["
railroad-diagrams", "jinja2
"]
[[package]]
name = "pytest"
...
...
@@ -615,7 +629,7 @@ python-versions = ">=2.6, !=3.0.*, !=3.1.*, !=3.2.*"
[[package]]
name = "tomlkit"
version = "0.10.
0
"
version = "0.10.
1
"
description = "Style preserving TOML library"
category = "main"
optional = false
...
...
@@ -623,7 +637,7 @@ python-versions = ">=3.6,<4.0"
[[package]]
name = "tox"
version = "3.2
4.5
"
version = "3.2
5.0
"
description = "tox is a generic virtualenv management and test command line tool"
category = "dev"
optional = false
...
...
@@ -654,20 +668,20 @@ python-versions = ">=3.6"
[[package]]
name = "urllib3"
version = "1.26.
8
"
version = "1.26.
9
"
description = "HTTP library with thread-safe connection pooling, file post, and more."
category = "main"
optional = false
python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, <4"
[package.extras]
brotli = ["brotlipy (>=0.6.0)"]
brotli = ["brotli
cffi (>=0.8.0)", "brotli (>=1.0.9)", "brotli
py (>=0.6.0)"]
secure = ["pyOpenSSL (>=0.14)", "cryptography (>=1.3.4)", "idna (>=2.0.0)", "certifi", "ipaddress"]
socks = ["PySocks (>=1.5.6,!=1.5.7,<2.0)"]
[[package]]
name = "virtualenv"
version = "20.1
3.2
"
version = "20.1
4.1
"
description = "Virtual Python Environment builder"
category = "main"
optional = false
...
...
@@ -694,20 +708,20 @@ python-versions = "*"
[[package]]
name = "zipp"
version = "3.
7
.0"
version = "3.
8
.0"
description = "Backport of pathlib-compatible object wrapper for zip files"
category = "main"
optional = false
python-versions = ">=3.7"
[package.extras]
docs = ["sphinx", "jaraco.packaging (>=
8.2
)", "rst.linker (>=1.9)"]
testing = ["pytest (>=6)", "pytest-checkdocs (>=2.4)", "pytest-flake8", "pytest-cov", "pytest-enabler (>=1.0.1)", "jaraco.itertools", "func-timeout", "pytest-black (>=0.3.7)", "pytest-mypy"]
docs = ["sphinx", "jaraco.packaging (>=
9
)", "rst.linker (>=1.9)"]
testing = ["pytest (>=6)", "pytest-checkdocs (>=2.4)", "pytest-flake8", "pytest-cov", "pytest-enabler (>=1.0.1)", "jaraco.itertools", "func-timeout", "pytest-black (>=0.3.7)", "pytest-mypy
(>=0.9.1)
"]
[metadata]
lock-version = "1.1"
python-versions = "^3.7"
content-hash = "
e1979eb8cccef74af26d7fc01bb77d64515a2633fdb28bdbc2837da52fb24b98
"
content-hash = "
a6debe7eeee8b7d0715ed531cb2ec206284590eb4825749039c0e5006e8c8fcc
"
[metadata.files]
atomicwrites = [
...
...
@@ -846,30 +860,30 @@ crashtest = [
{file = "crashtest-0.3.1.tar.gz", hash = "sha256:42ca7b6ce88b6c7433e2ce47ea884e91ec93104a4b754998be498a8e6c3d37dd"},
]
cryptography = [
{file = "cryptography-36.0.
1-cp36-abi3-macosx_10_10_universal2.whl", hash = "sha256:73bc2d3f2444bcfeac67dd130ff2ea598ea5f20b40e36d19821b4df8c9c5037b
"},
{file = "cryptography-36.0.
1-cp36-abi3-macosx_10_10_x86_64.whl", hash = "sha256:2d87cdcb378d3cfed944dac30596da1968f88fb96d7fc34fdae30a99054b2e31
"},
{file = "cryptography-36.0.
1-cp36-abi3-manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:74d6c7e80609c0f4c2434b97b80c7f8fdfaa072ca4baab7e239a15d6d70ed73a
"},
{file = "cryptography-36.0.
1-cp36-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_24_aarch64.whl", hash = "sha256:6c0c021f35b421ebf5976abf2daacc47e235f8b6082d3396a2fe3ccd537ab173
"},
{file = "cryptography-36.0.
1-cp36-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5d59a9d55027a8b88fd9fd2826c4392bd487d74bf628bb9d39beecc62a644c12
"},
{file = "cryptography-36.0.
1-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0a817b961b46894c5ca8a66b599c745b9a3d9f822725221f0e0fe49dc043a3a3
"},
{file = "cryptography-36.0.
1-cp36-abi3-manylinux_2_24_x86_64.whl", hash = "sha256:94ae132f0e40fe48f310bba63f477f14a43116f05ddb69d6fa31e93f05848ae2
"},
{file = "cryptography-36.0.
1-cp36-abi3-musllinux_1_1_aarch64.whl", hash = "sha256:7be0eec337359c155df191d6ae00a5e8bbb63933883f4f5dffc439dac5348c3f
"},
{file = "cryptography-36.0.
1-cp36-abi3-musllinux_1_1_x86_64.whl", hash = "sha256:e0344c14c9cb89e76eb6a060e67980c9e35b3f36691e15e1b7a9e58a0a6c6dc3
"},
{file = "cryptography-36.0.
1-cp36-abi3-win32.whl", hash = "sha256:4caa4b893d8fad33cf1964d3e51842cd78ba87401ab1d2e44556826df849a8ca
"},
{file = "cryptography-36.0.
1-cp36-abi3-win_amd64.whl", hash = "sha256:391432971a66cfaf94b21c24ab465a4cc3e8bf4a939c1ca5c3e3a6e0abebdbcf
"},
{file = "cryptography-36.0.
1-pp37-pypy37_pp73-manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:bb5829d027ff82aa872d76158919045a7c1e91fbf241aec32cb07956e9ebd3c9
"},
{file = "cryptography-36.0.
1-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ebc15b1c22e55c4d5566e3ca4db8689470a0ca2babef8e3a9ee057a8b82ce4b1
"},
{file = "cryptography-36.0.
1-pp37-pypy37_pp73-manylinux_2_24_x86_64.whl", hash = "sha256:596f3cd67e1b950bc372c33f1a28a0692080625592ea6392987dba7f09f17a94
"},
{file = "cryptography-36.0.
1-pp38-pypy38_pp73-macosx_10_10_x86_64.whl", hash = "sha256:30ee1eb3ebe1644d1c3f183d115a8c04e4e603ed6ce8e394ed39eea4a98469ac
"},
{file = "cryptography-36.0.
1-pp38-pypy38_pp73-manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:ec63da4e7e4a5f924b90af42eddf20b698a70e58d86a72d943857c4c6045b3ee
"},
{file = "cryptography-36.0.
1-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ca238ceb7ba0bdf6ce88c1b74a87bffcee5afbfa1e41e173b1ceb095b39add46
"},
{file = "cryptography-36.0.
1-pp38-pypy38_pp73-manylinux_2_24_x86_64.whl", hash = "sha256:ca28641954f767f9822c24e927ad894d45d5a1e501767599647259cbf030b903
"},
{file = "cryptography-36.0.
1-pp38-pypy38_pp73-win_amd64.whl", hash = "sha256:39bdf8e70eee6b1c7b289ec6e5d84d49a6bfa11f8b8646b5b3dfe41219153316
"},
{file = "cryptography-36.0.
1.tar.gz", hash = "sha256:53e5c1dc3d7a953de055d77bef2ff607ceef7a2aac0353b5d630ab67f7423638
"},
{file = "cryptography-36.0.
2-cp36-abi3-macosx_10_10_universal2.whl", hash = "sha256:4e2dddd38a5ba733be6a025a1475a9f45e4e41139d1321f412c6b360b19070b6
"},
{file = "cryptography-36.0.
2-cp36-abi3-macosx_10_10_x86_64.whl", hash = "sha256:4881d09298cd0b669bb15b9cfe6166f16fc1277b4ed0d04a22f3d6430cb30f1d
"},
{file = "cryptography-36.0.
2-cp36-abi3-manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:ea634401ca02367c1567f012317502ef3437522e2fc44a3ea1844de028fa4b84
"},
{file = "cryptography-36.0.
2-cp36-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_24_aarch64.whl", hash = "sha256:7be666cc4599b415f320839e36367b273db8501127b38316f3b9f22f17a0b815
"},
{file = "cryptography-36.0.
2-cp36-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8241cac0aae90b82d6b5c443b853723bcc66963970c67e56e71a2609dc4b5eaf
"},
{file = "cryptography-36.0.
2-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7b2d54e787a884ffc6e187262823b6feb06c338084bbe80d45166a1cb1c6c5bf
"},
{file = "cryptography-36.0.
2-cp36-abi3-manylinux_2_24_x86_64.whl", hash = "sha256:c2c5250ff0d36fd58550252f54915776940e4e866f38f3a7866d92b32a654b86
"},
{file = "cryptography-36.0.
2-cp36-abi3-musllinux_1_1_aarch64.whl", hash = "sha256:ec6597aa85ce03f3e507566b8bcdf9da2227ec86c4266bd5e6ab4d9e0cc8dab2
"},
{file = "cryptography-36.0.
2-cp36-abi3-musllinux_1_1_x86_64.whl", hash = "sha256:ca9f686517ec2c4a4ce930207f75c00bf03d94e5063cbc00a1dc42531511b7eb
"},
{file = "cryptography-36.0.
2-cp36-abi3-win32.whl", hash = "sha256:f64b232348ee82f13aac22856515ce0195837f6968aeaa94a3d0353ea2ec06a6
"},
{file = "cryptography-36.0.
2-cp36-abi3-win_amd64.whl", hash = "sha256:53e0285b49fd0ab6e604f4c5d9c5ddd98de77018542e88366923f152dbeb3c29
"},
{file = "cryptography-36.0.
2-pp37-pypy37_pp73-manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:32db5cc49c73f39aac27574522cecd0a4bb7384e71198bc65a0d23f901e89bb7
"},
{file = "cryptography-36.0.
2-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d2b3d199647468d410994dbeb8cec5816fb74feb9368aedf300af709ef507e3e
"},
{file = "cryptography-36.0.
2-pp37-pypy37_pp73-manylinux_2_24_x86_64.whl", hash = "sha256:da73d095f8590ad437cd5e9faf6628a218aa7c387e1fdf67b888b47ba56a17f0
"},
{file = "cryptography-36.0.
2-pp38-pypy38_pp73-macosx_10_10_x86_64.whl", hash = "sha256:0a3bf09bb0b7a2c93ce7b98cb107e9170a90c51a0162a20af1c61c765b90e60b
"},
{file = "cryptography-36.0.
2-pp38-pypy38_pp73-manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:8897b7b7ec077c819187a123174b645eb680c13df68354ed99f9b40a50898f77
"},
{file = "cryptography-36.0.
2-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:82740818f2f240a5da8dfb8943b360e4f24022b093207160c77cadade47d7c85
"},
{file = "cryptography-36.0.
2-pp38-pypy38_pp73-manylinux_2_24_x86_64.whl", hash = "sha256:1f64a62b3b75e4005df19d3b5235abd43fa6358d5516cfc43d87aeba8d08dd51
"},
{file = "cryptography-36.0.
2-pp38-pypy38_pp73-win_amd64.whl", hash = "sha256:e167b6b710c7f7bc54e67ef593f8731e1f45aa35f8a8a7b72d6e42ec76afd4b3
"},
{file = "cryptography-36.0.
2.tar.gz", hash = "sha256:70f8f4f7bb2ac9f340655cbac89d68c527af5bb4387522a8413e841e3e6628c9
"},
]
deepdiff = [
{file = "deepdiff-5.
7.0-py3-none-any.whl", hash = "sha256:1ffb38c3b5d9174eb2df95850c93aee55ec00e19396925036a2e680f725079e0
"},
{file = "deepdiff-5.
7.0.tar.gz", hash = "sha256:838766484e323dcd9dec6955926a893a83767dc3f3f94542773e6aa096efe5d4
"},
{file = "deepdiff-5.
8.0-py3-none-any.whl", hash = "sha256:6b71714a6a5fb4cd6ab74c97f53303029118f96128082422342a9129a5f25c8f
"},
{file = "deepdiff-5.
8.0.tar.gz", hash = "sha256:7e641c0cd6429c9e1b64a07b8f7713382a5626afe18c72bcafa8a4343c05c701
"},
]
distlib = [
{file = "distlib-0.3.4-py2.py3-none-any.whl", hash = "sha256:6564fe0a8f51e734df6333d08b8b94d4ea8ee6b99b5ed50613f731fd4089f34b"},
...
...
@@ -894,24 +908,24 @@ httpretty = [
{file = "httpretty-1.1.4.tar.gz", hash = "sha256:20de0e5dd5a18292d36d928cc3d6e52f8b2ac73daec40d41eb62dee154933b68"},
]
identify = [
{file = "identify-2.4.1
1-py2.py3-none-any.whl", hash = "sha256:fd906823ed1db23c7a48f9b176a1d71cb8abede1e21ebe614bac7bdd688d921
3"},
{file = "identify-2.4.1
1.tar.gz", hash = "sha256:2986942d3974c8f2e5019a190523b0b0e2a07cb8e89bf236727fb4b26f27f8fd
"},
{file = "identify-2.4.1
2-py2.py3-none-any.whl", hash = "sha256:5f06b14366bd1facb88b00540a1de05b69b310cbc2654db3c7e07fa3a433932
3"},
{file = "identify-2.4.1
2.tar.gz", hash = "sha256:3f3244a559290e7d3deb9e9adc7b33594c1bc85a9dd82e0f1be519bf12a1ec17
"},
]
idna = [
{file = "idna-3.3-py3-none-any.whl", hash = "sha256:84d9dd047ffa80596e0f246e2eab0b391788b0503584e8945f2368256d2735ff"},
{file = "idna-3.3.tar.gz", hash = "sha256:9d643ff0a55b762d5cdb124b8eaa99c66322e2157b69160bc32796e824360e6d"},
]
importlib-metadata = [
{file = "importlib_metadata-4.11.
2-py3-none-any.whl", hash = "sha256:d16e8c1deb60de41b8e8ed21c1a7b947b0bc62fab7e1d470bcdf331cea2e6735
"},
{file = "importlib_metadata-4.11.
2.tar.gz", hash = "sha256:b36ffa925fe3139b2f6ff11d6925ffd4fa7bc47870165e3ac260ac7b4f91e6ac
"},
{file = "importlib_metadata-4.11.
3-py3-none-any.whl", hash = "sha256:1208431ca90a8cca1a6b8af391bb53c1a2db74e5d1cef6ddced95d4b2062edc6
"},
{file = "importlib_metadata-4.11.
3.tar.gz", hash = "sha256:ea4c597ebf37142f827b8f39299579e31685c31d3a438b59f469406afd0f2539
"},
]
iniconfig = [
{file = "iniconfig-1.1.1-py2.py3-none-any.whl", hash = "sha256:011e24c64b7f47f6ebd835bb12a743f2fbe9a26d4cecaa7f53bc4f35ee9da8b3"},
{file = "iniconfig-1.1.1.tar.gz", hash = "sha256:bc3af051d7d14b2ee5ef9969666def0cd1a000e121eaea580d4a313df4b37f32"},
]
jeepney = [
{file = "jeepney-0.
7.1-py3-none-any.whl", hash = "sha256:1b5a0ea5c0e7b166b2f5895b91a08c14de8915afda4407fb5022a195224958ac
"},
{file = "jeepney-0.
7.1.tar.gz", hash = "sha256:fa9e232dfa0c498bd0b8a3a73b8d8a31978304dcef0515adc859d4e096f96f4f
"},
{file = "jeepney-0.
8.0-py3-none-any.whl", hash = "sha256:c0a454ad016ca575060802ee4d590dd912e35c122fa04e70306de3d076cce755
"},
{file = "jeepney-0.
8.0.tar.gz", hash = "sha256:5efe48d255973902f6badc3ce55e2aa6c5c3b3bc642059ef3a91247bcfcc5806
"},
]
keyring = [
{file = "keyring-23.5.0-py3-none-any.whl", hash = "sha256:b0d28928ac3ec8e42ef4cc227822647a19f1d544f21f96457965dc01cf555261"},
...
...
@@ -962,7 +976,8 @@ nodeenv = [
{file = "nodeenv-1.6.0.tar.gz", hash = "sha256:3ef13ff90291ba2a4a7a4ff9a979b63ffdd00a464dbe04acf0ea6471517a4c2b"},
]
ordered-set = [
{file = "ordered-set-4.0.2.tar.gz", hash = "sha256:ba93b2df055bca202116ec44b9bead3df33ea63a7d5827ff8e16738b97f33a95"},
{file = "ordered-set-4.1.0.tar.gz", hash = "sha256:694a8e44c87657c59292ede72891eb91d34131f6531463aab3009191c77364a8"},
{file = "ordered_set-4.1.0-py3-none-any.whl", hash = "sha256:046e1132c71fcf3330438a539928932caf51ddbc582496833e23de611de14562"},
]
packaging = [
{file = "packaging-20.9-py2.py3-none-any.whl", hash = "sha256:67714da7f7bc052e064859c05c595155bd1ee9f69f76557e21f051443c20947a"},
...
...
@@ -988,9 +1003,13 @@ poetry-core = [
{file = "poetry-core-1.1.0a7.tar.gz", hash = "sha256:4622ae680842ac9b1b9c3b0e8dc467c2e291d1a5c434b6bd413907a2e5571d92"},
{file = "poetry_core-1.1.0a7-py3-none-any.whl", hash = "sha256:724e8b5368f270461e622396305d0c2e760ec9d4c14d072e6b944da9384c67de"},
]
poetry-plugin-export = [
{file = "poetry-plugin-export-1.0.1.tar.gz", hash = "sha256:e2a87bef5b05cb37eee67fb25d9e4f8e8d538ab64a7ec582ab207366722b9dbe"},
{file = "poetry_plugin_export-1.0.1-py3-none-any.whl", hash = "sha256:83902686faa7820be7e445978562c852dda94568bf63cc48ec47f55b250f1f40"},
]
pre-commit = [
{file = "pre_commit-2.1
7.0-py2.py3-none-any.whl", hash = "sha256:725fa7459782d7bec5ead072810e47351de01709be838c2ce1726b9591dad616
"},
{file = "pre_commit-2.1
7.0.tar.gz", hash = "sha256:c1a8040ff15ad3d648c70cc3e55b93e4d2d5b687320955505587fd79bbaed06a
"},
{file = "pre_commit-2.1
8.1-py2.py3-none-any.whl", hash = "sha256:02226e69564ebca1a070bd1f046af866aa1c318dbc430027c50ab832ed2b73f2
"},
{file = "pre_commit-2.1
8.1.tar.gz", hash = "sha256:5d445ee1fa8738d506881c5d84f83c62bb5be6b2838e32207433647e8e5ebe10
"},
]
ptyprocess = [
{file = "ptyprocess-0.7.0-py2.py3-none-any.whl", hash = "sha256:4b41f3967fce3af57cc7e94b888626c18bf37a083e3651ca8feeb66d492fef35"},
...
...
@@ -1009,8 +1028,8 @@ pylev = [
{file = "pylev-1.4.0.tar.gz", hash = "sha256:9e77e941042ad3a4cc305dcdf2b2dec1aec2fbe3dd9015d2698ad02b173006d1"},
]
pyparsing = [
{file = "pyparsing-3.0.
7-py3-none-any.whl", hash = "sha256:a6c06a88f252e6c322f65faf8f418b16213b51bdfaece0524c1c1bc30c63c484
"},
{file = "pyparsing-3.0.
7.tar.gz", hash = "sha256:18ee9022775d270c55187733956460083db60b37d0d0fb357445f3094eed3eea
"},
{file = "pyparsing-3.0.
8-py3-none-any.whl", hash = "sha256:ef7b523f6356f763771559412c0d7134753f037822dad1b16945b7b846f7ad06
"},
{file = "pyparsing-3.0.
8.tar.gz", hash = "sha256:7bf433498c016c4314268d95df76c81b842a4cb2b276fa3312cfb1e1d85f6954
"},
]
pytest = [
{file = "pytest-6.2.5-py3-none-any.whl", hash = "sha256:7310f8d27bc79ced999e760ca304d69f6ba6c6649c0b60fb0e04a4a77cacc134"},
...
...
@@ -1094,30 +1113,30 @@ toml = [
{file = "toml-0.10.2.tar.gz", hash = "sha256:b3bda1d108d5dd99f4a20d24d9c348e91c4db7ab1b749200bded2f839ccbe68f"},
]
tomlkit = [
{file = "tomlkit-0.10.
0-py3-none-any.whl", hash = "sha256:cac4aeaff42f18fef6e07831c2c2689a51df76cf2ede07a6a4fa5fcb83558870
"},
{file = "tomlkit-0.10.
0.tar.gz", hash = "sha256:d99946c6aed3387c98b89d91fb9edff8f901bf9255901081266a84fb5604adcd
"},
{file = "tomlkit-0.10.
1-py3-none-any.whl", hash = "sha256:3eba517439dcb2f84cf39f4f85fd2c3398309823a3c75ac3e73003638daf7915
"},
{file = "tomlkit-0.10.
1.tar.gz", hash = "sha256:3c517894eadef53e9072d343d37e4427b8f0b6200a70b7c9a19b2ebd1f53b951
"},
]
tox = [
{file = "tox-3.2
4.5-py2.py3-none-any.whl", hash = "sha256:be3362472a33094bce26727f5f771ca0facf6dafa217f65875314e9a6600c95c
"},
{file = "tox-3.2
4.5.tar.gz", hash = "sha256:67e0e32c90e278251fea45b696d0fef3879089ccbe979b0c556d35d5a70e2993
"},
{file = "tox-3.2
5.0-py2.py3-none-any.whl", hash = "sha256:0805727eb4d6b049de304977dfc9ce315a1938e6619c3ab9f38682bb04662a5a
"},
{file = "tox-3.2
5.0.tar.gz", hash = "sha256:37888f3092aa4e9f835fc8cc6dadbaaa0782651c41ef359e3a5743fcb0308160
"},
]
typing-extensions = [
{file = "typing_extensions-4.1.1-py3-none-any.whl", hash = "sha256:21c85e0fe4b9a155d0799430b0ad741cdce7e359660ccbd8b530613e8df88ce2"},
{file = "typing_extensions-4.1.1.tar.gz", hash = "sha256:1a9462dcc3347a79b1f1c0271fbe79e844580bb598bafa1ed208b94da3cdcd42"},
]
urllib3 = [
{file = "urllib3-1.26.
8-py2.py3-none-any.whl", hash = "sha256:000ca7f471a233c2251c6c7023ee85305721bfdf18621ebff4fd17a8653427ed
"},
{file = "urllib3-1.26.
8.tar.gz", hash = "sha256:0e7c33d9a63e7ddfcb86780aac87befc2fbddf46c58dbb487e0855f7ceec283c
"},
{file = "urllib3-1.26.
9-py2.py3-none-any.whl", hash = "sha256:44ece4d53fb1706f667c9bd1c648f5469a2ec925fcf3a776667042d645472c14
"},
{file = "urllib3-1.26.
9.tar.gz", hash = "sha256:aabaf16477806a5e1dd19aa41f8c2b7950dd3c746362d7e3223dbe6de6ac448e
"},
]
virtualenv = [
{file = "virtualenv-20.1
3.2-py2.py3-none-any.whl", hash = "sha256:e7b34c9474e6476ee208c43a4d9ac1510b041c68347eabfe9a9ea0c86aa0a46b
"},
{file = "virtualenv-20.1
3.2.tar.gz", hash = "sha256:01f5f80744d24a3743ce61858123488e91cb2dd1d3bdf92adaf1bba39ffdedf0
"},
{file = "virtualenv-20.1
4.1-py2.py3-none-any.whl", hash = "sha256:e617f16e25b42eb4f6e74096b9c9e37713cf10bf30168fb4a739f3fa8f898a3a
"},
{file = "virtualenv-20.1
4.1.tar.gz", hash = "sha256:ef589a79795589aada0c1c5b319486797c03b67ac3984c48c669c0e4f50df3a5
"},
]
webencodings = [
{file = "webencodings-0.5.1-py2.py3-none-any.whl", hash = "sha256:a0af1213f3c2226497a97e2b3aa01a7e4bee4f403f95be16fc9acd2947514a78"},
{file = "webencodings-0.5.1.tar.gz", hash = "sha256:b36a1c245f2d304965eb4e0a82848379241dc04b865afcc4aab16748587e1923"},
]
zipp = [
{file = "zipp-3.
7.0-py3-none-any.whl", hash = "sha256:b47250dd24f92b7dd6a0a8fc5244da14608f3ca90a5efcd37a3b1642fac9a375
"},
{file = "zipp-3.
7.0.tar.gz", hash = "sha256:9f50f446828eb9d45b267433fd3e9da8d801f614129124863f9c51ebceafb87
d"},
{file = "zipp-3.
8.0-py3-none-any.whl", hash = "sha256:c4f6e5bbf48e74f7a38e7cc5b0480ff42b0ae5178957d564d18932525d5cf099
"},
{file = "zipp-3.
8.0.tar.gz", hash = "sha256:56bf8aadb83c24db6c4b577e13de374ccfb67da2078beba1d037c17980bf43a
d"},
]
pyproject.toml
View file @
d52780c5
...
...
@@ -35,6 +35,7 @@ generate-setup-file = false
python
=
"^3.7"
poetry-core
=
"^1.1.0a7"
poetry-plugin-export
=
"^1.0"
cachecontrol
=
{
version
=
"^0.12.9"
,
extras
=
["filecache"]
}
cachy
=
"^0.3.0"
cleo
=
"^1.0.0a4"
...
...
tests/console/commands/test_export.py
View file @
d52780c5
from
__future__
import
annotations
from
typing
import
TYPE_CHECKING
from
unittest.mock
import
ANY
from
unittest.mock
import
Mock
import
pytest
from
poetry.console.commands.export
import
Exporter
from
poetry_plugin_export.exporter
import
Exporter
from
tests.helpers
import
get_package
...
...
@@ -155,15 +155,6 @@ def test_export_with_urls(
the Exporter test.
"""
mock_export
=
Mock
()
monkeypatch
.
setattr
(
Exporter
,
"
export
"
,
mock_export
)
monkeypatch
.
setattr
(
Exporter
,
"
with_urls
"
,
mock_export
)
tester
.
execute
(
"--without-urls"
)
mock_export
.
assert_called_once_with
(
ANY
,
ANY
,
ANY
,
dev
=
False
,
extras
=
[],
with_credentials
=
False
,
with_hashes
=
True
,
with_urls
=
False
,
)
mock_export
.
assert_called_once_with
(
False
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment