whatsapp-python 3.3.9.post2__tar.gz → 4.0.0.post1__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.
- {whatsapp_python-3.3.9.post2 → whatsapp_python-4.0.0.post1}/.github/FUNDING.yml +3 -3
- {whatsapp_python-3.3.9.post2 → whatsapp_python-4.0.0.post1}/.github/ISSUE_TEMPLATE/bug_report.md +31 -31
- {whatsapp_python-3.3.9.post2 → whatsapp_python-4.0.0.post1}/.github/ISSUE_TEMPLATE/custom.md +10 -10
- {whatsapp_python-3.3.9.post2 → whatsapp_python-4.0.0.post1}/.github/ISSUE_TEMPLATE/feature_request.md +20 -20
- {whatsapp_python-3.3.9.post2 → whatsapp_python-4.0.0.post1}/.github/dependabot.yml +11 -11
- {whatsapp_python-3.3.9.post2 → whatsapp_python-4.0.0.post1}/.github/workflows/codeql.yml +73 -73
- {whatsapp_python-3.3.9.post2 → whatsapp_python-4.0.0.post1}/.github/workflows/dependency-review.yml +20 -20
- {whatsapp_python-3.3.9.post2 → whatsapp_python-4.0.0.post1}/.github/workflows/python-publish.yml +39 -39
- {whatsapp_python-3.3.9.post2 → whatsapp_python-4.0.0.post1}/.gitignore +132 -132
- {whatsapp_python-3.3.9.post2 → whatsapp_python-4.0.0.post1}/CODE_OF_CONDUCT.md +128 -128
- {whatsapp_python-3.3.9.post2 → whatsapp_python-4.0.0.post1}/CONTRIBUTING.md +19 -19
- whatsapp_python-4.0.0.post1/LICENSE +661 -0
- {whatsapp_python-3.3.9.post2 → whatsapp_python-4.0.0.post1}/PKG-INFO +14 -8
- {whatsapp_python-3.3.9.post2 → whatsapp_python-4.0.0.post1}/README.md +101 -96
- {whatsapp_python-3.3.9.post2 → whatsapp_python-4.0.0.post1}/SECURITY.md +14 -14
- {whatsapp_python-3.3.9.post2 → whatsapp_python-4.0.0.post1}/examples/reply_to_message_obj.py +14 -14
- {whatsapp_python-3.3.9.post2 → whatsapp_python-4.0.0.post1}/examples/sending_audio.py +16 -15
- {whatsapp_python-3.3.9.post2 → whatsapp_python-4.0.0.post1}/examples/sending_button.py +34 -33
- {whatsapp_python-3.3.9.post2 → whatsapp_python-4.0.0.post1}/examples/sending_document.py +17 -16
- {whatsapp_python-3.3.9.post2 → whatsapp_python-4.0.0.post1}/examples/sending_image.py +16 -15
- {whatsapp_python-3.3.9.post2 → whatsapp_python-4.0.0.post1}/examples/sending_location.py +19 -18
- {whatsapp_python-3.3.9.post2 → whatsapp_python-4.0.0.post1}/examples/sending_message.py +15 -14
- {whatsapp_python-3.3.9.post2 → whatsapp_python-4.0.0.post1}/examples/sending_template_message.py +13 -13
- {whatsapp_python-3.3.9.post2 → whatsapp_python-4.0.0.post1}/examples/sending_video.py +16 -15
- {whatsapp_python-3.3.9.post2 → whatsapp_python-4.0.0.post1}/examples/standalone_hook.py +144 -144
- {whatsapp_python-3.3.9.post2 → whatsapp_python-4.0.0.post1}/pyproject.toml +48 -48
- {whatsapp_python-3.3.9.post2 → whatsapp_python-4.0.0.post1}/whatsapp/__init__.py +399 -377
- {whatsapp_python-3.3.9.post2 → whatsapp_python-4.0.0.post1}/whatsapp/constants.py +4 -4
- {whatsapp_python-3.3.9.post2 → whatsapp_python-4.0.0.post1}/whatsapp/ext/_buttons.py +102 -82
- {whatsapp_python-3.3.9.post2 → whatsapp_python-4.0.0.post1}/whatsapp/ext/_media.py +145 -135
- {whatsapp_python-3.3.9.post2 → whatsapp_python-4.0.0.post1}/whatsapp/ext/_message.py +133 -123
- {whatsapp_python-3.3.9.post2 → whatsapp_python-4.0.0.post1}/whatsapp/ext/_property.py +5 -5
- {whatsapp_python-3.3.9.post2 → whatsapp_python-4.0.0.post1}/whatsapp/ext/_send_media.py +339 -340
- {whatsapp_python-3.3.9.post2 → whatsapp_python-4.0.0.post1}/whatsapp/ext/_send_others.py +107 -107
- {whatsapp_python-3.3.9.post2 → whatsapp_python-4.0.0.post1}/whatsapp/ext/_static.py +329 -329
- whatsapp_python-3.3.9.post2/LICENSE +0 -21
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# These are supported funding model platforms
|
|
2
|
-
|
|
3
|
-
github: filipporomani
|
|
1
|
+
# These are supported funding model platforms
|
|
2
|
+
|
|
3
|
+
github: filipporomani
|
{whatsapp_python-3.3.9.post2 → whatsapp_python-4.0.0.post1}/.github/ISSUE_TEMPLATE/bug_report.md
RENAMED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: Bug report
|
|
3
|
-
about: Create a report to help us improve
|
|
4
|
-
title: "[BUG]"
|
|
5
|
-
labels: ''
|
|
6
|
-
assignees: ''
|
|
7
|
-
|
|
8
|
-
---
|
|
9
|
-
|
|
10
|
-
**Describe the bug**
|
|
11
|
-
A clear and concise description of what the bug is.
|
|
12
|
-
|
|
13
|
-
**To Reproduce**
|
|
14
|
-
Steps to reproduce the behavior:
|
|
15
|
-
1. Go to '...'
|
|
16
|
-
2. Click on '....'
|
|
17
|
-
3. Scroll down to '....'
|
|
18
|
-
4. See error
|
|
19
|
-
|
|
20
|
-
**Expected behavior**
|
|
21
|
-
A clear and concise description of what you expected to happen.
|
|
22
|
-
|
|
23
|
-
**Screenshots**
|
|
24
|
-
If applicable, add screenshots to help explain your problem.
|
|
25
|
-
|
|
26
|
-
**Desktop (please complete the following information):**
|
|
27
|
-
- OS: [e.g. iOS]
|
|
28
|
-
- Version [e.g. 22]
|
|
29
|
-
|
|
30
|
-
**Additional context**
|
|
31
|
-
Add any other context about the problem here.
|
|
1
|
+
---
|
|
2
|
+
name: Bug report
|
|
3
|
+
about: Create a report to help us improve
|
|
4
|
+
title: "[BUG]"
|
|
5
|
+
labels: ''
|
|
6
|
+
assignees: ''
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
**Describe the bug**
|
|
11
|
+
A clear and concise description of what the bug is.
|
|
12
|
+
|
|
13
|
+
**To Reproduce**
|
|
14
|
+
Steps to reproduce the behavior:
|
|
15
|
+
1. Go to '...'
|
|
16
|
+
2. Click on '....'
|
|
17
|
+
3. Scroll down to '....'
|
|
18
|
+
4. See error
|
|
19
|
+
|
|
20
|
+
**Expected behavior**
|
|
21
|
+
A clear and concise description of what you expected to happen.
|
|
22
|
+
|
|
23
|
+
**Screenshots**
|
|
24
|
+
If applicable, add screenshots to help explain your problem.
|
|
25
|
+
|
|
26
|
+
**Desktop (please complete the following information):**
|
|
27
|
+
- OS: [e.g. iOS]
|
|
28
|
+
- Version [e.g. 22]
|
|
29
|
+
|
|
30
|
+
**Additional context**
|
|
31
|
+
Add any other context about the problem here.
|
{whatsapp_python-3.3.9.post2 → whatsapp_python-4.0.0.post1}/.github/ISSUE_TEMPLATE/custom.md
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: Custom issue template
|
|
3
|
-
about: Describe this issue template's purpose here.
|
|
4
|
-
title: "[OTHER]"
|
|
5
|
-
labels: ''
|
|
6
|
-
assignees: ''
|
|
7
|
-
|
|
8
|
-
---
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
---
|
|
2
|
+
name: Custom issue template
|
|
3
|
+
about: Describe this issue template's purpose here.
|
|
4
|
+
title: "[OTHER]"
|
|
5
|
+
labels: ''
|
|
6
|
+
assignees: ''
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: Feature request
|
|
3
|
-
about: Suggest an idea for this project
|
|
4
|
-
title: "[FEAT]"
|
|
5
|
-
labels: ''
|
|
6
|
-
assignees: ''
|
|
7
|
-
|
|
8
|
-
---
|
|
9
|
-
|
|
10
|
-
**Is your feature request related to a problem? Please describe.**
|
|
11
|
-
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
|
|
12
|
-
|
|
13
|
-
**Describe the solution you'd like**
|
|
14
|
-
A clear and concise description of what you want to happen.
|
|
15
|
-
|
|
16
|
-
**Describe alternatives you've considered**
|
|
17
|
-
A clear and concise description of any alternative solutions or features you've considered.
|
|
18
|
-
|
|
19
|
-
**Additional context**
|
|
20
|
-
Add any other context or screenshots about the feature request here.
|
|
1
|
+
---
|
|
2
|
+
name: Feature request
|
|
3
|
+
about: Suggest an idea for this project
|
|
4
|
+
title: "[FEAT]"
|
|
5
|
+
labels: ''
|
|
6
|
+
assignees: ''
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
**Is your feature request related to a problem? Please describe.**
|
|
11
|
+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
|
|
12
|
+
|
|
13
|
+
**Describe the solution you'd like**
|
|
14
|
+
A clear and concise description of what you want to happen.
|
|
15
|
+
|
|
16
|
+
**Describe alternatives you've considered**
|
|
17
|
+
A clear and concise description of any alternative solutions or features you've considered.
|
|
18
|
+
|
|
19
|
+
**Additional context**
|
|
20
|
+
Add any other context or screenshots about the feature request here.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
# To get started with Dependabot version updates, you'll need to specify which
|
|
2
|
-
# package ecosystems to update and where the package manifests are located.
|
|
3
|
-
# Please see the documentation for all configuration options:
|
|
4
|
-
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
|
|
5
|
-
|
|
6
|
-
version: 2
|
|
7
|
-
updates:
|
|
8
|
-
- package-ecosystem: "pip" # See documentation for possible values
|
|
9
|
-
directory: "/" # Location of package manifests
|
|
10
|
-
schedule:
|
|
11
|
-
interval: "daily"
|
|
1
|
+
# To get started with Dependabot version updates, you'll need to specify which
|
|
2
|
+
# package ecosystems to update and where the package manifests are located.
|
|
3
|
+
# Please see the documentation for all configuration options:
|
|
4
|
+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
|
|
5
|
+
|
|
6
|
+
version: 2
|
|
7
|
+
updates:
|
|
8
|
+
- package-ecosystem: "pip" # See documentation for possible values
|
|
9
|
+
directory: "/" # Location of package manifests
|
|
10
|
+
schedule:
|
|
11
|
+
interval: "daily"
|
|
@@ -1,73 +1,73 @@
|
|
|
1
|
-
# For most projects, this workflow file will not need changing; you simply need
|
|
2
|
-
# to commit it to your repository.
|
|
3
|
-
#
|
|
4
|
-
# You may wish to alter this file to override the set of languages analyzed,
|
|
5
|
-
# or to provide custom queries or build logic.
|
|
6
|
-
#
|
|
7
|
-
# ******** NOTE ********
|
|
8
|
-
# We have attempted to detect the languages in your repository. Please check
|
|
9
|
-
# the `language` matrix defined below to confirm you have the correct set of
|
|
10
|
-
# supported CodeQL languages.
|
|
11
|
-
#
|
|
12
|
-
name: "CodeQL"
|
|
13
|
-
|
|
14
|
-
on:
|
|
15
|
-
pull_request:
|
|
16
|
-
branches: [ "main" ]
|
|
17
|
-
schedule:
|
|
18
|
-
- cron: '0 0 * * *'
|
|
19
|
-
|
|
20
|
-
jobs:
|
|
21
|
-
analyze:
|
|
22
|
-
name: Analyze
|
|
23
|
-
runs-on: ubuntu-latest
|
|
24
|
-
permissions:
|
|
25
|
-
actions: read
|
|
26
|
-
contents: read
|
|
27
|
-
security-events: write
|
|
28
|
-
|
|
29
|
-
strategy:
|
|
30
|
-
fail-fast: false
|
|
31
|
-
matrix:
|
|
32
|
-
language: [ 'python' ]
|
|
33
|
-
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
|
|
34
|
-
# Use only 'java' to analyze code written in Java, Kotlin or both
|
|
35
|
-
# Use only 'javascript' to analyze code written in JavaScript, TypeScript or both
|
|
36
|
-
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
|
|
37
|
-
|
|
38
|
-
steps:
|
|
39
|
-
- name: Checkout repository
|
|
40
|
-
uses: actions/checkout@v3
|
|
41
|
-
|
|
42
|
-
# Initializes the CodeQL tools for scanning.
|
|
43
|
-
- name: Initialize CodeQL
|
|
44
|
-
uses: github/codeql-action/init@v2
|
|
45
|
-
with:
|
|
46
|
-
languages: ${{ matrix.language }}
|
|
47
|
-
# If you wish to specify custom queries, you can do so here or in a config file.
|
|
48
|
-
# By default, queries listed here will override any specified in a config file.
|
|
49
|
-
# Prefix the list here with "+" to use these queries and those in the config file.
|
|
50
|
-
|
|
51
|
-
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
|
|
52
|
-
# queries: security-extended,security-and-quality
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
|
|
56
|
-
# If this step fails, then you should remove it and run the build manually (see below)
|
|
57
|
-
- name: Autobuild
|
|
58
|
-
uses: github/codeql-action/autobuild@v2
|
|
59
|
-
|
|
60
|
-
# ℹ️ Command-line programs to run using the OS shell.
|
|
61
|
-
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
|
|
62
|
-
|
|
63
|
-
# If the Autobuild fails above, remove it and uncomment the following three lines.
|
|
64
|
-
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
|
|
65
|
-
|
|
66
|
-
# - run: |
|
|
67
|
-
# echo "Run, Build Application using script"
|
|
68
|
-
# ./location_of_script_within_repo/buildscript.sh
|
|
69
|
-
|
|
70
|
-
- name: Perform CodeQL Analysis
|
|
71
|
-
uses: github/codeql-action/analyze@v2
|
|
72
|
-
with:
|
|
73
|
-
category: "/language:${{matrix.language}}"
|
|
1
|
+
# For most projects, this workflow file will not need changing; you simply need
|
|
2
|
+
# to commit it to your repository.
|
|
3
|
+
#
|
|
4
|
+
# You may wish to alter this file to override the set of languages analyzed,
|
|
5
|
+
# or to provide custom queries or build logic.
|
|
6
|
+
#
|
|
7
|
+
# ******** NOTE ********
|
|
8
|
+
# We have attempted to detect the languages in your repository. Please check
|
|
9
|
+
# the `language` matrix defined below to confirm you have the correct set of
|
|
10
|
+
# supported CodeQL languages.
|
|
11
|
+
#
|
|
12
|
+
name: "CodeQL"
|
|
13
|
+
|
|
14
|
+
on:
|
|
15
|
+
pull_request:
|
|
16
|
+
branches: [ "main" ]
|
|
17
|
+
schedule:
|
|
18
|
+
- cron: '0 0 * * *'
|
|
19
|
+
|
|
20
|
+
jobs:
|
|
21
|
+
analyze:
|
|
22
|
+
name: Analyze
|
|
23
|
+
runs-on: ubuntu-latest
|
|
24
|
+
permissions:
|
|
25
|
+
actions: read
|
|
26
|
+
contents: read
|
|
27
|
+
security-events: write
|
|
28
|
+
|
|
29
|
+
strategy:
|
|
30
|
+
fail-fast: false
|
|
31
|
+
matrix:
|
|
32
|
+
language: [ 'python' ]
|
|
33
|
+
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
|
|
34
|
+
# Use only 'java' to analyze code written in Java, Kotlin or both
|
|
35
|
+
# Use only 'javascript' to analyze code written in JavaScript, TypeScript or both
|
|
36
|
+
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
|
|
37
|
+
|
|
38
|
+
steps:
|
|
39
|
+
- name: Checkout repository
|
|
40
|
+
uses: actions/checkout@v3
|
|
41
|
+
|
|
42
|
+
# Initializes the CodeQL tools for scanning.
|
|
43
|
+
- name: Initialize CodeQL
|
|
44
|
+
uses: github/codeql-action/init@v2
|
|
45
|
+
with:
|
|
46
|
+
languages: ${{ matrix.language }}
|
|
47
|
+
# If you wish to specify custom queries, you can do so here or in a config file.
|
|
48
|
+
# By default, queries listed here will override any specified in a config file.
|
|
49
|
+
# Prefix the list here with "+" to use these queries and those in the config file.
|
|
50
|
+
|
|
51
|
+
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
|
|
52
|
+
# queries: security-extended,security-and-quality
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
|
|
56
|
+
# If this step fails, then you should remove it and run the build manually (see below)
|
|
57
|
+
- name: Autobuild
|
|
58
|
+
uses: github/codeql-action/autobuild@v2
|
|
59
|
+
|
|
60
|
+
# ℹ️ Command-line programs to run using the OS shell.
|
|
61
|
+
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
|
|
62
|
+
|
|
63
|
+
# If the Autobuild fails above, remove it and uncomment the following three lines.
|
|
64
|
+
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
|
|
65
|
+
|
|
66
|
+
# - run: |
|
|
67
|
+
# echo "Run, Build Application using script"
|
|
68
|
+
# ./location_of_script_within_repo/buildscript.sh
|
|
69
|
+
|
|
70
|
+
- name: Perform CodeQL Analysis
|
|
71
|
+
uses: github/codeql-action/analyze@v2
|
|
72
|
+
with:
|
|
73
|
+
category: "/language:${{matrix.language}}"
|
{whatsapp_python-3.3.9.post2 → whatsapp_python-4.0.0.post1}/.github/workflows/dependency-review.yml
RENAMED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
# Dependency Review Action
|
|
2
|
-
#
|
|
3
|
-
# This Action will scan dependency manifest files that change as part of a Pull Request, surfacing known-vulnerable versions of the packages declared or updated in the PR. Once installed, if the workflow run is marked as required, PRs introducing known-vulnerable packages will be blocked from merging.
|
|
4
|
-
#
|
|
5
|
-
# Source repository: https://github.com/actions/dependency-review-action
|
|
6
|
-
# Public documentation: https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/about-dependency-review#dependency-review-enforcement
|
|
7
|
-
name: 'Dependency Review'
|
|
8
|
-
on: [pull_request]
|
|
9
|
-
|
|
10
|
-
permissions:
|
|
11
|
-
contents: read
|
|
12
|
-
|
|
13
|
-
jobs:
|
|
14
|
-
dependency-review:
|
|
15
|
-
runs-on: ubuntu-latest
|
|
16
|
-
steps:
|
|
17
|
-
- name: 'Checkout Repository'
|
|
18
|
-
uses: actions/checkout@v3
|
|
19
|
-
- name: 'Dependency Review'
|
|
20
|
-
uses: actions/dependency-review-action@v2
|
|
1
|
+
# Dependency Review Action
|
|
2
|
+
#
|
|
3
|
+
# This Action will scan dependency manifest files that change as part of a Pull Request, surfacing known-vulnerable versions of the packages declared or updated in the PR. Once installed, if the workflow run is marked as required, PRs introducing known-vulnerable packages will be blocked from merging.
|
|
4
|
+
#
|
|
5
|
+
# Source repository: https://github.com/actions/dependency-review-action
|
|
6
|
+
# Public documentation: https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/about-dependency-review#dependency-review-enforcement
|
|
7
|
+
name: 'Dependency Review'
|
|
8
|
+
on: [pull_request]
|
|
9
|
+
|
|
10
|
+
permissions:
|
|
11
|
+
contents: read
|
|
12
|
+
|
|
13
|
+
jobs:
|
|
14
|
+
dependency-review:
|
|
15
|
+
runs-on: ubuntu-latest
|
|
16
|
+
steps:
|
|
17
|
+
- name: 'Checkout Repository'
|
|
18
|
+
uses: actions/checkout@v3
|
|
19
|
+
- name: 'Dependency Review'
|
|
20
|
+
uses: actions/dependency-review-action@v2
|
{whatsapp_python-3.3.9.post2 → whatsapp_python-4.0.0.post1}/.github/workflows/python-publish.yml
RENAMED
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
# This workflow will upload a Python Package using Twine when a release is created
|
|
2
|
-
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries
|
|
3
|
-
|
|
4
|
-
# This workflow uses actions that are not certified by GitHub.
|
|
5
|
-
# They are provided by a third-party and are governed by
|
|
6
|
-
# separate terms of service, privacy policy, and support
|
|
7
|
-
# documentation.
|
|
8
|
-
|
|
9
|
-
name: Upload Python Package
|
|
10
|
-
|
|
11
|
-
on:
|
|
12
|
-
release:
|
|
13
|
-
types: [published]
|
|
14
|
-
|
|
15
|
-
permissions:
|
|
16
|
-
contents: read
|
|
17
|
-
|
|
18
|
-
jobs:
|
|
19
|
-
deployment:
|
|
20
|
-
|
|
21
|
-
runs-on: ubuntu-latest
|
|
22
|
-
environment: publish
|
|
23
|
-
steps:
|
|
24
|
-
- uses: actions/checkout@v4
|
|
25
|
-
- name: Set up Python
|
|
26
|
-
uses: actions/setup-python@v3
|
|
27
|
-
with:
|
|
28
|
-
python-version: '3.12'
|
|
29
|
-
- name: Install packages
|
|
30
|
-
run: |
|
|
31
|
-
python -m pip install --upgrade pip
|
|
32
|
-
pip install build
|
|
33
|
-
- name: Building...
|
|
34
|
-
run: python -m build
|
|
35
|
-
- name: Publish package
|
|
36
|
-
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
|
|
37
|
-
with:
|
|
38
|
-
user: __token__
|
|
39
|
-
password: ${{ secrets.PYPI_API_TOKEN }}
|
|
1
|
+
# This workflow will upload a Python Package using Twine when a release is created
|
|
2
|
+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries
|
|
3
|
+
|
|
4
|
+
# This workflow uses actions that are not certified by GitHub.
|
|
5
|
+
# They are provided by a third-party and are governed by
|
|
6
|
+
# separate terms of service, privacy policy, and support
|
|
7
|
+
# documentation.
|
|
8
|
+
|
|
9
|
+
name: Upload Python Package
|
|
10
|
+
|
|
11
|
+
on:
|
|
12
|
+
release:
|
|
13
|
+
types: [published]
|
|
14
|
+
|
|
15
|
+
permissions:
|
|
16
|
+
contents: read
|
|
17
|
+
|
|
18
|
+
jobs:
|
|
19
|
+
deployment:
|
|
20
|
+
|
|
21
|
+
runs-on: ubuntu-latest
|
|
22
|
+
environment: publish
|
|
23
|
+
steps:
|
|
24
|
+
- uses: actions/checkout@v4
|
|
25
|
+
- name: Set up Python
|
|
26
|
+
uses: actions/setup-python@v3
|
|
27
|
+
with:
|
|
28
|
+
python-version: '3.12'
|
|
29
|
+
- name: Install packages
|
|
30
|
+
run: |
|
|
31
|
+
python -m pip install --upgrade pip
|
|
32
|
+
pip install build
|
|
33
|
+
- name: Building...
|
|
34
|
+
run: python -m build
|
|
35
|
+
- name: Publish package
|
|
36
|
+
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
|
|
37
|
+
with:
|
|
38
|
+
user: __token__
|
|
39
|
+
password: ${{ secrets.PYPI_API_TOKEN }}
|