instapost 0.1.0__tar.gz → 0.1.1__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.
Files changed (28) hide show
  1. instapost-0.1.1/.github/workflows/publish-to-pypi.yml +51 -0
  2. instapost-0.1.1/.github/workflows/python-package.yml +44 -0
  3. {instapost-0.1.0 → instapost-0.1.1}/.gitignore +1 -0
  4. {instapost-0.1.0 → instapost-0.1.1}/LICENSE +1 -1
  5. {instapost-0.1.0 → instapost-0.1.1}/PKG-INFO +1 -1
  6. {instapost-0.1.0 → instapost-0.1.1}/pyproject.toml +1 -1
  7. {instapost-0.1.0 → instapost-0.1.1}/MANIFEST.in +0 -0
  8. {instapost-0.1.0 → instapost-0.1.1}/README.md +0 -0
  9. {instapost-0.1.0 → instapost-0.1.1}/instapost/__init__.py +0 -0
  10. {instapost-0.1.0 → instapost-0.1.1}/instapost/api/__init__.py +0 -0
  11. {instapost-0.1.0 → instapost-0.1.1}/instapost/api/base.py +0 -0
  12. {instapost-0.1.0 → instapost-0.1.1}/instapost/client.py +0 -0
  13. {instapost-0.1.0 → instapost-0.1.1}/instapost/exceptions.py +0 -0
  14. {instapost-0.1.0 → instapost-0.1.1}/instapost/media/__init__.py +0 -0
  15. {instapost-0.1.0 → instapost-0.1.1}/instapost/media/uploader.py +0 -0
  16. {instapost-0.1.0 → instapost-0.1.1}/instapost/posting/__init__.py +0 -0
  17. {instapost-0.1.0 → instapost-0.1.1}/instapost/posting/carousel.py +0 -0
  18. {instapost-0.1.0 → instapost-0.1.1}/instapost/posting/image.py +0 -0
  19. {instapost-0.1.0 → instapost-0.1.1}/instapost/posting/reel.py +0 -0
  20. {instapost-0.1.0 → instapost-0.1.1}/logo.png +0 -0
  21. {instapost-0.1.0 → instapost-0.1.1}/requirements.txt +0 -0
  22. {instapost-0.1.0 → instapost-0.1.1}/tests/__init__.py +0 -0
  23. {instapost-0.1.0 → instapost-0.1.1}/tests/conftest.py +0 -0
  24. {instapost-0.1.0 → instapost-0.1.1}/tests/test_api.py +0 -0
  25. {instapost-0.1.0 → instapost-0.1.1}/tests/test_client.py +0 -0
  26. {instapost-0.1.0 → instapost-0.1.1}/tests/test_exceptions.py +0 -0
  27. {instapost-0.1.0 → instapost-0.1.1}/tests/test_media_uploader.py +0 -0
  28. {instapost-0.1.0 → instapost-0.1.1}/tests/test_posting.py +0 -0
@@ -0,0 +1,51 @@
1
+ name: Upload Python Package
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.12"
20
+
21
+ - name: Build release distributions
22
+ run: |
23
+ python -m pip install build
24
+ python -m build
25
+
26
+ - name: Upload distributions
27
+ uses: actions/upload-artifact@v4
28
+ with:
29
+ name: release-dists
30
+ path: dist/
31
+
32
+ pypi-publish:
33
+ runs-on: ubuntu-latest
34
+ needs:
35
+ - release-build
36
+ permissions:
37
+ id-token: write
38
+
39
+ environment:
40
+ name: pypi
41
+ url: https://pypi.org/project/instapost/${{ github.event.release.name }}
42
+
43
+ steps:
44
+ - name: Retrieve release distributions
45
+ uses: actions/download-artifact@v4
46
+ with:
47
+ name: release-dists
48
+ path: dist/
49
+
50
+ - name: Publish release distributions to PyPI
51
+ uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,44 @@
1
+ name: Python package
2
+
3
+ on:
4
+ push:
5
+ branches: [ "main" ]
6
+ pull_request:
7
+ branches: [ "main" ]
8
+
9
+ jobs:
10
+ build:
11
+ runs-on: ubuntu-latest
12
+ strategy:
13
+ fail-fast: false
14
+ matrix:
15
+ python-version: ["3.10", "3.11", "3.12"]
16
+
17
+ steps:
18
+ - uses: actions/checkout@v4
19
+
20
+ - name: Set up Python ${{ matrix.python-version }}
21
+ uses: actions/setup-python@v5
22
+ with:
23
+ python-version: ${{ matrix.python-version }}
24
+
25
+ - name: Install system dependencies
26
+ run: |
27
+ sudo apt-get update
28
+ sudo apt-get install -y ffmpeg
29
+
30
+ - name: Install dependencies
31
+ run: |
32
+ python -m pip install --upgrade pip
33
+ python -m pip install flake8 pytest pytest-asyncio pytest-cov
34
+ if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
35
+ pip install -e .
36
+
37
+ - name: Lint with flake8
38
+ run: |
39
+ flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
40
+ flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
41
+
42
+ - name: Test with pytest
43
+ run: |
44
+ pytest tests/
@@ -136,3 +136,4 @@ dmypy.json
136
136
  *.pem
137
137
  *.key
138
138
  .flake8
139
+
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
18
  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
19
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
20
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
21
+ SOFTWARE.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: instapost
3
- Version: 0.1.0
3
+ Version: 0.1.1
4
4
  Summary: A Python library for automating Instagram posting (images, reels, carousels)
5
5
  Project-URL: Homepage, https://blaya.ia.br
6
6
  Project-URL: Repository, https://github.com/pedroluz/instapost
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "instapost"
7
- version = "0.1.0"
7
+ version = "0.1.1"
8
8
  description = "A Python library for automating Instagram posting (images, reels, carousels)"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes