Skip to content

Commit 34c7f62

Browse files
author
Raphael Mitsch
committed
Set up repo.
1 parent 9655465 commit 34c7f62

6 files changed

Lines changed: 100 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Upload Python Package to PyPI when a Release is Created
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
pypi-publish:
9+
name: Publish release to PyPI
10+
runs-on: ubuntu-latest
11+
permissions:
12+
id-token: write
13+
contents: read
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- name: Set up Python
18+
uses: actions/setup-python@v4
19+
with:
20+
python-version: "3.x"
21+
22+
- name: Install dependencies
23+
run: |
24+
python -m pip install --upgrade pip
25+
python -m pip install build
26+
27+
- name: Build package
28+
run: python -m build
29+
30+
- name: Publish package distributions to PyPI
31+
uses: pypa/gh-action-pypi-publish@release/v1
32+
with:
33+
password: ${{ secrets.PYPI_TOKEN }}

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
__pycache__/
2+
*.pyc
3+
*.pyo
4+
build/
5+
dist/
6+
*.egg-info/
7+
.idea
8+
.venv/

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Sieves
2+
Rapid prototyping and robust baselines for information extraction with zero- and few-shot models.

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build-system]
2+
requires = ["setuptools", "setuptools-scm"]
3+
build-backend = "setuptools.build_meta"

setup.cfg

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
[metadata]
2+
name = sieves
3+
version = 0.0.0
4+
author = Matthew Upson, Nick Sorros, Raphael Mitsch, Matthew Maufe, Angelo Di Gianvito
5+
author_email = hi@mantisnlp.com
6+
description = Rapid prototyping and robust baselines for information extraction with zero- and few-shot models.
7+
long_description = file: README.md
8+
long_description_content_type = text/markdown
9+
url = https://github.com/MantisAI/sieves
10+
license = MIT
11+
classifiers =
12+
Programming Language :: Python :: 3
13+
License :: OSI Approved :: MIT License
14+
Operating System :: OS Independent
15+
Topic :: Software Development :: Libraries
16+
Topic :: Scientific/Engineering
17+
18+
[options]
19+
packages = find:
20+
python_requires = >=3.9
21+
install_requires =
22+
23+
[options.packages.find]
24+
where = src/sieves
25+
26+
[coverage:run]
27+
source = sieves/
28+
omit = *__init__*
29+
30+
[coverage:report]
31+
show_missing = True
32+
precision = 2
33+
sort = Miss
34+
35+
[flake8]
36+
max-line-length = 120
37+
extend-ignore = E203
38+
exclude = .git,__pycache__,build,dist,./examples/*
39+
max-complexity = 10
40+
per-file-ignores =
41+
*/__init__.py: F401
42+
43+
[mypy]
44+
mypy_path=./src
45+
python_version = 3.8
46+
ignore_missing_imports = True
47+
disallow_any_unimported = True
48+
disallow_untyped_defs = True
49+
warn_redundant_casts = True
50+
warn_unused_ignores = True
51+
warn_unused_configs = True
52+
53+
[mypy-examples.*]
54+
follow_imports = skip

src/sieves/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)