truefoundry 0.0.1.dev0__tar.gz → 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of truefoundry might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: truefoundry
3
- Version: 0.0.1.dev0
3
+ Version: 0.1.0
4
4
  Summary: Truefoundry CLI
5
5
  Author: Abhishek Choudhary
6
6
  Author-email: abhichoudhary06@gmail.com
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "truefoundry"
3
- version = "0.0.1.dev"
3
+ version = "0.1.0"
4
4
  description = "Truefoundry CLI"
5
5
  authors = ["Abhishek Choudhary <abhichoudhary06@gmail.com>"]
6
6
  readme = "README.md"
@@ -10,13 +10,15 @@ python = "^3.8,<3.13"
10
10
  servicefoundry = "0.10.1"
11
11
  mlfoundry = { version = "0.10.7", optional = true }
12
12
 
13
-
14
13
  [tool.poetry.extras]
15
14
  ml = ["mlfoundry"]
16
15
 
16
+ [tool.poetry-dynamic-versioning]
17
+ enable = false
18
+
17
19
  [build-system]
18
- requires = ["poetry-core"]
19
- build-backend = "poetry.core.masonry.api"
20
+ requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning>=1.0.0,<2.0.0"]
21
+ build-backend = "poetry_dynamic_versioning.backend"
20
22
 
21
23
  [tool.poetry.plugins."console_scripts"]
22
24
  tfy = "truefoundry.cli.__main__:main"
@@ -1,10 +1,14 @@
1
- import os
2
1
  import sys
3
2
 
4
3
  import click
5
- from mlfoundry.cli.commands import download
6
4
  from servicefoundry.cli import create_servicefoundry_cli
7
5
 
6
+ MLFOUNDRY_INSTALLED = True
7
+ try:
8
+ from mlfoundry.cli.commands import download
9
+ except ImportError:
10
+ MLFOUNDRY_INSTALLED = False
11
+
8
12
 
9
13
  @click.group()
10
14
  def ml():
@@ -16,9 +20,10 @@ def main():
16
20
  # If the status is omitted or None, it defaults to zero (i.e., success).
17
21
  # If the status is an integer, it will be used as the system exit status.
18
22
  # If it is another kind of object, it will be printed and the system exit status will be one (i.e., failure).
19
- ml.add_command(download)
20
23
  cli = create_servicefoundry_cli()
21
- cli.add_command(ml)
24
+ if MLFOUNDRY_INSTALLED:
25
+ ml.add_command(download)
26
+ cli.add_command(ml)
22
27
  sys.exit(cli())
23
28
 
24
29
 
@@ -0,0 +1,4 @@
1
+ try:
2
+ from mlfoundry import *
3
+ except ImportError:
4
+ print("To use metadata/artifact logging features, please run 'pip install truefoundry[ml]'.")
@@ -1 +0,0 @@
1
- from mlfoundry import *
File without changes