Skip to content

Commit

Permalink
Merge pull request #20 from NetherlandsForensicInstitute/feature/setu…
Browse files Browse the repository at this point in the history
…p_py

Added setup.py for PyPI push
  • Loading branch information
yasto-nfi authored Jun 21, 2023
2 parents 56b32be + ba8bbc9 commit 6a4bdbd
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 1 deletion.
28 changes: 28 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
lir==0.1.23
lrbenchmark>=0.1.1
lrbenchmark>=0.1.2
numpy==1.24.3
25 changes: 25 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -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,
)

0 comments on commit 6a4bdbd

Please sign in to comment.