-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
69 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
*__pycache__* | ||
*.DS_Store | ||
*sublime-workspace | ||
pyvocab.sublime-project | ||
.clientid | ||
.clientsecret | ||
distractors.csv | ||
|
||
*pyvocab.egg-info/* | ||
*pyvocab.egg-info/* | ||
poetry.lock | ||
streamlit.pid |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
|
||
PID := $(shell cat streamlit.pid) | ||
|
||
.PHONY: nightly start-app stop-app restart-app install-launch-agent test coverage-report bump-version jupyter | ||
|
||
jupyter: | ||
@echo "Installing kernel <pyvocab> in jupyter" | ||
-yes | jupyter kernelspec uninstall pyvocab | ||
poetry run python -m ipykernel install --user --name pyvocab | ||
|
||
|
||
|
||
|
||
start-app: stop-app | ||
@echo "Starting streamlit app.." | ||
@bash start-app.sh | ||
|
||
stop-app: | ||
@echo "Stopping streamlit app..." | ||
-kill $(PID) | ||
|
||
|
||
restart-app: stop-app start-app | ||
@echo "Restarting app..." | ||
|
||
test: | ||
poetry run coverage run -m pytest -sx --failed-first | ||
-rm coverage.svg | ||
poetry run coverage-badge -o coverage.svg | ||
|
||
coverage-report: .coverage | ||
poetry run coverage html --omit="*/test*" | ||
open htmlcov/index.html | ||
|
||
bump-version: | ||
poetry run bump |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# configuration file for pyvocab | ||
# rename this file to "config.ini" | ||
# and populate the fields below before running anything in this package | ||
|
||
["pyvocab"] | ||
|
||
|
||
# streamlit app options | ||
streamlit_port = 8510 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,23 @@ | ||
[build-system] | ||
requires = ["setuptools", "setuptools-scm"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
[tool.poetry] | ||
name = "pyvocab" | ||
description = "Simple python-based vocabulary builder" | ||
version = "23.1.10" | ||
description = "" | ||
authors = ["Srinivas Gorur-Shandilya <[email protected]>"] | ||
readme = "README.md" | ||
requires-python = ">=3.8" | ||
version = "22.9.11" | ||
authors = [ | ||
{name = "Srinivas Gorur-Shandilya", email="[email protected]"} | ||
] | ||
|
||
license = {text = "GPLv3 License"} | ||
classifiers = [ | ||
"Framework :: streamlit", | ||
"Programming Language :: Python :: 3", | ||
] | ||
dependencies = [ | ||
"pandas>=1.3.2", | ||
"watchdog", | ||
"streamlit>=1.11.0", | ||
"interrogate>=1.0", | ||
"python-Levenshtein", | ||
"pycore @ git+https://github.com/sg-s/pycore.git", | ||
] | ||
[tool.poetry.dependencies] | ||
python = "^3.10" | ||
streamlit = "^1.16.0" | ||
pandas = "^1.5.2" | ||
watchdog = "^2.2.1" | ||
pycore = {git = "https://github.com/sg-s/pycore.git"} | ||
python-levenshtein = "^0.20.9" | ||
|
||
|
||
[project.optional-dependencies] | ||
dev = ["pytest"] | ||
[tool.poetry.group.dev.dependencies] | ||
ipykernel = "^6.20.1" | ||
debugpy = "1.6" | ||
|
||
|
||
[build-system] | ||
requires = ["poetry-core"] | ||
build-backend = "poetry.core.masonry.api" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
nohup poetry run streamlit run --server.port $(less config.ini | grep "streamlit_port" | cut -d = -f 2) pyvocab/game.py > /dev/null 2>&1 & echo $! > streamlit.pid |