-
Notifications
You must be signed in to change notification settings - Fork 251
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make default formats of
include
consistent ("sdist" only) and refac…
…tor code for better maintainability (#773)
- Loading branch information
Showing
39 changed files
with
206 additions
and
170 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
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
File renamed without changes.
1 change: 1 addition & 0 deletions
1
tests/masonry/builders/fixtures/with-include-formats/both/file.txt
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 @@ | ||
|
1 change: 1 addition & 0 deletions
1
tests/masonry/builders/fixtures/with-include-formats/both/sub/file.txt
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 @@ | ||
|
File renamed without changes.
1 change: 1 addition & 0 deletions
1
tests/masonry/builders/fixtures/with-include-formats/default/file.txt
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 @@ | ||
|
1 change: 1 addition & 0 deletions
1
tests/masonry/builders/fixtures/with-include-formats/default/sub/file.txt
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 @@ | ||
|
64 changes: 64 additions & 0 deletions
64
tests/masonry/builders/fixtures/with-include-formats/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,64 @@ | ||
[tool.poetry] | ||
name = "with-include" | ||
version = "1.2.3" | ||
description = "Some description." | ||
authors = [ | ||
"Sébastien Eustace <[email protected]>" | ||
] | ||
license = "MIT" | ||
|
||
homepage = "https://python-poetry.org/" | ||
repository = "https://github.com/python-poetry/poetry" | ||
documentation = "https://python-poetry.org/docs" | ||
|
||
keywords = ["packaging", "dependency", "poetry"] | ||
|
||
classifiers = [ | ||
"Topic :: Software Development :: Build Tools", | ||
"Topic :: Software Development :: Libraries :: Python Modules" | ||
] | ||
|
||
packages = [ | ||
# modules | ||
{ include = "mod_default.py", from = "src" }, | ||
{ include = "mod_sdist_only.py", from = "src", format = "sdist" }, | ||
{ include = "mod_wheel_only.py", from = "src", format = "wheel" }, | ||
{ include = "mod_both.py", from = "src", format = [ "sdist", "wheel" ]}, | ||
# packages | ||
{ include = "pkg_default", from = "src" }, | ||
{ include = "pkg_sdist_only", from = "src", format = "sdist" }, | ||
{ include = "pkg_wheel_only", from = "src", format = "wheel" }, | ||
{ include = "pkg_both", from = "src", format = [ "sdist", "wheel" ]}, | ||
] | ||
|
||
include = [ | ||
# files | ||
{ path = "default.txt" }, | ||
{ path = "sdist_only.txt", format = "sdist" }, | ||
{ path = "wheel_only.txt", format = "wheel" }, | ||
{ path = "both.txt", format = [ "sdist", "wheel" ] }, | ||
# directories | ||
{ path = "default" }, | ||
{ path = "sdist_only", format = "sdist" }, | ||
{ path = "wheel_only", format = "wheel" }, | ||
{ path = "both", format = [ "sdist", "wheel" ] }, | ||
] | ||
|
||
|
||
# Requirements | ||
[tool.poetry.dependencies] | ||
python = "^3.6" | ||
cleo = "^0.6" | ||
cachy = { version = "^0.2.0", extras = ["msgpack"] } | ||
|
||
pendulum = { version = "^1.4", optional = true } | ||
|
||
[tool.poetry.group.dev.dependencies] | ||
pytest = "~3.4" | ||
|
||
[tool.poetry.extras] | ||
time = ["pendulum"] | ||
|
||
[tool.poetry.scripts] | ||
my-script = "my_package:main" | ||
my-2nd-script = "my_package:main2" |
File renamed without changes.
1 change: 1 addition & 0 deletions
1
tests/masonry/builders/fixtures/with-include-formats/sdist_only/file.txt
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 @@ | ||
|
1 change: 1 addition & 0 deletions
1
tests/masonry/builders/fixtures/with-include-formats/sdist_only/sub/file.txt
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 @@ | ||
|
File renamed without changes.
File renamed without changes.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
1 change: 1 addition & 0 deletions
1
tests/masonry/builders/fixtures/with-include-formats/wheel_only/file.txt
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 @@ | ||
|
1 change: 1 addition & 0 deletions
1
tests/masonry/builders/fixtures/with-include-formats/wheel_only/sub/file.txt
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 @@ | ||
|
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.