pyfunctionhood 0.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pyfunctionhood-0.0.0/.github/workflows/python-publish.yml +47 -0
- pyfunctionhood-0.0.0/.gitignore +8 -0
- pyfunctionhood-0.0.0/LICENSE +661 -0
- pyfunctionhood-0.0.0/PKG-INFO +182 -0
- pyfunctionhood-0.0.0/README.md +156 -0
- pyfunctionhood-0.0.0/img/pyfunctionhood.png +0 -0
- pyfunctionhood-0.0.0/pyproject.toml +38 -0
- pyfunctionhood-0.0.0/requirements.txt +2 -0
- pyfunctionhood-0.0.0/setup.cfg +4 -0
- pyfunctionhood-0.0.0/src/pyfunctionhood/__init__.py +9 -0
- pyfunctionhood-0.0.0/src/pyfunctionhood/clause.py +113 -0
- pyfunctionhood-0.0.0/src/pyfunctionhood/function.py +101 -0
- pyfunctionhood-0.0.0/src/pyfunctionhood/hassediagram.py +180 -0
- pyfunctionhood-0.0.0/src/pyfunctionhood/main.py +227 -0
- pyfunctionhood-0.0.0/src/pyfunctionhood/powerset.py +82 -0
- pyfunctionhood-0.0.0/src/pyfunctionhood.egg-info/PKG-INFO +182 -0
- pyfunctionhood-0.0.0/src/pyfunctionhood.egg-info/SOURCES.txt +22 -0
- pyfunctionhood-0.0.0/src/pyfunctionhood.egg-info/dependency_links.txt +1 -0
- pyfunctionhood-0.0.0/src/pyfunctionhood.egg-info/entry_points.txt +2 -0
- pyfunctionhood-0.0.0/src/pyfunctionhood.egg-info/requires.txt +1 -0
- pyfunctionhood-0.0.0/src/pyfunctionhood.egg-info/top_level.txt +1 -0
- pyfunctionhood-0.0.0/tests/test_check_rules.py +110 -0
- pyfunctionhood-0.0.0/tests/test_check_sign_changes.py +130 -0
- pyfunctionhood-0.0.0/tests/test_rule_categorization.py +117 -0
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
name: Publish Python Package
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags:
|
|
6
|
+
- 'v*' # Trigger workflow on tags that start with "v" (e.g., v1.0.0)
|
|
7
|
+
workflow_dispatch: # Allow manual runs from the Actions tab
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
build-and-publish:
|
|
11
|
+
name: Build and publish to PyPI
|
|
12
|
+
runs-on: ubuntu-latest
|
|
13
|
+
|
|
14
|
+
# Required for trusted publishing to PyPI
|
|
15
|
+
permissions:
|
|
16
|
+
id-token: write
|
|
17
|
+
contents: write # Elevated from 'read' to allow Release creation
|
|
18
|
+
|
|
19
|
+
steps:
|
|
20
|
+
- name: Checkout Code
|
|
21
|
+
uses: actions/checkout@v6
|
|
22
|
+
with:
|
|
23
|
+
fetch-depth: 0
|
|
24
|
+
|
|
25
|
+
- name: Set up Python
|
|
26
|
+
uses: actions/setup-python@v6
|
|
27
|
+
with:
|
|
28
|
+
python-version: "3.x"
|
|
29
|
+
|
|
30
|
+
- name: Install build dependencies
|
|
31
|
+
run: python -m pip install --upgrade pip build
|
|
32
|
+
|
|
33
|
+
- name: Build sdist and wheel
|
|
34
|
+
run: python -m build
|
|
35
|
+
|
|
36
|
+
- name: Publish to PyPI
|
|
37
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
38
|
+
|
|
39
|
+
- name: Create GitHub Release
|
|
40
|
+
if: startsWith(github.ref, 'refs/tags/')
|
|
41
|
+
uses: softprops/action-gh-release@v2
|
|
42
|
+
with:
|
|
43
|
+
# This will include the .tar.gz and .whl files in the GitHub Release assets
|
|
44
|
+
files: dist/*
|
|
45
|
+
generate_release_notes: true
|
|
46
|
+
env:
|
|
47
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|