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
342de41c
Unverified
Commit
342de41c
authored
Mar 04, 2018
by
Sébastien Eustace
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change the way version is retrieved in setup.py
parent
2f41bbb0
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
4 deletions
+6
-4
.travis.yml
+1
-1
poetry/__version__.py
+1
-0
poetry/poetry.py
+2
-1
setup.py
+2
-2
No files found.
.travis.yml
View file @
342de41c
...
@@ -4,7 +4,7 @@ python:
...
@@ -4,7 +4,7 @@ python:
-
"
3.6"
-
"
3.6"
install
:
install
:
-
p
ython setup.py develop
-
p
ip install -e .
-
poetry install
-
poetry install
script
:
pytest -q tests/
script
:
pytest -q tests/
poetry/__version__.py
0 → 100644
View file @
342de41c
__version__
=
'0.2.0'
poetry/poetry.py
View file @
342de41c
from
pathlib
import
Path
from
pathlib
import
Path
from
.__version__
import
__version__
from
.packages
import
Locker
from
.packages
import
Locker
from
.packages
import
Package
from
.packages
import
Package
from
.repositories
import
Pool
from
.repositories
import
Pool
...
@@ -10,7 +11,7 @@ from .utils.toml_file import TomlFile
...
@@ -10,7 +11,7 @@ from .utils.toml_file import TomlFile
class
Poetry
:
class
Poetry
:
VERSION
=
'0.2.0'
VERSION
=
__version__
def
__init__
(
self
,
def
__init__
(
self
,
file
:
Path
,
file
:
Path
,
...
...
setup.py
View file @
342de41c
...
@@ -4,8 +4,8 @@ from setuptools import setup, find_packages
...
@@ -4,8 +4,8 @@ from setuptools import setup, find_packages
def
get_version
():
def
get_version
():
basedir
=
os
.
path
.
dirname
(
__file__
)
basedir
=
os
.
path
.
dirname
(
__file__
)
with
open
(
os
.
path
.
join
(
basedir
,
'poetry/__
init
__.py'
))
as
f
:
with
open
(
os
.
path
.
join
(
basedir
,
'poetry/__
version
__.py'
))
as
f
:
variables
=
{
'__name__'
:
'poetry'
}
variables
=
{}
exec
(
f
.
read
(),
variables
)
exec
(
f
.
read
(),
variables
)
version
=
variables
.
get
(
'__version__'
)
version
=
variables
.
get
(
'__version__'
)
...
...
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