Fmt.
This commit is contained in:
parent
298699c1d4
commit
e04324884f
4 changed files with 14 additions and 5 deletions
|
@ -8,7 +8,12 @@ import pickle
|
||||||
import sys
|
import sys
|
||||||
from typing import List
|
from typing import List
|
||||||
|
|
||||||
from . import __version__, __author__, __license__, __copyright__
|
from . import (
|
||||||
|
__author__,
|
||||||
|
__copyright__,
|
||||||
|
__license__,
|
||||||
|
__version__,
|
||||||
|
)
|
||||||
from .v0 import PackageV0, ProfileV0
|
from .v0 import PackageV0, ProfileV0
|
||||||
from .v1 import PackageV1, ProfileV1
|
from .v1 import PackageV1, ProfileV1
|
||||||
|
|
||||||
|
@ -252,6 +257,13 @@ def do_state(confdir, state_file):
|
||||||
print(*e)
|
print(*e)
|
||||||
|
|
||||||
|
|
||||||
|
@cli.command("migrate-to-toml")
|
||||||
|
@click.argument("confdir", type=Path)
|
||||||
|
@click.argument("requirement", type=str)
|
||||||
|
def do_migrate(confdig, requirement):
|
||||||
|
"""Convert from the 0.0.0 config format to the 0.1.0 TOML format"""
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__" or 1:
|
if __name__ == "__main__" or 1:
|
||||||
logging.basicConfig(
|
logging.basicConfig(
|
||||||
level=logging.INFO,
|
level=logging.INFO,
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
from abc import abstractmethod
|
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from shlex import quote as sh_quote
|
from shlex import quote as sh_quote
|
||||||
from typing import List, Optional
|
from typing import List, Optional
|
||||||
|
|
|
@ -5,7 +5,6 @@ An ill-considered pseudo-format.
|
||||||
|
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
import re
|
import re
|
||||||
from typing import NamedTuple
|
|
||||||
|
|
||||||
from .common import Package, sh, stow
|
from .common import Package, sh, stow
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,6 @@ Based on well* defined TOML manifests, rather than many files.
|
||||||
from hashlib import sha256
|
from hashlib import sha256
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import List, Optional, Union
|
from typing import List, Optional, Union
|
||||||
from typing import NamedTuple
|
|
||||||
|
|
||||||
from .common import Package, sh, stow
|
from .common import Package, sh, stow
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue