tasks-prompts-chain 0.0.1__tar.gz → 0.0.2__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,59 @@
1
+ name: Upload Python Package to PyPI when a Release is Created
2
+
3
+ on:
4
+ release:
5
+ types: [published]
6
+
7
+ permissions:
8
+ contents: read
9
+
10
+ jobs:
11
+ release-build:
12
+ runs-on: ubuntu-latest
13
+
14
+ steps:
15
+ - uses: actions/checkout@v4
16
+
17
+ - uses: actions/setup-python@v5
18
+ with:
19
+ python-version: "3.x"
20
+
21
+ - name: Build release distributions
22
+ run: |
23
+ # NOTE: put your own distribution build steps here.
24
+ python -m pip install build
25
+ python -m build
26
+
27
+ - name: Upload distributions
28
+ uses: actions/upload-artifact@v4
29
+ with:
30
+ name: release-dists
31
+ path: dist/
32
+
33
+ pypi-publish:
34
+ runs-on: ubuntu-latest
35
+ needs:
36
+ - release-build
37
+ permissions:
38
+ # IMPORTANT: this permission is mandatory for trusted publishing
39
+ id-token: write
40
+
41
+ # Dedicated environments with protections for publishing are strongly recommended.
42
+ # For more information, see: https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment#deployment-protection-rules
43
+ environment:
44
+ name: pypi
45
+ # ALTERNATIVE: if your GitHub Release name is the PyPI project version string
46
+ # ALTERNATIVE: exactly, uncomment the following line instead:
47
+ url: https://pypi.org/project/tasks-prompts-chain/${{ github.event.release.name }}
48
+
49
+ steps:
50
+ - name: Retrieve release distributions
51
+ uses: actions/download-artifact@v4
52
+ with:
53
+ name: release-dists
54
+ path: dist/
55
+
56
+ - name: Publish release distributions to PyPI
57
+ uses: pypa/gh-action-pypi-publish@release/v1
58
+ with:
59
+ packages-dir: dist/
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tasks_prompts_chain
3
- Version: 0.0.1
3
+ Version: 0.0.2
4
4
  Summary: A Python library for creating and executing chains of prompts using OpenAI's SDK with streaming support and template formatting.
5
5
  Project-URL: Homepage, https://github.com/smirfolio/tasks_prompts_chain
6
6
  Project-URL: Issues, https://github.com/smirfolio/tasks_prompts_chain/issues
@@ -12,7 +12,7 @@ Classifier: Programming Language :: Python :: 3
12
12
  Requires-Python: >=3.8
13
13
  Description-Content-Type: text/markdown
14
14
 
15
- # PromptChain
15
+ # TasksPromptsChain
16
16
 
17
17
  A Mini Python library for creating and executing chains of prompts using OpenAI's API with streaming support and output template formatting.
18
18
 
@@ -26,14 +26,22 @@ A Mini Python library for creating and executing chains of prompts using OpenAI'
26
26
  - Multiple output formats (JSON, Markdown, CSV, Text)
27
27
  - Async/await support
28
28
 
29
- ## Installation
29
+ ## Dependancies
30
30
 
31
- ### For Users
31
+ Please install typing-extensions and openai python packages
32
+ ```bash
33
+ pip install typing-extensions
34
+ pip install openai
35
+ ```
36
+
37
+ ## Installation from source code
38
+
39
+ ### For Users required from source gitHub repo
32
40
  ```bash
33
41
  pip install -r requirements/requirements.txt
34
42
  ```
35
43
 
36
- ### For Developers
44
+ ### For Developers required from source gitHub repo
37
45
  ```bash
38
46
  pip install -r requirements/requirements.txt
39
47
  pip install -r requirements/requirements-dev.txt
@@ -1,4 +1,4 @@
1
- # PromptChain
1
+ # TasksPromptsChain
2
2
 
3
3
  A Mini Python library for creating and executing chains of prompts using OpenAI's API with streaming support and output template formatting.
4
4
 
@@ -12,14 +12,22 @@ A Mini Python library for creating and executing chains of prompts using OpenAI'
12
12
  - Multiple output formats (JSON, Markdown, CSV, Text)
13
13
  - Async/await support
14
14
 
15
- ## Installation
15
+ ## Dependancies
16
16
 
17
- ### For Users
17
+ Please install typing-extensions and openai python packages
18
+ ```bash
19
+ pip install typing-extensions
20
+ pip install openai
21
+ ```
22
+
23
+ ## Installation from source code
24
+
25
+ ### For Users required from source gitHub repo
18
26
  ```bash
19
27
  pip install -r requirements/requirements.txt
20
28
  ```
21
29
 
22
- ### For Developers
30
+ ### For Developers required from source gitHub repo
23
31
  ```bash
24
32
  pip install -r requirements/requirements.txt
25
33
  pip install -r requirements/requirements-dev.txt
@@ -3,7 +3,7 @@ requires = ["hatchling"]
3
3
  build-backend = "hatchling.build"
4
4
  [project]
5
5
  name = "tasks_prompts_chain"
6
- version = "0.0.1"
6
+ version = "0.0.2"
7
7
  authors = [
8
8
  { name="Samir Ben Sghaier", email="ben.sghaier.samir@gmail.com" },
9
9
  ]
@@ -1,30 +0,0 @@
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
- environment:
12
- name: pypi
13
- url: https://pypi.org/p/tasks_prompts_chain
14
- permissions:
15
- id-token: write
16
- steps:
17
- - uses: actions/checkout@v4
18
- - name: Set up Python
19
- uses: actions/setup-python@v4
20
- with:
21
- python-version: "3.x"
22
- - name: Install dependencies
23
- run: |
24
- python -m pip install --upgrade pip
25
- pip install setuptools wheel
26
- - name: Build package
27
- run: |
28
- python setup.py sdist bdist_wheel # Could also be python -m build
29
- - name: Publish package distributions to PyPI
30
- uses: pypa/gh-action-pypi-publish@release/v1
@@ -1,3 +0,0 @@
1
- [testpypi]
2
- username = __token__
3
- password = pypi-AgENdGVzdC5weXBpLm9yZwIkMTRlNzI2MjAtZjMwMC00N2ZjLWFiNDctMjQ3NjkyZjQ3OGFlAAIqWzMsImMwOTUwNGNhLWI5ZTMtNDIwZi1hNmIzLTYyYTljYjg4NWFiYiJdAAAGIOerWzMwuZRCoYHHxkbQuQRllBJ23LBCw1Fi0gUmacoS