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
Maxim Avanov
committed
Apr 10, 2020
1 parent
20696f4
commit 5678ca7
Showing
15 changed files
with
100 additions
and
24 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 |
---|---|---|
|
@@ -12,6 +12,9 @@ dist/ | |
*.egg-info/ | ||
.DS_Store | ||
|
||
.venv/ | ||
.local/ | ||
|
||
docs/_build | ||
|
||
*nose* | ||
|
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,4 +1,5 @@ | ||
Sphinx>=2.1.2,<2.2 | ||
invoke==1.2.0 | ||
wheel>=0.33.1,<0.34 | ||
piprot==0.9.10 | ||
piprot==0.9.10 | ||
Nuitka>=0.6.7,<0.7 |
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,16 +1,16 @@ | ||
uvicorn==0.8.4 | ||
uvloop>=0.12.2,<0.13.0 | ||
httpx>=0.6.8,<0.7 | ||
uvicorn==0.11.3 | ||
uvloop>=0.14,<0.15.0 | ||
httpx>=0.12.1,<0.13 | ||
aiopg==0.16.0 | ||
hiredis==1.0.0 | ||
aioredis==1.2.0 | ||
aioredis>=1.3.1,<1.4 | ||
psycopg2>=2.8.3,<2.9 | ||
sqlalchemy>=1.3.5,<1.4 | ||
alembic>=1.0.11,<1.1 | ||
pyyaml>=5.1,<6.0 | ||
ramlfications==0.1.9 | ||
venusian==1.2.0 | ||
# for the parser | ||
inflection==0.3.1 | ||
typeit==0.17.0 | ||
inflection>=0.4,<0.5 | ||
typeit==0.22.0 | ||
routes==2.4.1 |
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 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,63 @@ | ||
with (import (builtins.fetchTarball { | ||
# Descriptive name to make the store path easier to identify | ||
name = "solo-python38"; | ||
# Commit hash for nixos-unstable as of 2019-10-27 | ||
url = https://github.com/NixOS/nixpkgs-channels/archive/f601ab37c2fb7e5f65989a92df383bcd6942567a.tar.gz; | ||
# Hash obtained using `nix-prefetch-url --unpack <url>` | ||
sha256 = "0ikhcmcc29iiaqjv5r91ncgxny2z67bjzkppd3wr1yx44sv7v69s"; | ||
}) {}); | ||
|
||
let macOsDeps = with pkgs; stdenv.lib.optionals stdenv.isDarwin [ | ||
darwin.apple_sdk.frameworks.CoreServices | ||
darwin.apple_sdk.frameworks.ApplicationServices | ||
]; | ||
|
||
in | ||
|
||
# Make a new "derivation" that represents our shell | ||
stdenv.mkDerivation { | ||
name = "solo38"; | ||
|
||
# The packages in the `buildInputs` list will be added to the PATH in our shell | ||
# Python-specific guide: | ||
# https://github.com/NixOS/nixpkgs/blob/master/doc/languages-frameworks/python.section.md | ||
buildInputs = [ | ||
# see https://nixos.org/nixos/packages.html | ||
# Python distribution | ||
python38Full | ||
python38Packages.virtualenv | ||
python38Packages.wheel | ||
python38Packages.twine | ||
taglib | ||
ncurses | ||
libxml2 | ||
libxslt | ||
libzip | ||
zlib | ||
libressl | ||
|
||
libuv | ||
postgresql | ||
# root CA certificates | ||
cacert | ||
which | ||
] ++ macOsDeps; | ||
shellHook = '' | ||
# set SOURCE_DATE_EPOCH so that we can use python wheels | ||
export SOURCE_DATE_EPOCH=$(date +%s) | ||
VENV_DIR=$PWD/.venv | ||
export PATH=$VENV_DIR/bin:$PATH | ||
export PYTHONPATH="" | ||
export LANG=en_US.UTF-8 | ||
# https://python-poetry.org/docs/configuration/ | ||
export PIP_CACHE_DIR=$PWD/.local/pip-cache | ||
# Setup virtualenv | ||
if [ ! -d $VENV_DIR ]; then | ||
virtualenv $PWD/.venv | ||
fi | ||
''; | ||
} |
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 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 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 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,3 @@ | ||
from typing import Awaitable | ||
|
||
IO = Awaitable |
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