forked from python-poetry/poetry-core
-
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.
This change refactors implementation and tests relating to script file specifications. Relates-to: python-poetry#40 Relates-to: python-poetry#241
- Loading branch information
Showing
35 changed files
with
265 additions
and
93 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
File renamed without changes.
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
2 changes: 0 additions & 2 deletions
2
tests/masonry/builders/fixtures/missing_script_files/README.rst
This file was deleted.
Oops, something went wrong.
Empty file.
15 changes: 0 additions & 15 deletions
15
tests/masonry/builders/fixtures/missing_script_files/pyproject.toml
This file was deleted.
Oops, something went wrong.
2 changes: 2 additions & 0 deletions
2
tests/masonry/builders/fixtures/script_callable_legacy_string/README.rst
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,2 @@ | ||
My Package | ||
========== |
1 change: 1 addition & 0 deletions
1
tests/masonry/builders/fixtures/script_callable_legacy_string/my_package/__init__.py
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 @@ | ||
__version__ = "1.2.3" |
19 changes: 19 additions & 0 deletions
19
tests/masonry/builders/fixtures/script_callable_legacy_string/pyproject.toml
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,19 @@ | ||
[tool.poetry] | ||
name = "my-package" | ||
version = "1.2.3" | ||
description = "Some description." | ||
authors = [ | ||
"Poetry Maintainers <[email protected]>" | ||
] | ||
license = "MIT" | ||
readme = "README.rst" | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.6" | ||
|
||
[tool.poetry.dev-dependencies] | ||
|
||
[tool.poetry.extras] | ||
|
||
[tool.poetry.scripts] | ||
script-legacy = "my_package:main" |
2 changes: 2 additions & 0 deletions
2
tests/masonry/builders/fixtures/script_callable_legacy_table/README.rst
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,2 @@ | ||
My Package | ||
========== |
1 change: 1 addition & 0 deletions
1
tests/masonry/builders/fixtures/script_callable_legacy_table/my_package/__init__.py
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 @@ | ||
__version__ = "1.2.3" |
21 changes: 21 additions & 0 deletions
21
tests/masonry/builders/fixtures/script_callable_legacy_table/pyproject.toml
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,21 @@ | ||
[tool.poetry] | ||
name = "my-package" | ||
version = "1.2.3" | ||
description = "Some description." | ||
authors = [ | ||
"Poetry Maintainers <[email protected]>" | ||
] | ||
license = "MIT" | ||
readme = "README.rst" | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.6" | ||
|
||
[tool.poetry.dev-dependencies] | ||
|
||
[tool.poetry.extras] | ||
time = [] | ||
|
||
[tool.poetry.scripts] | ||
script-legacy = { callable = "my_package.extra_legacy:main" } | ||
extra-script-legacy = { callable = "my_package.extra_legacy:main", extras = ["time"] } |
4 changes: 0 additions & 4 deletions
4
tests/masonry/builders/fixtures/script_file_invalid_definition/README.rst
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
tests/masonry/builders/fixtures/script_file_invalid_definition/bin/script.sh
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
tests/masonry/builders/fixtures/script_file_invalid_definition/pyproject.toml
This file was deleted.
Oops, something went wrong.
Empty file.
2 changes: 2 additions & 0 deletions
2
tests/masonry/builders/fixtures/script_reference_console/README.rst
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,2 @@ | ||
My Package | ||
========== |
1 change: 1 addition & 0 deletions
1
tests/masonry/builders/fixtures/script_reference_console/my_package/__init__.py
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 @@ | ||
__version__ = "1.2.3" |
21 changes: 21 additions & 0 deletions
21
tests/masonry/builders/fixtures/script_reference_console/pyproject.toml
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,21 @@ | ||
[tool.poetry] | ||
name = "my-package" | ||
version = "1.2.3" | ||
description = "Some description." | ||
authors = [ | ||
"Poetry Maintainers <[email protected]>" | ||
] | ||
license = "MIT" | ||
readme = "README.rst" | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.6" | ||
|
||
[tool.poetry.dev-dependencies] | ||
|
||
[tool.poetry.extras] | ||
time = [] | ||
|
||
[tool.poetry.scripts] | ||
script = { reference = "my_package.extra:main", type = "console" } | ||
extra-script = { reference = "my_package.extra:main", extras = ["time"], type = "console" } |
2 changes: 2 additions & 0 deletions
2
tests/masonry/builders/fixtures/script_reference_file/README.rst
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,2 @@ | ||
My Package | ||
========== |
3 changes: 3 additions & 0 deletions
3
tests/masonry/builders/fixtures/script_reference_file/bin/script.sh
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,3 @@ | ||
#!/usr/bin/env bash | ||
|
||
echo "Hello World!" |
1 change: 1 addition & 0 deletions
1
tests/masonry/builders/fixtures/script_reference_file/my_package/__init__.py
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 @@ | ||
__version__ = "1.2.3" |
19 changes: 19 additions & 0 deletions
19
tests/masonry/builders/fixtures/script_reference_file/pyproject.toml
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,19 @@ | ||
[tool.poetry] | ||
name = "my-package" | ||
version = "1.2.3" | ||
description = "Some description." | ||
authors = [ | ||
"Poetry Maintainers <[email protected]>" | ||
] | ||
license = "MIT" | ||
readme = "README.rst" | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.6" | ||
|
||
[tool.poetry.dev-dependencies] | ||
|
||
[tool.poetry.extras] | ||
|
||
[tool.poetry.scripts] | ||
sh-script = { reference = "bin/script.sh", type = "file" } |
2 changes: 2 additions & 0 deletions
2
...s/masonry/builders/fixtures/script_reference_file_invalid_definition/README.rst
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,2 @@ | ||
My Package | ||
========== |
3 changes: 3 additions & 0 deletions
3
tests/masonry/builders/fixtures/script_reference_file_invalid_definition/bin/script.sh
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,3 @@ | ||
#!/usr/bin/env bash | ||
|
||
echo "Hello World!" |
1 change: 1 addition & 0 deletions
1
...masonry/builders/fixtures/script_reference_file_invalid_definition/my_package/__init__.py
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 @@ | ||
__version__ = "1.2.3" |
19 changes: 19 additions & 0 deletions
19
tests/masonry/builders/fixtures/script_reference_file_invalid_definition/pyproject.toml
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,19 @@ | ||
[tool.poetry] | ||
name = "my-package" | ||
version = "1.2.3" | ||
description = "Some description." | ||
authors = [ | ||
"Poetry Maintainers <[email protected]>" | ||
] | ||
license = "MIT" | ||
readme = "README.rst" | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.6" | ||
|
||
[tool.poetry.dev-dependencies] | ||
|
||
[tool.poetry.extras] | ||
|
||
[tool.poetry.scripts] | ||
invalid_definition = { reference = "bin/script.sh", type = "ffiillee" } |
2 changes: 2 additions & 0 deletions
2
tests/masonry/builders/fixtures/script_reference_file_missing/README.rst
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,2 @@ | ||
My Package | ||
========== |
1 change: 1 addition & 0 deletions
1
tests/masonry/builders/fixtures/script_reference_file_missing/my_package/__init__.py
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 @@ | ||
__version__ = "1.2.3" |
19 changes: 19 additions & 0 deletions
19
tests/masonry/builders/fixtures/script_reference_file_missing/pyproject.toml
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,19 @@ | ||
[tool.poetry] | ||
name = "my-package" | ||
version = "1.2.3" | ||
description = "Some description." | ||
authors = [ | ||
"Poetry Maintainers <[email protected]>" | ||
] | ||
license = "MIT" | ||
readme = "README.rst" | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.6" | ||
|
||
[tool.poetry.dev-dependencies] | ||
|
||
[tool.poetry.extras] | ||
|
||
[tool.poetry.scripts] | ||
sh-script = { reference = "bin/script.sh", type = "file" } |
Oops, something went wrong.