-
Notifications
You must be signed in to change notification settings - Fork 252
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow the develop property for git dependencies
Co-authored-by: Fantix King <fantix.king@gmail.com>
- Loading branch information
Showing
17 changed files
with
371 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
[tool.poetry] | ||
name = "poetry" | ||
version = "0.5.0" | ||
description = "Python dependency management and packaging made easy." | ||
authors = [ | ||
"Sébastien Eustace <sebastien@eustace.io>" | ||
] | ||
license = "MIT" | ||
|
||
readme = "README.rst" | ||
|
||
homepage = "https://python-poetry.org/" | ||
repository = "https://github.com/python-poetry/poetry" | ||
documentation = "https://python-poetry.org/docs" | ||
|
||
keywords = ["packaging", "dependency", "poetry"] | ||
|
||
# Requirements | ||
[tool.poetry.dependencies] | ||
python = "~2.7 || ^3.2" # Compatible python versions must be declared here | ||
toml = "^0.9" | ||
# Dependencies with extras | ||
requests = { version = "^2.13", extras = [ "security" ] } | ||
# Python specific dependencies with prereleases allowed | ||
pathlib2 = { version = "^2.2", python = "~2.7", allows-prereleases = true } | ||
# Git dependencies | ||
cleo = { git = "https://github.com/sdispater/cleo.git", branch = "master" } | ||
|
||
# Optional dependencies (extras) | ||
pendulum = { version = "^1.4", optional = true } | ||
|
||
[tool.poetry.extras] | ||
time = [ "pendulum" ] | ||
|
||
[tool.poetry.dev-dependencies] | ||
pytest = "^3.0" | ||
pytest-cov = "^2.4" | ||
|
||
[tool.poetry.scripts] | ||
my-script = 'my_package:main' | ||
|
||
|
||
[[tool.poetry.source]] | ||
name = "foo" | ||
url = "https://bar.com" |
Binary file not shown.
Binary file not shown.
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,11 @@ | ||
[tool.poetry] | ||
name = "invalid" | ||
version = "1.0.0" | ||
authors = [ | ||
"Foo <foo@bar.com>" | ||
] | ||
license = "INVALID" | ||
|
||
[tool.poetry.dependencies] | ||
python = "*" | ||
pendulum = {"version" = "^2.0.5", allows-prereleases = true} |
Empty file.
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 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
from setuptools import setup | ||
|
||
|
||
kwargs = dict( | ||
name="my-package", | ||
license="MIT", | ||
version="0.1.2", | ||
description="Demo project.", | ||
author="Sébastien Eustace", | ||
author_email="sebastien@eustace.io", | ||
url="https://github.com/demo/demo", | ||
packages=["my_package"], | ||
install_requires=["pendulum>=1.4.4", "cachy[msgpack]>=0.2.0"], | ||
) | ||
|
||
|
||
setup(**kwargs) |
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 | ||
========== |
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,59 @@ | ||
[tool.poetry] | ||
name = "my-package" | ||
version = "1.2.3" | ||
description = "Some description." | ||
authors = [ | ||
"Sébastien Eustace <sebastien@eustace.io>" | ||
] | ||
license = "MIT" | ||
|
||
readme = "README.rst" | ||
|
||
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" | ||
] | ||
|
||
# Requirements | ||
[tool.poetry.dependencies] | ||
python = "~2.7 || ^3.6" | ||
cleo = "^0.6" | ||
pendulum = { git = "https://github.com/sdispater/pendulum.git", branch = "2.0" } | ||
tomlkit = { git = "https://github.com/sdispater/tomlkit.git", rev = "3bff550", develop = false } | ||
requests = { version = "^2.18", optional = true, extras=[ "security" ] } | ||
pathlib2 = { version = "^2.2", python = "~2.7" } | ||
|
||
orator = { version = "^0.9", optional = true } | ||
|
||
# File dependency | ||
demo = { path = "../distributions/demo-0.1.0-py2.py3-none-any.whl" } | ||
|
||
# Dir dependency with setup.py | ||
my-package = { path = "../project_with_setup/" } | ||
|
||
# Dir dependency with pyproject.toml | ||
simple-project = { path = "../simple_project/" } | ||
|
||
# Dependency with markers | ||
functools32 = { version = "^3.2.3", markers = "python_version ~= '2.7' and sys_platform == 'win32' or python_version in '3.4 3.5'" } | ||
|
||
|
||
[tool.poetry.extras] | ||
db = [ "orator" ] | ||
|
||
[tool.poetry.dev-dependencies] | ||
pytest = "~3.4" | ||
|
||
|
||
[tool.poetry.scripts] | ||
my-script = "my_package:main" | ||
|
||
|
||
[tool.poetry.plugins."blogtool.parsers"] | ||
".rst" = "some_module::SomeClass" |
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 | ||
========== |
Binary file not shown.
Binary file added
BIN
+1.29 KB
tests/fixtures/simple_project/dist/simple_project-1.2.3-py2.py3-none-any.whl
Binary file not shown.
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,25 @@ | ||
[tool.poetry] | ||
name = "simple-project" | ||
version = "1.2.3" | ||
description = "Some description." | ||
authors = [ | ||
"Sébastien Eustace <sebastien@eustace.io>" | ||
] | ||
license = "MIT" | ||
|
||
readme = "README.rst" | ||
|
||
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" | ||
] | ||
|
||
# Requirements | ||
[tool.poetry.dependencies] | ||
python = "~2.7 || ^3.4" |
Empty file.
Oops, something went wrong.