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
f5a63be6
Commit
f5a63be6
authored
Aug 04, 2020
by
Arun Babu Neelicattu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
command/new: do not add pytest dependency to project
parent
3987b0e0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
9 deletions
+0
-9
poetry/console/commands/new.py
+0
-9
No files found.
poetry/console/commands/new.py
View file @
f5a63be6
...
...
@@ -22,7 +22,6 @@ class NewCommand(Command):
def
handle
(
self
)
->
None
:
from
pathlib
import
Path
from
poetry.core.semver.helpers
import
parse_constraint
from
poetry.core.vcs.git
import
GitConfig
from
poetry.layouts
import
layout
from
poetry.utils.env
import
SystemEnv
...
...
@@ -60,20 +59,12 @@ class NewCommand(Command):
"."
.
join
(
str
(
v
)
for
v
in
current_env
.
version_info
[:
2
])
)
dev_dependencies
=
{}
python_constraint
=
parse_constraint
(
default_python
)
if
parse_constraint
(
"<3.5"
)
.
allows_any
(
python_constraint
):
dev_dependencies
[
"pytest"
]
=
"^4.6"
if
parse_constraint
(
">=3.5"
)
.
allows_all
(
python_constraint
):
dev_dependencies
[
"pytest"
]
=
"^5.2"
layout_
=
layout_
(
name
,
"0.1.0"
,
author
=
author
,
readme_format
=
readme_format
,
python
=
default_python
,
dev_dependencies
=
dev_dependencies
,
)
layout_
.
create
(
path
)
...
...
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