use poetry

This commit is contained in:
Florian Bezannier
2022-03-17 21:50:24 +01:00
parent 388cd0a4a2
commit 4ae199ea98
4 changed files with 64 additions and 37 deletions
+12 -5
View File
@@ -1,6 +1,13 @@
default_language_version:
python: python3.7
repos:
- repo: https://github.com/PyCQA/prospector
rev: 1.7.7 # The version of Prospector to use, if not 'master' for latest
hooks:
- id: prospector
language: system
- repo: https://github.com/pre-commit/mirrors-autopep8
rev: 'v1.6.0' # Use the sha / tag you want to point at
hooks:
- id: autopep8
language: system
- repo: https://github.com/PyCQA/prospector
rev: 1.7.7 # The version of Prospector to use, if not 'master' for latest
hooks:
- id: prospector
language: system
+52
View File
@@ -0,0 +1,52 @@
[tool.poetry]
name = "psa-car-controller"
version = "3.0.0"
description = "This is a python program to control a psa car with connected_car v4 api."
authors = ["Florian Bezannier <florian.bezannier@hotmail.fr>"]
license = "GPL-3.0"
[tool.poetry.dependencies]
python = "^3.7.0"
paho-mqtt = ">=1.5.0"
dash = ">=2"
dash-daq = "^0.5.0"
plotly = ">=5"
cryptography = ">=2.6"
Werkzeug = ">=1.0.0"
Flask = ">=1.0.4"
dash-bootstrap-components = ">=1"
ConfigUpdater = ">=3.0"
pandas = ">=0.23"
oauth2-client = "^1.2.1"
requests = "^2.27.1"
pytz = "^2021.3"
argparse = "^1.4.0"
geojson = "^2.5.0"
reverse-geocode = "^1.4.1"
androguard = "^3.3.5"
pycryptodomex = "^3.14.1"
pydantic = "^1.9.0"
"ruamel.yaml" = ">=0.15.0"
certifi = ">=14.05.14"
six = ">=1.10"
python-dateutil = ">=2.5.3"
urllib3 = ">=1.15.1"
[tool.poetry.dev-dependencies]
prospector = ">=1.3.0"
pre-commit = "^2.17.0"
coverage = "^6.3.2"
deepdiff = "^5.7.0"
selenium = "^4.1.3"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.autopep8]
max_line_length = 120
in-place = true
recursive = true
aggressive = 3
exclude = "__main__.py,psa-car-controller/psa/connected_car_api"
-5
View File
@@ -1,5 +0,0 @@
prospector>=1.3.0
pre-commit
coverage
deepdiff
selenium
-27
View File
@@ -1,27 +0,0 @@
paho-mqtt>=1.5.0
dash>=2
dash_daq
plotly>=5
cryptography>=2.6
Werkzeug>=1.0.0
flask>=1.0.4
dash_bootstrap_components>=1
configupdater>=3.0
pandas
oauth2_client
requests
pytz
typing
argparse
geojson
reverse_geocode
androguard
pycryptodomex
pydantic
ruamel.yaml>=0.15.0
#swagger req
certifi >= 14.05.14
six >= 1.10
python_dateutil >= 2.5.3
urllib3 >= 1.15.1