Skip to content

Commit

Permalink
package setup
Browse files Browse the repository at this point in the history
  • Loading branch information
JoFrhwld committed Feb 18, 2024
1 parent 050a822 commit 9e592cd
Show file tree
Hide file tree
Showing 8 changed files with 2,898 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[run]
include = */src/*
omit = tests/*

exclude_also =
def __repr__
40 changes: 40 additions & 0 deletions .github/workflows/lint-and-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Lint and Test

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
runs-on:
- ubuntu-latest
- macos-latest
- windows-latest

strategy:
matrix:
python-version: [3.10, 3.11, 3.12]

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
export PATH="$HOME/.poetry/bin:$PATH"
- name: Install dependencies
run: poetry install

- name: Run tests
run: poetry run pytest
14 changes: 14 additions & 0 deletions docs/_quarto.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
project:
type: website
output-dir: _site

license: GPLv3

quartodoc:
# the name used to import the package you want to create reference docs for
package: aligned_textgrid
style: pkgdown
dir: reference
# write sidebar data to this file
sidebar: "reference/_sidebar.yml"
parser: google
2,799 changes: 2,799 additions & 0 deletions poetry.lock

Large diffs are not rendered by default.

35 changes: 35 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
[tool.poetry]
name = "fave-syllabify"
version = "0.1.0"
description = "Syllabify force-aligned textgrids"
authors = ["JoFrhwld <[email protected]>"]
license = "GPLv3"
readme = "README.md"
packages = [{include = "fave_syllabify", from = "src"}]

[tool.poetry.dependencies]
python = "^3.10"
aligned-textgrid = "^0.6.0"

[tool.poetry.group.dev.dependencies]
jupyter = "^1.0.0"

[tool.poetry.group.docs.dependencies]
quartodoc = "^0.7.2"
jupyter = "^1.0.0"

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

[tool.pytest.ini_options]
addopts = [
"--import-mode=importlib",
"--cov-config=.coveragerc",
"--cov"
]
filterwarnings =[
"ignore::UserWarning"
]
pythonpath = "src"
testpaths = "tests"
Empty file added src/fave_syllabify/__init__.py
Empty file.
2 changes: 2 additions & 0 deletions src/fave_syllabify/syllabify.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from aligned_textgrid import AlignedTextGrid, custom_classes

2 changes: 2 additions & 0 deletions tests/test_filler.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
def test_filler():
assert True

0 comments on commit 9e592cd

Please sign in to comment.