Browse Source

Wire up install docs and requirements

And fix an import that I maybe broke but not sure.
master
Luke Murphy 4 years ago
parent
commit
54801dcc35
No known key found for this signature in database GPG Key ID: 5E2EF5A63E3718CC
  1. 3
      .gitignore
  2. 18
      README.md
  3. 0
      library/csvparser/__init__.py
  4. BIN
      library/csvparser/__pycache__/csvparser.cpython-39.pyc
  5. 2
      library/page.py
  6. 10
      makefile
  7. 1
      requirements.txt

3
.gitignore

@ -0,0 +1,3 @@
/.venv/
/__pycache__/
*.pyc

18
README.md

@ -0,0 +1,18 @@
# varia-library-website
> Work In Progress
## Hacking
```
$ python3 -m venv .venv && source .venv/bin/activate
$ FLASK_APP=library
```
Or run `make setup`.
```
$ FLASK_APP=library.page flask run
```
Or run `make`.

0
library/csvparser/__init__.py

BIN
library/csvparser/__pycache__/csvparser.cpython-39.pyc

Binary file not shown.

2
library/page.py

@ -4,7 +4,7 @@
import flask
from flask import render_template
from csvparser.csvparser import getpublications
from library.csvparser.csvparser import getpublications
APP = flask.Flask(__name__, static_folder="static")

10
makefile

@ -0,0 +1,10 @@
default: run
setup:
@python3 -m venv .venv && \
.venv/bin/pip install -r requirements.txt
run:
@FLASK_APP=library.page .venv/bin/flask run
.PHONY: setup run

1
requirements.txt

@ -0,0 +1 @@
flask
Loading…
Cancel
Save