Commit 5f6b23d0 authored by Christophe Benz's avatar Christophe Benz

Rename project

parent 256af345
calculateur_impots.egg-info
calculateur_impots/__pycache__/
calculateur_impots/dummy
calculateur_impots/generated/__pycache__/
*.egg-info
*.pyc
__pycache__
# Calculateur Impôts en Python
# Calculette Impôts traduite en Python
## Installation
......@@ -20,7 +20,7 @@ un [`virtualenv`](https://virtualenv.readthedocs.org/en/latest/) s'il le souhait
Cette étape n'est utile que lorsque les fichiers JSON définissant l'AST changent.
```
$ python3 calculateur_impots/scripts/json_ast_to_python.py /path/to/m-language-parser/json
python3 calculette_impots/scripts/json_ast_to_python.py /path/to/m-language-parser/json
```
## Utilisation
......@@ -28,15 +28,16 @@ $ python3 calculateur_impots/scripts/json_ast_to_python.py /path/to/m-language-p
Exemple :
```
$ python3 calculateur_impots/scripts/calculate.py PPE_SALAVDEFV
python3 calculette_impots/scripts/calculate.py PPE_SALAVDEFV
```
## Qualité du code
```
$ flake8 --max-line-length 120 .
flake8 --max-line-length 120 .
```
## Simulateur en ligne
Pour comparer les résultats avec ceux du simulateur en ligne :
http://www3.finances.gouv.fr/calcul_impot/2015/simplifie/index.htm
......@@ -14,7 +14,7 @@ import logging
import pprint
import textwrap
from m_language_parser.unloop_helpers import iter_unlooped_nodes
from calculette_impots_m_language_parser.unloop_helpers import iter_unlooped_nodes
from toolz import concatv, interpose, mapcat
from . import core
......
......@@ -11,9 +11,8 @@ import sys
from toolz.curried import map, pipe, unique
from calculateur_impots import core
from calculateur_impots.generated import formulas, verifs
# from calculateur_impots.generated.variables_definitions import definition_by_variable_name
from calculette_impots import core
from calculette_impots.generated import formulas, verifs
# Globals
......@@ -44,7 +43,7 @@ def iter_saisie_variables(values):
def load_errors_definitions():
m_language_parser_dir_path = pkg_resources.get_distribution('m_language_parser').location
m_language_parser_dir_path = pkg_resources.get_distribution('calculette_impots_m_language_parser').location
errors_definitions_file_path = os.path.join(m_language_parser_dir_path, 'json', 'ast', 'errH.json')
with open(errors_definitions_file_path) as errors_definitions_file:
errors_definitions_str = errors_definitions_file.read()
......
......@@ -23,7 +23,7 @@ import textwrap
from toolz.curried import concat, concatv, filter, first, map, mapcat, pipe, sorted, valmap
from calculateur_impots import core, formulas_helpers, python_source_visitors
from calculette_impots import core, formulas_helpers, python_source_visitors
# Globals
......@@ -73,7 +73,7 @@ def iter_ast_json_file_names(filenames, excluded_filenames=None):
def load_dependencies_by_formula_name():
m_language_parser_dir_path = pkg_resources.get_distribution('m_language_parser').location
m_language_parser_dir_path = pkg_resources.get_distribution('calculette_impots_m_language_parser').location
variables_dependencies_file_path = os.path.join(m_language_parser_dir_path, 'json', 'data',
'formulas_dependencies.json')
with open(variables_dependencies_file_path) as variables_dependencies_file:
......
......@@ -18,8 +18,8 @@ setup(
'Programming Language :: Python',
'Topic :: Scientific/Engineering :: Information Analysis',
],
description='Calculateur des impôts compilé en Python',
keywords='calculateur impôts tax',
description='Calculette des impôts traduite en Python',
keywords='calculette impôts tax',
license='http://www.fsf.org/licensing/licenses/agpl-3.0.html',
url='https://git.framasoft.org/openfisca/calculette-impots-python',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment