Skip to content
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

installation: fix python packages dependencies #841

Merged
merged 1 commit into from
Mar 12, 2020
Merged

Conversation

jma
Copy link
Contributor

@jma jma commented Mar 11, 2020

  • Fixes strange behaviours during the resolution dependencies with
    pipenv. This will make the new python packages easy.
  • Adds the documentation in the python packages file (Pipefile).
  • Adds support of a new version of the python import order check tool (isort>=4.3.10).
  • Adds new bootstrap and server command for pipenv.
  • Replaces scripts commands by pipenv run:
    • bootstrap
    • console
    • server
    • setup
    • update
  • Adds virtualenv detection in scripts/* for python>3.6.4.

Co-Authored-by: Johnny Mariéthoz [email protected]
Co-Authored-by: Olivier DOSSMANN [email protected]

Note

After the integration into the dev branch the documentation should be updated: https://github.com/rero/rero-ils/blob/master/INSTALL.rst

Why are you opening this PR?

The idea is to make the CI travis tests more stable. Moreover it add the support of python 3.6.10.

How to test?

  • Restart an installation from scratch.
  • Needs some test deployment.

Code review check list

  • Commit message template compliance.
  • Commit message without typos.
  • File names.
  • Functions names.
  • Functions docstrings.
  • Unnecessary commited files?
  • Extracted translations?

@jma jma force-pushed the maj-clean-pipfile branch 2 times, most recently from aa862ed to b6b5378 Compare March 11, 2020 11:35
@jma jma force-pushed the maj-clean-pipfile branch 4 times, most recently from 018a407 to 2b3cf0c Compare March 11, 2020 17:26
@jma jma force-pushed the maj-clean-pipfile branch from 2b3cf0c to f019905 Compare March 12, 2020 06:21
@jma jma force-pushed the maj-clean-pipfile branch from f019905 to cd9f0e3 Compare March 12, 2020 08:44
scripts/update Outdated

pipenv run invenio alembic upgrade
pipenv run invenio index init --force
pipenv run bootstrap
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As we are already in virtual env, you can run "${script_path}/bootstrap" as previously

@jma jma force-pushed the maj-clean-pipfile branch from cd9f0e3 to a3a307e Compare March 12, 2020 10:01
scripts/update Outdated
Comment on lines 21 to 22
script_path=$(dirname "$0")
./"$script_path"/bootstrap
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In my opinion, these lines should be kept. Sorry for the inconvenience 🙏

* Fixes strange behaviours during the resolution dependencies with
pipenv. This will make the new python packages easy.
* Adds the documentation in the python packages file (Pipefile).
* Adds support of a new version of the python import order check tool (isort>=4.3.10).
* Adds new bootstrap and server command for pipenv.
* Replaces scripts commands by pipenv run:
  * bootstrap
  * console
  * server
  * setup
  * update
* Adds virtualenv detection in scripts/* for python>3.6.4.

Co-Authored-by: Johnny Mariéthoz <[email protected]>
Co-Authored-by: Olivier DOSSMANN <[email protected]>
@jma jma force-pushed the maj-clean-pipfile branch from a3a307e to d86fcfe Compare March 12, 2020 12:53
@jma jma merged commit 5da590e into rero:dev Mar 12, 2020
@jma jma deleted the maj-clean-pipfile branch April 10, 2020 07:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants