]> Nutra Git (v1) - nutratech/cli.git/commitdiff
upgrade USDA/usda verion, and lint deps
authorShane Jaroch <chown_tee@proton.me>
Sun, 25 Feb 2024 03:06:01 +0000 (22:06 -0500)
committerShane Jaroch <chown_tee@proton.me>
Sun, 25 Feb 2024 03:06:01 +0000 (22:06 -0500)
ntclient/__init__.py
ntclient/ntsqlite
ntclient/persistence/sql/__init__.py
ntclient/persistence/sql/nt/__init__.py
ntclient/persistence/sql/nt/funcs.py
ntclient/persistence/sql/usda/__init__.py
ntclient/services/__init__.py
requirements-lint.txt

index c70257baac068030a86d4d3273a7d7108b2722a2..ed052d15fc305e5e07582d398756cbedd19093f3 100644 (file)
@@ -25,7 +25,7 @@ __url__ = "https://github.com/nutratech/cli"
 
 # Sqlite target versions
 __db_target_nt__ = "0.0.6"
-__db_target_usda__ = "0.0.8"
+__db_target_usda__ = "0.0.9"
 USDA_XZ_SHA256 = "25dba8428ced42d646bec704981d3a95dc7943240254e884aad37d59eee9616a"
 
 # Global variables
index c5c64d3371a5f1e5c600989e79563c5827486224..8590d5958d8f1792709cfb7ac81cf9a1864c1890 160000 (submodule)
@@ -1 +1 @@
-Subproject commit c5c64d3371a5f1e5c600989e79563c5827486224
+Subproject commit 8590d5958d8f1792709cfb7ac81cf9a1864c1890
index 944b0f8708f82832bfc9acf2006742341768f981..20030d91063e66e317631048d62fe73f6acb11c3 100644 (file)
@@ -1,4 +1,5 @@
 """Main SQL persistence module, shared between USDA and NT databases"""
+
 import sqlite3
 from collections.abc import Sequence
 
index 58c9a05e6f7d19a500679242c9f4ffec00deac91..9bb069d67cdafd3551eb6ead431452e604730c2c 100644 (file)
@@ -1,4 +1,5 @@
 """Nutratracker DB specific sqlite module"""
+
 import os
 import sqlite3
 from collections.abc import Sequence
index af8a143c78f1412a31456e34374e92fe4129ba04..06d2dff8744e2f0c4d591e2727b9da686e794172 100644 (file)
@@ -1,4 +1,5 @@
 """nt.sqlite3 functions module"""
+
 from ntclient.persistence.sql.nt import sql
 
 
index f63fd2be7d4d9a917dc53fbf290c1a1cc2eaa768..cff5c990346d2ed611aa1cb8849622716a4c025d 100644 (file)
@@ -1,4 +1,5 @@
 """USDA DB specific sqlite module"""
+
 import os
 import sqlite3
 import tarfile
@@ -39,11 +40,8 @@ def usda_init(yes: bool = False) -> None:
     # TODO: handle resource moved on Bitbucket,
     #  or version mismatch due to developer mistake /  overwrite?
     #  And seed mirrors; don't hard code one host here!
-    url = (
-        "https://bitbucket.org/dasheenster/nutra-utils/downloads/{0}-{1}.tar.xz".format(
-            USDA_DB_NAME, __db_target_usda__
-        )
-    )
+    url = "https://github.com/nutratech/usda-sqlite/releases"
+    "/download/{1}/{0}-{1}.tar.xz".format(USDA_DB_NAME, __db_target_usda__)
 
     if USDA_DB_NAME not in os.listdir(NUTRA_HOME):
         print("INFO: usda.sqlite3 doesn't exist, is this a fresh install?")
index b540aaf603474e604f3d3a19156f2d80b5e7a7a2..5d45d2605fb606101c78c1ad74eba560c98e3512 100644 (file)
@@ -1,4 +1,5 @@
 """Services module, currently only home to SQL/persistence init method"""
+
 import os
 
 from ntclient import NUTRA_HOME
index caab8ebc746ea75da93b00509e0d1550c2900694..c6c466faee41271849821768e0571bdfa5f790ea 100644 (file)
@@ -3,9 +3,9 @@ black==24.2.0
 doc8==1.1.1
 flake8==7.0.0
 mypy==1.8.0
-pylint==3.0.3
+pylint==3.0.4
 types-colorama==0.4.15.20240205
-types-psycopg2==2.9.21.20240201
-types-requests==2.31.0.20240125
-types-setuptools==69.0.0.20240125
+types-psycopg2==2.9.21.20240218
+types-requests==2.31.0.20240218
+types-setuptools==69.1.0.20240223
 types-tabulate==0.9.0.20240106