Commit 2ae9ba2 1 parent 168936d commit 2ae9ba2 Copy full SHA for 2ae9ba2
File tree 3 files changed +17
-2
lines changed
3 files changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -68,8 +68,13 @@ lxml = ">=4.9.1"
68
68
llm = " >=0.12"
69
69
70
70
[build-system ]
71
- requires = [" poetry-core>=1.0.0" ]
72
- build-backend = " poetry.core.masonry.api"
71
+ requires = [" poetry-core>=1.0.0" , " poetry-dynamic-versioning>=1.0.0,<2.0.0" ]
72
+ build-backend = " poetry_dynamic_versioning.backend"
73
+
74
+ [tool .poetry-dynamic-versioning ]
75
+ enable = true
76
+ vcs = " git"
77
+ style = " pep440"
73
78
74
79
[tool .poetry .scripts ]
75
80
schemauto = " schema_automator.cli:main"
Original file line number Diff line number Diff line change
1
+ from importlib import metadata
2
+
1
3
from schema_automator .annotators import *
2
4
from schema_automator .importers import *
3
5
from schema_automator .generalizers import *
6
+
7
+ try :
8
+ __version__ = metadata .version (__package__ )
9
+ except metadata .PackageNotFoundError :
10
+ # package is not installed
11
+ __version__ = "0.0.0" # pragma: no cover
Original file line number Diff line number Diff line change 33
33
from schema_automator .importers .sql_import_engine import SqlImportEngine
34
34
from schema_automator .importers .tabular_import_engine import TableImportEngine
35
35
from schema_automator .utils .schemautils import write_schema
36
+ from schema_automator import __version__
36
37
37
38
input_option = click .option (
38
39
"-i" ,
80
81
help = "Set the level of verbosity" )
81
82
@click .option ("-q" , "--quiet" ,
82
83
help = "Silence all diagnostics" )
84
+ @click .version_option (__version__ , "-V" , "--version" )
83
85
def main (verbose : int , quiet : bool ):
84
86
"""Run the LinkML Schema Automator Command Line.
85
87
You can’t perform that action at this time.
0 commit comments