You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/python-publish.yml
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -1,27 +1,27 @@
1
-
# This workflow will upload a Python Package using Twine when a release is created
2
-
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
3
-
4
1
name: Upload Python Package
5
2
6
3
on:
7
4
release:
8
5
types: [created]
9
6
10
7
jobs:
11
-
deploy:
12
8
9
+
deploy:
13
10
runs-on: ubuntu-latest
14
-
15
11
steps:
16
-
- uses: actions/checkout@v2
12
+
- name: Check out code
13
+
uses: actions/checkout@v3
17
14
- name: Set up Python
18
-
uses: actions/setup-python@v2
15
+
uses: actions/setup-python@v4
19
16
with:
20
17
python-version: '3.x'
21
18
- name: Install dependencies
22
19
run: |
23
20
python -m pip install --upgrade pip
24
21
pip install setuptools wheel twine
22
+
- name: Update version number
23
+
run: |
24
+
sed -i 's/<PACKAGE_VERSION>/${{ github.ref_name }}/' setup.py
Copy file name to clipboardExpand all lines: README.md
+17-8Lines changed: 17 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,18 +1,18 @@
1
1
# Amazon Product Advertising API 5.0 wrapper for Python
2
2
3
-
A simple Python wrapper for the [last version of the Amazon Product Advertising API](https://webservices.amazon.com/paapi5/documentation/quick-start/using-sdk.html). This module allows interacting with Amazon using the official API in an easier way.
3
+
A simple Python wrapper for the [last version of the Amazon Product Advertising
> If you are still using the old version, go [here](https://github.com/sergioteula/python-amazon-paapi/blob/master/amazon/README.md) for documentation or check our
Throttling value represents the wait time in seconds between API calls, being the default value 1 second. Use it to avoid reaching Amazon request limits.
95
+
Throttling value represents the wait time in seconds between API calls, being the
96
+
default value 1 second. Use it to avoid reaching Amazon request limits.
96
97
97
98
```python
98
99
amazon = AmazonApi(KEY, SECRET, TAG, COUNTRY, throttling=4) # Makes 1 request every 4 seconds
@@ -101,12 +102,20 @@ amazon = AmazonApi(KEY, SECRET, TAG, COUNTRY, throttling=0) # No wait time betw
101
102
102
103
## Contribution
103
104
104
-
Activate githooks with:
105
+
Creating pull requests for this repo is higly appreciated to add new features or solve
106
+
bugs. To help during development process, githooks can be activated to run some scripts
107
+
before pushing new commits. This will run checks for code format and tests, to ensure
108
+
everything follows this repo guidelines. Use next command to activate them:
105
109
106
110
```
107
111
git config core.hooksPath .githooks
108
112
```
109
113
114
+
The same checks will also run on the repo with GitHub Actions to ensure all tests pass
0 commit comments