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

Pip-installable #54

Merged
merged 49 commits into from Mar 24, 2021
Merged

Pip-installable #54

merged 49 commits into from Mar 24, 2021

Conversation

nhoening
Copy link
Contributor

@nhoening nhoening commented Mar 4, 2021

Make it possible to install FlexMeasures from pip and then configure and run it.

In the process,

  • use setuptools_scm to generate our versions (and simplify to_pypi.sh)
  • let flexmeasures be the name of our CLI (instead of flask)
  • improve installation advice, including adding a complete configuration settings overview
  • add better support on startup for setting a secret key and for warnings about configuration settings which are not necessary to start the platform but are needed for some features.
  • remove custom theme code

@nhoening nhoening self-assigned this Mar 4, 2021
@nhoening nhoening added the enhancement label Mar 4, 2021
@nhoening nhoening marked this pull request as draft Mar 4, 2021
@nhoening nhoening linked an issue Mar 8, 2021 that may be closed by this pull request
5 tasks
@nhoening nhoening requested a review from Flix6x Mar 8, 2021
@nhoening nhoening marked this pull request as ready for review Mar 8, 2021
Copy link
Contributor

@Flix6x Flix6x left a comment

I'm still manually testing.

Installation.md Outdated Show resolved Hide resolved
Installation.md Outdated Show resolved Hide resolved
Installation.md Show resolved Hide resolved
Installation.md Outdated Show resolved Hide resolved
Installation.md Outdated Show resolved Hide resolved
flexmeasures/data/Readme.md Outdated Show resolved Hide resolved
to_pypi.sh Outdated Show resolved Hide resolved
flexmeasures/utils/app_utils.py Show resolved Hide resolved
NOTICE Show resolved Hide resolved
Installation.md Outdated Show resolved Hide resolved
Installation.md Outdated Show resolved Hide resolved
nhoening and others added 15 commits Mar 13, 2021
…oaded from env vars after possibly existing config file is read
…hange FLEXMEASURES_PUBLIC_DEMO to FLEXMEASURES_PUBLIC_DEMO_CREDENTIALS, add warning if FLEXMEASURES_REDIS_* settings are missing
…our migration history -> one complete db upgrade flow works now
@nhoening nhoening requested a review from Flix6x Mar 22, 2021
@Flix6x
Copy link
Contributor

@Flix6x Flix6x commented Mar 23, 2021

I followed the pip installation tutorial successfully! Nice work.

One tiny request: warn the user about needing the MAPBOX_ACCESS_TOKEN config parameter to view the map tiles on the dashboard: more info on how to obtain one can be found here: https://docs.mapbox.com/help/glossary/access-token/

Installation.md Outdated Show resolved Hide resolved
flexmeasures/data/Readme.md Outdated Show resolved Hide resolved
Flix6x
Flix6x approved these changes Mar 23, 2021
Copy link
Contributor

@Flix6x Flix6x left a comment

Great work!

@nhoening nhoening merged commit 18c53a0 into main Mar 24, 2021
2 checks passed
@nhoening nhoening deleted the issue-51-Pip-installable branch Mar 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants