From 9c0a11157f4351aff44cdec4233e1380b0efe9f8 Mon Sep 17 00:00:00 2001 From: Kevin Dean <42547789+AdvancedImagingUTSW@users.noreply.github.com> Date: Fri, 30 Aug 2024 15:45:16 -0500 Subject: [PATCH] Prepare for deployment --- .github/workflows/deploy.yml | 49 ++++++++++++++++++++++++++++++++++++ .gitignore | 1 + .vscode/settings.json | 3 --- pyproject.toml | 2 +- 4 files changed, 51 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/deploy.yml delete mode 100644 .vscode/settings.json diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..ba30c51 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,49 @@ +name: deploy + +on: + workflow_dispatch: + +jobs: + deploy: + runs-on: ${{ matrix.operating-system }} + strategy: + matrix: + python-version: ["3.9"] + operating-system: [windows-latest] + steps: + - uses: actions/checkout@v3 + - name: Create .pypirc file + shell: pwsh + run: | + @" + [distutils] + index-servers = + pypi + navigate-at-scale + + [pypi] + repository: https://upload.pypi.org/legacy/ + username: __token__ + password: $env:TWINE_API_KEY + + [navigate-at-scale] + repository: https://upload.pypi.org/legacy/ + username: __token__ + password: $env:TWINE_API_KEY + "@ | Set-Content -Path $env:USERPROFILE\.pypirc + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v3 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -U setuptools build twine + - name: Build and publish + env: + TWINE_USERNAME: __token__ + TWINE_PASSWORD: ${{ secrets.TWINE_API_KEY }} + run: | + git tag + python -m build + twine upload -r navigate-at-scale dist/* diff --git a/.gitignore b/.gitignore index f4ce6ae..e0dffef 100644 --- a/.gitignore +++ b/.gitignore @@ -12,3 +12,4 @@ __pycache__/ *_autosummary* docs/build/* *DS_Store +/.vscode diff --git a/.vscode/settings.json b/.vscode/settings.json deleted file mode 100644 index a7d0fc7..0000000 --- a/.vscode/settings.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "esbonio.sphinx.confDir": "" -} \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index cb32b36..39c2d3e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "navigate-at-scale" -description = "High-Throughput Tissue Imaging." +description = "A navigate plugin for high-throughput imaging with robotics." authors = [{name = "The Dean Lab, UT Southwestern Medical Center"}] readme = "README.md" license = {file = "LICENSE.md"}