Skip to content

Switch to poetry #27

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,8 @@ This project is under active development and any part of the API may change. Fee
MTAPI is a Flask app designed to run under Python 3.3+.

1. Create a `settings.cfg` file. A sample is provided as `settings.cfg.sample`.
2. Set up your environment and install dependencies.
`$ python3 -m venv .venv`
`$ source .venv/bin/activate`
`$ python3 -m pip install -r requirements.txt`
3. Run the server
`$ python app.py`

2. poetry install
3. poetry run app
If your configuration is named something other than `settings.cfg`, set the `MTAPI_SETTINGS` env variable to your configuration path.

This app makes use of Python threads. If running under uWSGI include the --enable-threads flag.
Expand Down
5 changes: 4 additions & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,5 +148,8 @@ def _make_envelope(data):
'updated': time
})

if __name__ == '__main__':

def main():
app.run(use_reloader=False)
if __name__ == '__main__':
main()
Loading