From 95198271d856fbd72320f21bbcf07262f57c4a12 Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Fri, 6 Aug 2021 15:47:23 +0200 Subject: [PATCH] Add CLI script --- insee_number_translator/main.py | 6 +++--- pyproject.toml | 5 ++++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/insee_number_translator/main.py b/insee_number_translator/main.py index cd82dcf..e1c49f1 100644 --- a/insee_number_translator/main.py +++ b/insee_number_translator/main.py @@ -3,9 +3,9 @@ import datetime import pprint import sys -from data.cities import CITIES -from data.countries import CONTINENTS, COUNTRIES -from data.departments import DEPARTMENTS +from insee_number_translator.data.cities import CITIES +from insee_number_translator.data.countries import CONTINENTS, COUNTRIES +from insee_number_translator.data.departments import DEPARTMENTS class InseeData: diff --git a/pyproject.toml b/pyproject.toml index a885e39..3a64e56 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "insee_number_translator" -version = "0.1.0" +version = "0.2.0" description = "Translate french INSEE number to meaningful data" authors = ["Gabriel Augendre "] license = "MIT" @@ -11,6 +11,9 @@ python = "^3.9" [tool.poetry.dev-dependencies] pre-commit = "^2.13.0" +[tool.poetry.scripts] +insee = 'insee_number_translator.main:main' + [build-system] requires = ["poetry-core>=1.0.0"] build-backend = "poetry.core.masonry.api"