From ebd1f9379aea08c9df402ed52935f5c4222f5582 Mon Sep 17 00:00:00 2001 From: ali madihi Date: Sat, 20 Feb 2021 14:57:59 +0330 Subject: [PATCH] fix: version 0.0.6 --- persian_tools/__init__.py | 8 ++------ persian_tools/bank/__init__.py | 0 persian_tools/digits/__init__.py | 8 +++++++- setup.cfg | 2 +- setup.py | 2 +- 5 files changed, 11 insertions(+), 9 deletions(-) create mode 100644 persian_tools/bank/__init__.py diff --git a/persian_tools/__init__.py b/persian_tools/__init__.py index 6ad5710..3fcbeeb 100644 --- a/persian_tools/__init__.py +++ b/persian_tools/__init__.py @@ -1,9 +1,5 @@ __author__ = 'Ali Madihi (mrunderline)' -__version__ = '0.0.2' +__version__ = '0.0.6' __date__ = '2021-02-20' - -class LANGUAGES: - EN = 'en' - FA = 'fa' - AR = 'ar' +from persian_tools import * diff --git a/persian_tools/bank/__init__.py b/persian_tools/bank/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/persian_tools/digits/__init__.py b/persian_tools/digits/__init__.py index 2861877..6177da1 100644 --- a/persian_tools/digits/__init__.py +++ b/persian_tools/digits/__init__.py @@ -1,9 +1,15 @@ from typing import Union -from .. import LANGUAGES from math import floor from .strings import SCALE, NUMBER_TEXT from ..ordinal_suffix import add as add_ordinal_suffix + +class LANGUAGES: + EN = 'en' + FA = 'fa' + AR = 'ar' + + SUPPORTED_CHARS = { LANGUAGES.EN: '0123456789', LANGUAGES.FA: '۰۱۲۳۴۵۶۷۸۹', diff --git a/setup.cfg b/setup.cfg index 795fdcd..6ffa327 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = persian_tools -version = 0.0.2 +version = 0.0.6 author = Ali Madihi (mrunderline) author_email = alimadihib@gmail.com description = An anthology of a variety of tools for the Persian language in Python diff --git a/setup.py b/setup.py index a755026..e749a91 100644 --- a/setup.py +++ b/setup.py @@ -8,7 +8,7 @@ setuptools.setup( name='persian_tools', - packages=['persian_tools'], + packages=setuptools.find_packages(), version=import_module('persian_tools').__version__, license='MIT', description='An anthology of a variety of tools for the Persian language in Python',