From 1bf474045a2105532105721feaa6c71827e91ece Mon Sep 17 00:00:00 2001 From: TuxCoder Date: Fri, 4 Feb 2022 23:02:27 +0100 Subject: [PATCH] better packaging --- .gitignore | 3 +++ pyproject.toml | 5 +++++ setup.cfg | 25 +++++++++++++++++++++++++ shell.nix | 2 +- tox.ini | 13 +++++++++++++ 5 files changed, 47 insertions(+), 1 deletion(-) create mode 100644 pyproject.toml create mode 100644 setup.cfg create mode 100644 tox.ini diff --git a/.gitignore b/.gitignore index 8a71dde..dc3ed05 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,6 @@ node_modules /data /https.crt /https.key +*.egg-info +/.tox +/dist diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..2b2d29f --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,5 @@ +[build-system] +requires = [ + "setuptools" +] +build-backend = "setuptools.build_meta" diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..171c67f --- /dev/null +++ b/setup.cfg @@ -0,0 +1,25 @@ +[metadata] +name = lenticular_cloud +version = 0.0.1 +description = user management portal + +[options] +packages = lenticular_cloud +install_requires = + Flask + gunicorn + flask_babel + flask_wtf + flask_login + flask_sqlalchemy + Flask-Dance + ldap3 + ldap3_orm + python-u2flib-server + pyotp + cryptography + requests + requests_oauthlib + blinker + ory-hydra-client + flask-debug diff --git a/shell.nix b/shell.nix index e1fd4c9..b7b1eb8 100644 --- a/shell.nix +++ b/shell.nix @@ -7,6 +7,6 @@ let in pkgs.mkShell { # nativeBuildInputs is usually what you want -- tools you need to run - nativeBuildInputs = settings.nativeBuildInputs ++ settings.testBuildInputs ++ [ pkgs.nodePackages.npm pkgs.nodejs ]; + nativeBuildInputs = settings.nativeBuildInputs ++ settings.testBuildInputs ++ [ pkgs.nodePackages.npm pkgs.nodejs python.pkgs.build ]; } diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000..2cca759 --- /dev/null +++ b/tox.ini @@ -0,0 +1,13 @@ +[tox] +isolated_build = true + +[testenv] +deps = + pytest + mypy + pytest-mypy + types-requests + -rrequirements.txt +commands = + pytest + pytest --mypy