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 New feature or request label Mar 4, 2021
@nhoening nhoening marked this pull request as draft March 4, 2021 11:01
@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 March 8, 2021 15:40
@nhoening nhoening marked this pull request as ready for review March 8, 2021 15:41
Copy link
Contributor

@Flix6x Flix6x left a comment

Choose a reason for hiding this comment

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

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 March 13, 2021 14:25
…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
@Flix6x
Copy link
Contributor

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
Copy link
Contributor

@Flix6x Flix6x left a comment

Choose a reason for hiding this comment

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

Great work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Install and run from Pypi
2 participants