diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml new file mode 100644 index 0000000..331811d --- /dev/null +++ b/.github/workflows/publish.yaml @@ -0,0 +1,28 @@ +on: + release: + types: [published] + +permissions: + contents: read + +jobs: + pypi-publish: + name: upload release to PyPI + runs-on: ubuntu-latest + environment: publish + permissions: + id-token: write + steps: + - uses: actions/checkout@v3 + - name: Set up Python + uses: actions/setup-python@v3 + 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 distributions to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 diff --git a/requirements.txt b/requirements.txt index e75b78a..6b899d6 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ lir==0.1.23 -lrbenchmark>=0.1.1 +lrbenchmark>=0.1.2 numpy==1.24.3 diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..08f081a --- /dev/null +++ b/setup.py @@ -0,0 +1,25 @@ +from pathlib import Path + +from setuptools import find_packages, setup + + +long_description = (Path(__file__).parent / 'README.md').read_text() + + +dependencies = ( + 'lir', + 'lrbenchmark >= 0.1.1', + 'numpy' +) + + +setup( + name='telcell', + version='0.0.1', + author='Netherlands Forensics Institute', + description='Calculating LRs for Collocated Tracks', + long_description=long_description, + long_description_content_type='text/markdown', + packages=find_packages(), + install_requires=dependencies, +) \ No newline at end of file