diff --git a/.circleci/config.yml b/.circleci/config.yml index 9430008..e6aa967 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -32,7 +32,7 @@ jobs: name: Build Windows CLI shell: cmd.exe command: | - curl -sSL https://install.python-poetry.org | python - && ..\AppData\Roaming\Python\Scripts\poetry install && ..\AppData\Roaming\Python\Scripts\poetry run pyinstaller src/dfm/cli.py --onefile --name dfm && 7z a ./cli-windows.zip ./dist/ + choco install pyenv-win -y --force && refreshenv && pyenv install 3.11.0b4 && pyenv global 3.11.0b4 && pyenv shell 3.11.0b4 && curl -sSL https://install.python-poetry.org | python3 - && ..\AppData\Roaming\Python\Scripts\poetry install && ..\AppData\Roaming\Python\Scripts\poetry run pyinstaller src/dfm/cli.py --onefile --name dfm && 7z a ./cli-windows.zip ./dist/ - store_artifacts: path: cli-windows.zip create-cli-linux: @@ -59,7 +59,7 @@ jobs: name: Build Mac CLI command: | brew install python@3.11 - curl -sSL https://install.python-poetry.org | python3 - + curl -sSL https://install.python-poetry.org | python3.11 - $HOME/.local/bin/poetry install $HOME/.local/bin/poetry run pyinstaller src/dfm/cli.py --onefile --name dfm zip -r cli-mac.zip dist/dfm @@ -75,13 +75,19 @@ workflows: jobs: - create-cli-linux: filters: + tags: + only: /^v[0-9]+\.[0-9]+\.[0-9]+$/ branches: - only: main + ignore: /.*/ - create-cli-windows: filters: + tags: + only: /^v[0-9]+\.[0-9]+\.[0-9]+$/ branches: - only: main + ignore: /.*/ - create-cli-mac: filters: + tags: + only: /^v[0-9]+\.[0-9]+\.[0-9]+$/ branches: - only: main \ No newline at end of file + ignore: /.*/ \ No newline at end of file diff --git a/src/dfm/cli.py b/src/dfm/cli.py index 678003a..3e93e96 100644 --- a/src/dfm/cli.py +++ b/src/dfm/cli.py @@ -3,8 +3,8 @@ import platform from pathlib import Path -from src.config import BuildConfig -from src.version import __version__ +from dfm.config import BuildConfig +from dfm.version import __version__ def parse_parameter_string(param_str: str) -> dict: diff --git a/src/dfm/version.py b/src/dfm/version.py index 41e049e..5938482 100644 --- a/src/dfm/version.py +++ b/src/dfm/version.py @@ -1 +1 @@ -__version__ = "v0.2.3" +__version__ = "v0.3.0"