-
Notifications
You must be signed in to change notification settings - Fork 179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/poetry #390
Feature/poetry #390
Conversation
8cdf680
to
4778b2a
Compare
@echo 'Installing test requirements' | ||
docker exec -i ${EVENTGEN_TEST_IMAGE} /bin/sh -c "pip3 install --upgrade pip;pip3 install -r $(shell pwd)/requirements.txt" | ||
@echo 'Installing test dependencies' | ||
docker exec -i ${EVENTGEN_TEST_IMAGE} /bin/sh -c "pip3 install poetry;poetry config virtualenvs.create false;poetry install --no-root" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
install poetry and disable poetry to use virtualenv
so that the following tests can find dependent packages. Check here.
@@ -0,0 +1,1211 @@ | |||
[[package]] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The poetry.lock
file is used for keep consistent environment for dependencies.
httplib2 = "^0.17.2" | ||
uuid = "^1.30" | ||
|
||
[tool.poetry.dev-dependencies] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dev dependencies are in a separate section which is more clear.
``` | ||
Eventgen uses [Poetry](https://github.com/python-poetry/poetry) to manage and build. Install `Poetry` first: | ||
``` | ||
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you also add instructions for installing poetry via pip?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, Jack.added.
@@ -1 +0,0 @@ | |||
{"version": "7.1.0"} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The version.json
is now deleted. We use the version in pyproject.toml
as single source.
@@ -48,32 +48,50 @@ def flush(self, q): | |||
# This may cause the file exceed the maxFileBytes a little bit but will greatly improve the performance | |||
try: | |||
for metamsg in q: | |||
msg = metamsg.get('_raw') | |||
msg = metamsg.get("_raw") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes in this file are made by make format-all
.
Adopt
poetry
to manage build/dependencies/dev-dependencies/publish. Props:pyproject.toml
to replacerequirements.txt
,MANIFEST.in
,setup.py
andsetup.cfg
.poetry
in a consistent way.