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
9932e260
Commit
9932e260
authored
Jun 20, 2022
by
Bartek Sokorski
Committed by
Bjorn Neergaard
Jun 21, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rework README.md file
parent
879761c3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
20 deletions
+21
-20
README.md
+21
-20
No files found.
README.md
View file @
9932e260
# Poetry: Dependency Management for Python
[

](https://github.com/python-poetry/poetry/actions?query=workflow%3ATests+branch%3Amaster+event%3Apush)
[

](https://pypi.org/project/poetry/)
[

](https://pypi.org/project/poetry/#history)
[

](https://pypistats.org/packages/poetry)
[

](https://discord.com/invite/awxPgve)
Poetry helps you declare, manage and install dependencies of Python projects,
ensuring you have the right stack everywhere.

It supports Python 3.7+.
It requires Python 3.7+ to run.

[

](https://github.com/python-poetry/poetry/actions?query=workflow%3ATests+branch%3Amaster+event%3Apush)
[

](https://pypi.org/project/poetry/)
[

](https://pypi.org/project/poetry/#history)
[

](https://pypistats.org/packages/poetry)
[

](https://discord.com/invite/awxPgve)
## Documentation
The
[
complete documentation
](
https://python-poetry.org/docs/
)
is available on the
[
official website
](
https://python-poetry.org
)
.
...
...
@@ -27,7 +28,7 @@ information on how to enable tab completion in your environment.
`poetry`
is a tool to handle dependency installation as well as building and packaging of Python packages.
It only needs one file to do all of that: the new,
[
standardized
](
https://www.python.org/dev/peps/pep-0518/
)
`pyproject.toml`
.
In other words, poetry uses
`pyproject.toml`
to replace
`setup.py`
,
`requirements.txt`
,
`setup.cfg`
,
`MANIFEST.in`
and
the newly added
`Pipfile`
.
In other words, poetry uses
`pyproject.toml`
to replace
`setup.py`
,
`requirements.txt`
,
`setup.cfg`
,
`MANIFEST.in`
and
`Pipfile`
.
```
toml
[tool.poetry]
...
...
@@ -41,29 +42,29 @@ authors = [
"Sébastien Eustace <sebastien@eustace.io>"
]
readme
=
"README.md"
# Markdown files are supported
readme
=
"README.md"
repository
=
"https://github.com/python-poetry/poetry"
homepage
=
"https://
github.com/python-poetry/poetry
"
homepage
=
"https://
python-poetry.org
"
keywords
=
[
"packaging"
,
"poetry"
]
[tool.poetry.dependencies]
python
=
"
~2.7 || ^3.2
"
# Compatible python versions must be declared here
toml
=
"^0.9
"
python
=
"
^3.8
"
# Compatible python versions must be declared here
aiohttp
=
"^3.8.1
"
# Dependencies with extras
requests
=
{
version
=
"^2.
13
"
,
extras
=
[
"security"
]
}
requests
=
{
version
=
"^2.
28
"
,
extras
=
[
"security"
]
}
# Python specific dependencies with prereleases allowed
pathlib2
=
{
version
=
"^2.2"
,
python
=
"~2.7
"
,
allow-prereleases
=
true
}
tomli
=
{
version
=
"^2.0.1"
,
python
=
"<3.11
"
,
allow-prereleases
=
true
}
# Git dependencies
cleo
=
{
git
=
"https://github.com/
sdispater
/cleo.git"
,
branch
=
"master"
}
cleo
=
{
git
=
"https://github.com/
python-poetry
/cleo.git"
,
branch
=
"master"
}
# Optional dependencies (extras)
pendulum
=
{
version
=
"^
1.4
"
,
optional
=
true
}
pendulum
=
{
version
=
"^
2.1.2
"
,
optional
=
true
}
[tool.poetry.dev-dependencies]
pytest
=
"^
3.0
"
pytest-cov
=
"^
2.4
"
pytest
=
"^
7.1.2
"
pytest-cov
=
"^
3.0
"
[tool.poetry.scripts]
my-script
=
"my_package:main"
...
...
@@ -87,7 +88,7 @@ So, `poetry` can be installed globally and used everywhere.
Packaging systems and dependency management in Python are rather convoluted and hard to understand for newcomers.
Even for seasoned developers it might be cumbersome at times to create all files needed in a Python project:
`setup.py`
,
`requirements.txt`
,
`setup.cfg`
,
`MANIFEST.in`
and
the newly added
`Pipfile`
.
`requirements.txt`
,
`setup.cfg`
,
`MANIFEST.in`
and
`Pipfile`
.
So I wanted a tool that would limit everything to a single configuration file to do:
dependency management, packaging and publishing.
...
...
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