Skip to content

Commit f9e3e33

Browse files
author
Dammy Desktop
committed
initial commit
1 parent 5dafdde commit f9e3e33

34 files changed

Lines changed: 3551 additions & 0 deletions

.github/workflows/publish.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Publish to PyPI
2+
on:
3+
push:
4+
tags:
5+
- 'v*'
6+
7+
jobs:
8+
test:
9+
name: Run Automated Tests
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- name: Set up Python
14+
uses: actions/setup-python@v5
15+
with:
16+
python-version: "3.10"
17+
18+
- name: Install dependencies
19+
run: |
20+
pip install "numpy<2" pytest matplotlib pandas scipy
21+
pip install -e .
22+
23+
- name: Run Pytest
24+
run: pytest
25+
26+
27+
28+
build-n-publish:
29+
name: Build and publish to PyPI
30+
needs: test
31+
runs-on: ubuntu-latest
32+
environment:
33+
name: pypi
34+
url: https://pypi.org/p/Pupil_LIMlab
35+
permissions:
36+
id-token: write
37+
contents: read
38+
39+
steps:
40+
- uses: actions/checkout@v4
41+
- name: Set up Python
42+
uses: actions/setup-python@v5
43+
with:
44+
python-version: "3.10"
45+
cache: "pip"
46+
47+
- name: Install build tool
48+
run: pip install build
49+
50+
- name: Build binary
51+
run: |
52+
rm -rf dist/ # Force delete any existing dist folder
53+
python -m build
54+
55+
- name: Publish to PyPI
56+
uses: pypa/gh-action-pypi-publish@release/v1

.vscode/settings.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"python-envs.defaultEnvManager": "ms-python.python:conda",
3+
"python-envs.defaultPackageManager": "ms-python.python:conda"
4+
}

PupilProcessing/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from .pupilpipeline import Pipeline
2+
from . import utils
3+
from . import psychophysicsUtils
253 Bytes
Binary file not shown.
26.4 KB
Binary file not shown.
21.6 KB
Binary file not shown.
2.78 KB
Binary file not shown.

0 commit comments

Comments
 (0)