Преглед на файлове

Merge pull request #29 from lnyemba/v2.2.0

bug fixes: installer & registry
Steve L. Nyemba преди 1 ден
родител
ревизия
537ab56fd6
променени са 2 файла, в които са добавени 4 реда и са изтрити 2 реда
  1. 1 1
      pyproject.toml
  2. 3 1
      transport/registry.py

+ 1 - 1
pyproject.toml

@@ -19,7 +19,7 @@ classifiers = [
 dependencies = [
     "termcolor","sqlalchemy", "aiosqlite","duckdb-engine",
     "mysql-connector-python","psycopg2-binary","nzpy","pymssql","duckdb-engine","aiosqlite",
-    "typer","pandas","numpy","sqlalchemy","pyarrow","smart-open",
+    "typer","pandas","numpy","sqlalchemy","pyarrow",
     "plugin-ix@git+https://github.com/lnyemba/plugins-ix"
 ]
 [project.optional-dependencies]

+ 3 - 1
transport/registry.py

@@ -49,7 +49,9 @@ def init (email,path=REGISTRY_PATH,override=False,_file=REGISTRY_FILE):
     Initializing the registry and will raise an exception in the advent of an issue
     """
     p = '@' in email
-    q = False if '.' not in email else email.split('.')[-1] in ['edu','com','io','ai','org', 'co', 'cc','rw','zw'] or len (email.split('.')[-1]) >1 or len (email.split('.')[-1]) < 4
+    #q = False if '.' not in email else email.split('.')[-1] in ['edu','com','io','ai','org']
+    q = len(email.split('.')[-1]) in [2,3]
+
     if p and q :
         _config = {"email":email,'version':__version__}
         if not os.path.exists(path):