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
5b14bd10
Unverified
Commit
5b14bd10
authored
May 02, 2018
by
Sébastien Eustace
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make the email address for authors optional
parent
70c324b4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
1 deletions
+18
-1
CHANGELOG.md
+1
-0
poetry/packages/package.py
+1
-1
tests/packages/test_package.py
+16
-0
No files found.
CHANGELOG.md
View file @
5b14bd10
...
@@ -16,6 +16,7 @@
...
@@ -16,6 +16,7 @@
-
Dependency resolution caches now use sha256 hashes.
-
Dependency resolution caches now use sha256 hashes.
-
Changed CLI error style.
-
Changed CLI error style.
-
Improved debugging of dependency resolution.
-
Improved debugging of dependency resolution.
-
Made the email address for authors optional.
### Fixed
### Fixed
...
...
poetry/packages/package.py
View file @
5b14bd10
...
@@ -18,7 +18,7 @@ from .dependency import Dependency
...
@@ -18,7 +18,7 @@ from .dependency import Dependency
from
.file_dependency
import
FileDependency
from
.file_dependency
import
FileDependency
from
.vcs_dependency
import
VCSDependency
from
.vcs_dependency
import
VCSDependency
AUTHOR_REGEX
=
re
.
compile
(
'(?u)^(?P<name>[- .,
\
w
\
d
\'
’"()]+)
<(?P<email>.+?)>
$'
)
AUTHOR_REGEX
=
re
.
compile
(
'(?u)^(?P<name>[- .,
\
w
\
d
\'
’"()]+)
(?: <(?P<email>.+?)>)?
$'
)
class
Package
(
object
):
class
Package
(
object
):
...
...
tests/packages/test_package.py
0 → 100644
View file @
5b14bd10
# -*- coding: utf-8 -*-
from
__future__
import
unicode_literals
from
poetry.packages
import
Package
def
test_package_authors
():
package
=
Package
(
'foo'
,
'0.1.0'
)
package
.
authors
.
append
(
'Sébastien Eustace <sebastien@eustace.io>'
)
assert
package
.
author_name
==
'Sébastien Eustace'
assert
package
.
author_email
==
'sebastien@eustace.io'
package
.
authors
.
insert
(
0
,
'John Doe'
)
assert
package
.
author_name
==
'John Doe'
assert
package
.
author_email
is
None
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