diff --git a/.github/workflows/python-publish.yaml b/.github/workflows/python-publish.yaml new file mode 100644 index 0000000..f456f15 --- /dev/null +++ b/.github/workflows/python-publish.yaml @@ -0,0 +1,34 @@ +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. + +# GitHub recommends pinning actions to a commit SHA. +# To get a newer version, you will need to update the SHA. +# You can also reference a tag or branch, but the action may change without warning. + +name: Upload Python Package + +on: + release: + types: [published] + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.10' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install build + - name: Build package + run: python -m build + - name: Publish package + uses: pypa/gh-action-pypi-publish@release/v1 + with: + password: ${{ secrets.PYPI_API_TOKEN }} diff --git a/.gitignore b/.gitignore index 9e6d0fe..96df1a0 100644 --- a/.gitignore +++ b/.gitignore @@ -10,5 +10,5 @@ output/* data !goutput/Readme.md **/__pycache__ -.idea error_log.txt +build/ \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index d04f90a..7936e50 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,10 +1,10 @@ [project] name = "sn-trackeval" -version = "0.2.0" +version = "0.2.1" authors = [ {name = "Vladimir Somers", email = "somers.vladimir@gmail.com"}, {name = "Jonathon Luiten", email = "jonoluiten@gmail.com"}, - {name = "Arne Hoffhues"}, + {name = "Arne Hoffhues", email = "no-email@example.com"}, {name = "Victor Joos", email = "victorjoosdtb@gmail.com"}, ] description = "Code for evaluating object tracking" diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index 40d2a57..0000000 --- a/requirements.txt +++ /dev/null @@ -1,10 +0,0 @@ -numpy==1.18.1 -scipy==1.4.1 -pycocotools==2.0.2 -matplotlib==3.2.1 -opencv_python==4.4.0.46 -scikit_image==0.16.2 -pytest==6.0.1 -Pillow==8.1.2 -tqdm==4.64.0 -tabulate