Skip to content

Commit

Permalink
Merge pull request #1804 from SMI/remove-sr-python
Browse files Browse the repository at this point in the history
delete SRAnonTool files
  • Loading branch information
rkm authored Apr 23, 2024
2 parents b4588d8 + a021b82 commit 34bb4b4
Show file tree
Hide file tree
Showing 32 changed files with 2 additions and 4,051 deletions.
12 changes: 0 additions & 12 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,3 @@ updates:
interval: weekly
reviewers:
- SMI/reviewers
- package-ecosystem: "pip"
directory: "/src/common/Smi_Common_Python"
schedule:
interval: weekly
reviewers:
- SMI/reviewers
- package-ecosystem: "pip"
directory: "/src/applications/SRAnonTool"
schedule:
interval: weekly
reviewers:
- SMI/reviewers
36 changes: 1 addition & 35 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,43 +143,9 @@ jobs:
name: SmiServices-${{ needs.init.outputs.build_ref }}-ctp.zip
path: dist/${{ needs.init.outputs.build_ref }}/*
if-no-files-found: error
smi-py:
needs: [init]
strategy:
fail-fast: false
matrix: ${{ fromJson(needs.init.outputs.matrix) }}
runs-on: ${{ matrix.image }}
steps:
- name: "[linux] enable disk caching"
if: ${{ matrix.os == 'linux' }}
run: sudo apt-get install -y libeatmydata1
- name: checkout
uses: actions/checkout@v4
- name: setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ env.python-version }}
- name: create venv
run: |
set -exuo pipefail
python -m pip install --upgrade virtualenv
python -m virtualenv venv
echo "venv_bin=./venv/bin" >> $GITHUB_ENV
- name: "[windows] update venv var"
if: ${{ matrix.os == 'windows' }}
run: echo "venv_bin=./venv/Scripts" >> $GITHUB_ENV
- name: test and package python
run: ./bin/smi-py/testPackage.py ${{ needs.init.outputs.build_ref }} ${{ env.venv_bin }}/python
- name: "[linux] upload packages"
if: ${{ matrix.os == 'linux' }}
uses: actions/upload-artifact@v4
with:
name: SmiServices-${{ needs.init.outputs.build_ref }}-py.zip
path: dist/${{ needs.init.outputs.build_ref }}/*
if-no-files-found: error
upload-to-release:
if: contains(github.ref, 'refs/tags/v')
needs: [init, smi, ctp, smi-py]
needs: [init, smi, ctp]
runs-on: ubuntu-20.04
steps:
- name: "[linux] enable disk caching"
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ repos:
- id: check-docstring-first
- id: debug-statements
# - id: name-tests-test
- id: requirements-txt-fixer
# - id: requirements-txt-fixer
- repo: meta
hooks:
- id: check-hooks-apply
Expand Down
1 change: 0 additions & 1 deletion bin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,3 @@ These are:

- [smi](/bin/smi): The CLI tool which contains the primary SMI microservices and applications
- [ctp](/bin/ctp): The adapter allowing CTP to run as a microservice
- [smi-py](/bin/smi-py): The common set of python scripts supporting the Structured Reporting anonymisation
9 changes: 0 additions & 9 deletions bin/smi-py/pythonCommon.py

This file was deleted.

55 changes: 0 additions & 55 deletions bin/smi-py/test.py

This file was deleted.

70 changes: 0 additions & 70 deletions bin/smi-py/testPackage.py

This file was deleted.

Loading

0 comments on commit 34bb4b4

Please sign in to comment.