mirror of https://gitlab.com/litecord/litecord.git
Pipfile: add pyflakes
- requirements: add pipenv so tox can use it when running - add setup.py - add tox.ini
This commit is contained in:
parent
1711192ac9
commit
29b5f4cfb6
1
Pipfile
1
Pipfile
|
|
@ -16,6 +16,7 @@ quart = {editable = true, ref = "e23714d5", git = "https://gitlab.com/pgjones/qu
|
|||
[dev-packages]
|
||||
pytest = "==3.10.1"
|
||||
pytest-asyncio = "==0.9.0"
|
||||
pyflakes = "*"
|
||||
|
||||
[requires]
|
||||
python_version = "3.7"
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"_meta": {
|
||||
"hash": {
|
||||
"sha256": "a8bf8c0b56b1a98958247f12c6928caa241407cd0596d2dab58650260d452a97"
|
||||
"sha256": "facb4ec2c4c7ece37adbeb5dd9dcf23bef7c4d6a5cd952393f022a6369a9bbf3"
|
||||
},
|
||||
"pipfile-spec": 6,
|
||||
"requires": {
|
||||
|
|
@ -173,10 +173,10 @@
|
|||
},
|
||||
"hypercorn": {
|
||||
"hashes": [
|
||||
"sha256:824dc6385854a8cee440a444405c7ae3cd083cf3a86d850c22f7e98c5236c22e",
|
||||
"sha256:f96c8cd6f3e60812f89388580cf4c692b8a4a5b88888e73bd9f0d9afad435a05"
|
||||
"sha256:d563272b41269e9b2a73b1058f2471a511b545f64090b3fc2d6006cbaf8109fe",
|
||||
"sha256:f6e8c5f02e9c97d6981c56098be379cb0f9c2a48f64c1d5dd2a8f228b61bc2b8"
|
||||
],
|
||||
"version": "==0.4.0"
|
||||
"version": "==0.4.1"
|
||||
},
|
||||
"hyperframe": {
|
||||
"hashes": [
|
||||
|
|
@ -388,6 +388,14 @@
|
|||
],
|
||||
"version": "==1.7.0"
|
||||
},
|
||||
"pyflakes": {
|
||||
"hashes": [
|
||||
"sha256:9a7662ec724d0120012f6e29d6248ae3727d821bba522a0e6b356eff19126a49",
|
||||
"sha256:f661252913bc1dbe7fcfcbf0af0db3f42ab65aabd1a6ca68fe5d466bace94dae"
|
||||
],
|
||||
"index": "pypi",
|
||||
"version": "==2.0.0"
|
||||
},
|
||||
"pytest": {
|
||||
"hashes": [
|
||||
"sha256:3f193df1cfe1d1609d4c583838bea3d532b18d6160fd3f55c9447fdca30848ec",
|
||||
|
|
|
|||
17
README.md
17
README.md
|
|
@ -9,7 +9,7 @@ This project is a rewrite of [litecord-reference].
|
|||
|
||||
## Notes
|
||||
|
||||
- There are no testing being run on the current codebase. Which means the code is definitely unstable.
|
||||
- Unit testing isn't completly perfect.
|
||||
- No voice is planned to be developed, for now.
|
||||
- You must figure out connecting to the server yourself. Litecord will not distribute
|
||||
Discord's official client code nor provide ways to modify the client.
|
||||
|
|
@ -17,7 +17,7 @@ This project is a rewrite of [litecord-reference].
|
|||
## Install
|
||||
|
||||
Requirements:
|
||||
- Python 3.6 or higher
|
||||
- Python 3.7 or higher
|
||||
- PostgreSQL
|
||||
- [Pipenv]
|
||||
|
||||
|
|
@ -61,3 +61,16 @@ $ pipenv run hypercorn run:app
|
|||
$ git pull
|
||||
$ pipenv run ./manage.py migrate
|
||||
```
|
||||
|
||||
## Running tests
|
||||
|
||||
To run tests we must create users that we know the passwords of.
|
||||
Because of that, **never setup a testing environment in production.**
|
||||
|
||||
```sh
|
||||
# setup the testing users
|
||||
$ pipenv run ./manage.py setup_tests
|
||||
|
||||
# run tests
|
||||
$ pipenv run tox
|
||||
```
|
||||
|
|
|
|||
|
|
@ -0,0 +1 @@
|
|||
pipenv
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
from setuptools import setup
|
||||
|
||||
setup(
|
||||
name='litecord',
|
||||
version='0.0.1',
|
||||
description='Implementation of the Discord API',
|
||||
url='https://litecord.top',
|
||||
author='Luna Mendes',
|
||||
python_requires='>=3.7'
|
||||
)
|
||||
Loading…
Reference in New Issue