pyrompt 0.0.4__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.
@@ -0,0 +1,132 @@
1
+ name: Continuous Integration (Modern)
2
+ on: [push, pull_request]
3
+
4
+ env:
5
+ PROJECT_NAME: pyrompt
6
+
7
+ jobs:
8
+ validation:
9
+ name: Validation
10
+ if: "!contains(github.event.head_commit.message, '[skip ci]')"
11
+ runs-on: ubuntu-latest
12
+ strategy:
13
+ matrix:
14
+ python-version: ["3.10", "3.12"]
15
+
16
+ steps:
17
+ - uses: actions/checkout@v4
18
+
19
+ - name: Set up Python ${{ matrix.python-version }}
20
+ uses: actions/setup-python@v5
21
+ with:
22
+ python-version: ${{ matrix.python-version }}
23
+
24
+ - name: Install Dependencies
25
+ uses: i2mint/isee/actions/install-deps@master
26
+ with:
27
+ dependency-files: pyproject.toml
28
+ extras: dev,test
29
+ # Fallback for projects still using setup.cfg:
30
+ # dependency-files: setup.cfg
31
+ # ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} # Uncomment for private dependencies
32
+
33
+ - name: Format Source Code
34
+ uses: i2mint/isee/actions/ruff-format@master
35
+ with:
36
+ line-length: 88
37
+ target-path: .
38
+
39
+ - name: Lint Validation
40
+ uses: i2mint/isee/actions/ruff-lint@master
41
+ with:
42
+ root-dir: ${{ env.PROJECT_NAME }}
43
+ select: E,F,I,N,W # Error, pyflakes, import, naming, warnings
44
+ exclude: tests,examples,scrap
45
+ output-format: github
46
+
47
+ - name: Run Tests
48
+ uses: i2mint/isee/actions/run-tests@master
49
+ with:
50
+ root-dir: ${{ env.PROJECT_NAME }}
51
+ exclude: examples,scrap
52
+ coverage: true
53
+ pytest-args: -v --tb=short
54
+
55
+ publish:
56
+ name: Publish
57
+ if: "!contains(github.event.head_commit.message, '[skip ci]') && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main')"
58
+ needs: validation
59
+ runs-on: ubuntu-latest
60
+ strategy:
61
+ matrix:
62
+ python-version: ["3.12"]
63
+
64
+ steps:
65
+ - uses: actions/checkout@v4
66
+ with:
67
+ fetch-depth: 0
68
+ token: ${{ secrets.GITHUB_TOKEN }}
69
+
70
+ - name: Set up Python ${{ matrix.python-version }}
71
+ uses: actions/setup-python@v5
72
+ with:
73
+ python-version: ${{ matrix.python-version }}
74
+
75
+ - name: Format Source Code
76
+ uses: i2mint/isee/actions/ruff-format@master
77
+
78
+ - name: Update Version Number
79
+ id: version
80
+ uses: i2mint/isee/actions/version-bump@master
81
+ # Specify config file if needed:
82
+ # with:
83
+ # config-file: pyproject.toml
84
+
85
+ - name: Build Distribution
86
+ uses: i2mint/isee/actions/build-dist@master
87
+ with:
88
+ sdist: true
89
+ wheel: true
90
+ # Uncomment for private dependencies:
91
+ # with:
92
+ # ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
93
+
94
+ - name: Publish to PyPI
95
+ uses: i2mint/isee/actions/pypi-upload@master
96
+ with:
97
+ pypi-username: ${{ secrets.PYPI_USERNAME }}
98
+ pypi-password: ${{ secrets.PYPI_PASSWORD }}
99
+ skip-existing: false
100
+
101
+ - name: Commit Changes
102
+ uses: i2mint/isee/actions/git-commit@master
103
+ with:
104
+ commit-message: "**CI** Formatted code + Updated version to ${{ steps.version.outputs.version }} [skip ci]"
105
+ ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
106
+ push: true
107
+
108
+ - name: Tag Repository
109
+ uses: i2mint/isee/actions/git-tag@master
110
+ with:
111
+ tag: ${{ steps.version.outputs.version }}
112
+ message: "Release version ${{ steps.version.outputs.version }}"
113
+ push: true
114
+
115
+ github-pages:
116
+ name: Publish GitHub Pages
117
+
118
+ permissions:
119
+ contents: write
120
+ pages: write
121
+ id-token: write
122
+
123
+ if: "!contains(github.event.head_commit.message, '[skip ci]') && github.ref == format('refs/heads/{0}', github.event.repository.default_branch)"
124
+ needs: publish
125
+ runs-on: ubuntu-latest
126
+
127
+ steps:
128
+ - uses: i2mint/epythet/actions/publish-github-pages@master
129
+ with:
130
+ github-token: ${{ secrets.GITHUB_TOKEN }}
131
+ ignore: "tests/,scrap/,examples/"
132
+
@@ -0,0 +1,121 @@
1
+ wads_configs.json
2
+ data/wads_configs.json
3
+ wads/data/wads_configs.json
4
+
5
+ # Byte-compiled / optimized / DLL files
6
+ __pycache__/
7
+ *.py[cod]
8
+ *$py.class
9
+
10
+
11
+ .DS_Store
12
+ # C extensions
13
+ *.so
14
+
15
+ # TLS certificates
16
+ ## Ignore all PEM files anywhere
17
+ *.pem
18
+ ## Also ignore any certs directory
19
+ certs/
20
+
21
+ # Distribution / packaging
22
+ .Python
23
+ build/
24
+ develop-eggs/
25
+ dist/
26
+ downloads/
27
+ eggs/
28
+ .eggs/
29
+ lib/
30
+ lib64/
31
+ parts/
32
+ sdist/
33
+ var/
34
+ wheels/
35
+ *.egg-info/
36
+ .installed.cfg
37
+ *.egg
38
+ MANIFEST
39
+ _build
40
+
41
+ # PyInstaller
42
+ # Usually these files are written by a python script from a template
43
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
44
+ *.manifest
45
+ *.spec
46
+
47
+ # Installer logs
48
+ pip-log.txt
49
+ pip-delete-this-directory.txt
50
+
51
+ # Unit test / coverage reports
52
+ htmlcov/
53
+ .tox/
54
+ .coverage
55
+ .coverage.*
56
+ .cache
57
+ nosetests.xml
58
+ coverage.xml
59
+ *.cover
60
+ .hypothesis/
61
+ .pytest_cache/
62
+
63
+ # Translations
64
+ *.mo
65
+ *.pot
66
+
67
+ # Django stuff:
68
+ *.log
69
+ local_settings.py
70
+ db.sqlite3
71
+
72
+ # Flask stuff:
73
+ instance/
74
+ .webassets-cache
75
+
76
+ # Scrapy stuff:
77
+ .scrapy
78
+
79
+ # Sphinx documentation
80
+ docs/_build/
81
+ docs/*
82
+
83
+ # PyBuilder
84
+ target/
85
+
86
+ # Jupyter Notebook
87
+ .ipynb_checkpoints
88
+
89
+ # pyenv
90
+ .python-version
91
+
92
+ # celery beat schedule file
93
+ celerybeat-schedule
94
+
95
+ # SageMath parsed files
96
+ *.sage.py
97
+
98
+ # Environments
99
+ .env
100
+ .venv
101
+ env/
102
+ venv/
103
+ ENV/
104
+ env.bak/
105
+ venv.bak/
106
+
107
+ # Spyder project settings
108
+ .spyderproject
109
+ .spyproject
110
+
111
+ # Rope project settings
112
+ .ropeproject
113
+
114
+ # mkdocs documentation
115
+ /site
116
+
117
+ # mypy
118
+ .mypy_cache/
119
+
120
+ # PyCharm
121
+ .idea
pyrompt-0.0.4/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) [year] [fullname]
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
pyrompt-0.0.4/PKG-INFO ADDED
@@ -0,0 +1,12 @@
1
+ Metadata-Version: 2.4
2
+ Name: pyrompt
3
+ Version: 0.0.4
4
+ Summary: Managing & Operationalizing AI Prompts
5
+ Project-URL: Homepage, https://github.com/thorwhalen/pyrompt
6
+ License: mit
7
+ License-File: LICENSE
8
+ Requires-Python: >=3.8
9
+ Description-Content-Type: text/markdown
10
+
11
+ # pyrompt
12
+ Managing & Operationalizing AI Prompts
@@ -0,0 +1,2 @@
1
+ # pyrompt
2
+ Managing & Operationalizing AI Prompts
@@ -0,0 +1,42 @@
1
+ [build-system]
2
+ requires = [
3
+ "hatchling",
4
+ ]
5
+ build-backend = "hatchling.build"
6
+
7
+ [project]
8
+ name = "pyrompt"
9
+ version = "0.0.4"
10
+ description = "Managing & Operationalizing AI Prompts"
11
+ readme = "README.md"
12
+ requires-python = ">=3.8"
13
+ keywords = []
14
+ authors = []
15
+ dependencies = []
16
+
17
+ [project.license]
18
+ text = "mit"
19
+
20
+ [project.urls]
21
+ Homepage = "https://github.com/thorwhalen/pyrompt"
22
+
23
+ [tool.ruff]
24
+ line-length = 88
25
+ target-version = "py38"
26
+
27
+ [tool.ruff.lint]
28
+ select = [
29
+ "E",
30
+ "F",
31
+ "I",
32
+ ]
33
+
34
+ [tool.pytest.ini_options]
35
+ minversion = "6.0"
36
+ testpaths = [
37
+ "tests",
38
+ ]
39
+ doctest_optionflags = [
40
+ "NORMALIZE_WHITESPACE",
41
+ "ELLIPSIS",
42
+ ]
File without changes
pyrompt-0.0.4/setup.py ADDED
@@ -0,0 +1,3 @@
1
+ from setuptools import setup
2
+
3
+ setup() # Note: Everything should be in the local setup.cfg