diff --git a/README.md b/README.md index 6b2cb89..c146a7b 100644 --- a/README.md +++ b/README.md @@ -13,10 +13,12 @@ app.listen(3000, lambda config: print("Listening on port http://localhost:%d now app.run() ``` -### pip (working progress) +### pip install ```bash pip install git+https://github.com/cirospaciari/socketify.py.git +#or specify PyPy3 +pypy3 -m pip install git+https://github.com/cirospaciari/socketify.py.git ``` ### Run @@ -32,4 +34,19 @@ app = App(AppOptions(key_file_name="./misc/key.pem", cert_file_name="./misc/cert app.get("/", lambda res, req: res.end("Hello World socketify from Python!")) app.listen(3000, lambda config: print("Listening on port http://localhost:%d now\n" % config.port)) app.run() +``` + +### Build local from source +```bash +#clone and update submodules +git clone https://github.com/cirospaciari/socketify.py.git +cd ./socketify.py +git submodule update --init --recursive --remote +#install build with pip +pypy3 -m pip install --upgrade build +#build and install +pypy3 -m build +pypy3 -m pip install . +#if you want to remove +pypy3 -m pip uninstall socketify ``` \ No newline at end of file diff --git a/tests/tests.py b/tests/tests.py index fc01478..fcea40a 100644 --- a/tests/tests.py +++ b/tests/tests.py @@ -108,9 +108,6 @@ run_app() # print(json(AppOptions(key_file_name="./misc/key.pem", cert_file_name="./misc/cert.pem", passphrase="1234").__dict__)) -#pip install git+https://github.com/inducer/pycuda.git (submodules are cloned recursively) -#https://stackoverflow.com/questions/1754966/how-can-i-run-a-makefile-in-setup-py -#https://packaging.python.org/en/latest/tutorials/packaging-projects/ #pypy3 -m pip install uvloop (not working with pypy) #apt install pypy3-dev #pypy3 -m pip install ujson (its slow D=) @@ -118,11 +115,4 @@ run_app() #pypy3 -m pip install cysimdjson (uses simdjson) is parse only #pypy3 -m pip install rapidjson (not working with pypy) #https://github.com/MagicStack/uvloop/issues/380 -#https://foss.heptapod.net/pypy/pypy/-/issues/3740 - - -#git submodule update --init --recursive --remote -#pypy3 -m pip install --upgrade build -#pypy3 -m build -#pypy3 -m pip install . -#pypy3 -m pip uninstall socketify \ No newline at end of file +#https://foss.heptapod.net/pypy/pypy/-/issues/3740 \ No newline at end of file