Add CLI script

This commit is contained in:
Gabriel Augendre 2021-08-06 15:47:23 +02:00
parent b81bd49e73
commit 95198271d8
2 changed files with 7 additions and 4 deletions

View file

@ -3,9 +3,9 @@ import datetime
import pprint import pprint
import sys import sys
from data.cities import CITIES from insee_number_translator.data.cities import CITIES
from data.countries import CONTINENTS, COUNTRIES from insee_number_translator.data.countries import CONTINENTS, COUNTRIES
from data.departments import DEPARTMENTS from insee_number_translator.data.departments import DEPARTMENTS
class InseeData: class InseeData:

View file

@ -1,6 +1,6 @@
[tool.poetry] [tool.poetry]
name = "insee_number_translator" name = "insee_number_translator"
version = "0.1.0" version = "0.2.0"
description = "Translate french INSEE number to meaningful data" description = "Translate french INSEE number to meaningful data"
authors = ["Gabriel Augendre <gabriel@augendre.info>"] authors = ["Gabriel Augendre <gabriel@augendre.info>"]
license = "MIT" license = "MIT"
@ -11,6 +11,9 @@ python = "^3.9"
[tool.poetry.dev-dependencies] [tool.poetry.dev-dependencies]
pre-commit = "^2.13.0" pre-commit = "^2.13.0"
[tool.poetry.scripts]
insee = 'insee_number_translator.main:main'
[build-system] [build-system]
requires = ["poetry-core>=1.0.0"] requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api" build-backend = "poetry.core.masonry.api"