better packaging

This commit is contained in:
TuxCoder 2022-02-04 23:02:27 +01:00
parent cc105e5340
commit 1bf474045a
5 changed files with 47 additions and 1 deletions

3
.gitignore vendored
View file

@ -7,3 +7,6 @@ node_modules
/data /data
/https.crt /https.crt
/https.key /https.key
*.egg-info
/.tox
/dist

5
pyproject.toml Normal file
View file

@ -0,0 +1,5 @@
[build-system]
requires = [
"setuptools"
]
build-backend = "setuptools.build_meta"

25
setup.cfg Normal file
View file

@ -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

View file

@ -7,6 +7,6 @@ let
in in
pkgs.mkShell { pkgs.mkShell {
# nativeBuildInputs is usually what you want -- tools you need to run # 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 ];
} }

13
tox.ini Normal file
View file

@ -0,0 +1,13 @@
[tox]
isolated_build = true
[testenv]
deps =
pytest
mypy
pytest-mypy
types-requests
-rrequirements.txt
commands =
pytest
pytest --mypy