aboutsummaryrefslogtreecommitdiffstats
path: root/tests/api (unfollow)
Commit message (Collapse)AuthorLines
2021-01-12Docker: update pipenvGravatar MarkKoz-1/+1
2021-01-12Fix caching of exposed packagesGravatar MarkKoz-16/+14
The problem with --ignore-installed is that it also ignores packages in the target site, therefore re-installing all packages and making caching futile. Install snekbox's dependencies to the default user site. During installation of the exposed packages, switch the user site to a custom one to ensure pip will not skip packages due to seeing them as already installed as one of snekbox's dependencies. If pip made the --root option ignore packages outside the root, then using --root would be the best solution. There is a 5+ year old issue open about that.
2021-01-11Docker: simplify pipenv install commandGravatar MarkKoz-6/+1
2021-01-11Docker: add comments to separate stagesGravatar MarkKoz-0/+3
2021-01-11Docker: move env var definitions to the base stageGravatar MarkKoz-1/+5
Just a refactor.
2021-01-11Force extant packages to install to the user site too during deploymentGravatar MarkKoz-1/+1
Fix #89
2021-01-09Removing trailing whitespaces from README.mdGravatar MarkKoz-1/+1
2021-01-09CI: install git in the containerGravatar MarkKoz-0/+6
Pre-commit requires git.
2021-01-09CI: run pre-commit hooksGravatar MarkKoz-0/+6
2021-01-09CI: improve readability of some run commandsGravatar MarkKoz-5/+7
2021-01-09Re-arrange settings in .flake8 fileGravatar MarkKoz-11/+13
2021-01-09Add more pre-commit hooksGravatar MarkKoz-1/+17
Hooks added: * check-merge-conflict - checks for files with merge conflict strings * check-toml - attempts to load all toml files to verify syntax * check-yaml - attempts to load all yaml files to verify syntax * end-of-file-fixer - ensures files end in a newline and only a newline * mixed-line-ending - replaces mixed line endings with LF * trailing-whitespace - trims trailing whitespace * python-check-blanket-noqa - enforces that noqa annotations always occur with specific codes See: python-discord/organisation#138
2021-01-09Install pep8-namingGravatar MarkKoz-1/+17
It is a flake8 plugin which enforces PEP 8 naming conventions. Resolves #63
2021-01-09Update dev dependenciesGravatar MarkKoz-11/+11
2021-01-10Create dependency cache directory if not presentGravatar Joe Banks-1/+1
2021-01-10Remove erroneous slash from dependencies listGravatar Joe Banks-1/+1
2021-01-10Add leading slash to post-start commandGravatar Joe Banks-1/+1
2021-01-09CI: install numpyGravatar MarkKoz-1/+2
One of the unit tests depends on numpy.
2021-01-09Prevent setting GIT_SHA from invalidating the Docker layer cacheGravatar MarkKoz-2/+5
2021-01-09Document how to install additional packagesGravatar MarkKoz-1/+22
2021-01-09Swap out configMap for a hostPath for psuedo-persistenceGravatar Mark-2/+3
Co-authored-by: Joe Banks <[email protected]>
2021-01-09Add a Docker volume for the user baseGravatar MarkKoz-0/+13
2021-01-09Install exposed packages separately during deploymentGravatar MarkKoz-438/+100
2021-01-09Use a custom directory for exposed Python packagesGravatar MarkKoz-5/+7
Isolate snekbox's dependencies from the packages available within the Python interpreter. Disable Python's default behaviour of site-dependent manipulations of sys.path. The custom directory looks like a user site to allow `pip install --user` to work with it. However, snekbox will see it as simply an additional search path for modules rather than as a user site. Disable isolated mode (-I) because it implies (-E), which ignores PYTHON* environment variables. This conflicts with the reliance on `PYTHONPATH`. Specify `PYTHONUSERBASE` in the Dockerfile to make installing packages to expose more intuitive for users. Otherwise, they'd have to remember to set this variable every time they need to install something.
2021-01-02Changed Python language hook to system.Gravatar xithrius-1/+1
2020-12-20Fix getting Git SHA in workflowGravatar ks129-1/+1
2020-12-20Add Sentry release to SDK initializationGravatar ks129-1/+3