Skip to content

Commit

Permalink
Release v3.1.0: Bump python to 3.12 and update dependency versions (#111
Browse files Browse the repository at this point in the history
)

## v3.1.0 - 2024-10-23
### What's Changed
**Full Changelog**: v3.0.0...v3.1.0 by @obervinov in #111
#### 🚀 Features
* bump workflows to `2.0.2`
* bump dependencies versions
#### 💥 Breaking Changes
* bump python version to `3.12`
#### 🐛 Bug Fixes
* other general bug fixes and improvements
* fix not enough condition for `igtv` type of content for `Downloader` class
* fix infinite loop in the `Downloader` class when type of content not supported in condition
* #104
* #105
  • Loading branch information
obervinov authored Oct 23, 2024
1 parent c5700b1 commit 68f4856
Show file tree
Hide file tree
Showing 19 changed files with 670 additions and 668 deletions.
45 changes: 18 additions & 27 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
@@ -1,30 +1,21 @@
---
name: PR

on:
push:
branches:
- '*'
- '*/*'
- '**'
- '!main'

jobs:
changelog:
uses: obervinov/_templates/.github/workflows/changelog.yaml@v1.2.9

pylint:
uses: obervinov/_templates/.github/workflows/pylint.yaml@v1.2.9

pytest:
uses: obervinov/_templates/.github/workflows/pytest-with-vault.yaml@v1.2.9

pyproject:
uses: obervinov/_templates/.github/workflows/pyproject.yaml@v1.2.9
name: PR

on:
push:
branches:
- '*'
- '*/*'
- '**'
- '!main'

pr:
uses: obervinov/_templates/.github/workflows/pr.yaml@v1.2.9
jobs:
pr:
uses: obervinov/_templates/.github/workflows/pr.yaml@v2.0.2

pyproject:
uses: obervinov/_templates/.github/workflows/pyproject.yaml@v2.0.2

build-pr-image:
uses: obervinov/_templates/.github/workflows/docker.yaml@v1.2.9
needs: [changelog, pylint, pytest, pyproject]
build-pr-image:
uses: obervinov/_templates/.github/workflows/docker.yaml@v2.0.2
needs: [pr, pyproject]
47 changes: 18 additions & 29 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,30 +1,19 @@
---
name: Release

on:
pull_request:
branches:
- main
types:
- closed

jobs:
create-release:
uses: obervinov/_templates/.github/workflows/release.yaml@v1.2.9

cleanup-untagged-images:
runs-on: ubuntu-latest
steps:
- name: Delete untagged images from GitHub Container Registry
continue-on-error: true
uses: Chizkiyahu/delete-untagged-ghcr-action@v4
with:
token: ${{ secrets.PAT_GHCR_CLEANUP }}
package_name: 'pyinstabot-downloader'
untagged_only: true
except_untagged_multiplatform: false
owner_type: 'user'

# milestone:
# uses: obervinov/_templates/.github/workflows/milestone.yaml@v1.2.9
# needs: [create-release]
name: Release

on:
pull_request:
branches:
- main
types:
- closed

jobs:
create-release:
if: github.event.pull_request.merged == true
uses: obervinov/_templates/.github/workflows/release.yaml@v2.0.2

build-release-image:
if: github.event.pull_request.merged == true
uses: obervinov/_templates/.github/workflows/docker.yaml@v2.0.2
needs: [create-release]
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,22 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/).


## v3.1.0 - 2024-10-23
### What's Changed
**Full Changelog**: https://github.com/obervinov/pyinstabot-downloader/compare/v3.0.0...v3.1.0 by @obervinov in https://github.com/obervinov/pyinstabot-downloader/pull/111
#### 🚀 Features
* bump workflows to `2.0.2`
* bump dependencies versions
#### 💥 Breaking Changes
* bump python version to `3.12`
#### 🐛 Bug Fixes
* other general bug fixes and improvements
* fix not enough condition for `igtv` type of content for `Downloader()` class
* fix infinite loop in the `Downloader()` class when type of content not supported in condition
* [Bug: Do not start the release creation process when closing a PR](https://github.com/obervinov/pyinstabot-downloader/issues/104)
* [Bug: The application tries to use credentials to access the database that have already expired](https://github.com/obervinov/pyinstabot-downloader/issues/105)


## v3.0.0 - 2024-10-09
### What's Changed
**Full Changelog**: https://github.com/obervinov/pyinstabot-downloader/compare/v2.3.0...v3.0.0 by @obervinov in https://github.com/obervinov/pyinstabot-downloader/pull/102
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.9.20
FROM python:3.12.7

### External argumetns ###
ARG PROJECT_DESCRIPTION
Expand Down Expand Up @@ -53,7 +53,7 @@ COPY LICENSE ./
### Installing poetry and python dependeces ###
RUN curl -sSL https://install.python-poetry.org | python -
RUN poetry install
ENV PYTHONPATH=/home/${PROJECT_NAME}/app/src:/home/${PROJECT_NAME}/app/.venv/lib/python3.10/site-packages
ENV PYTHONPATH=/home/${PROJECT_NAME}/app/src:/home/${PROJECT_NAME}/app/.venv/lib/python3.12/site-packages

### Entrypoint ###
CMD [ "python3", "src/bot.py" ]
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ This project is a Telegram bot that allows you to upload posts from your Instagr
"session-file": "session.json",
"timezone-offset": "10800",
"user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) ...",
"request-timeout": "10"
}
```

Expand All @@ -137,6 +138,7 @@ This project is a Telegram bot that allows you to upload posts from your Instagr
- `enabled`: the status of the downloader module
- `username`: the username of the instagram account
- `password`: the password of the instagram account
- `request-timeout`: the timeout for requests to the instagram api
</br>

- `configuration/uploader-api`: uploader module configuration (for upload content to the target storage)
Expand Down Expand Up @@ -256,4 +258,4 @@ docker compose -f docker-compose.yml up -d
## <img src="https://github.com/obervinov/_templates/blob/v1.2.2/icons/github-actions.png" width="25" title="github-actions"> GitHub Actions
| Name | Version |
| ------------------------ | ----------- |
| GitHub Actions Templates | [v1.2.9](https://github.com/obervinov/_templates/tree/v1.2.9) |
| GitHub Actions Templates | [v2.0.2](https://github.com/obervinov/_templates/tree/v2.0.2) |
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ services:
dockerfile: Dockerfile
args:
PROJECT_NAME: pyinstabot-downloader
PROJECT_DESCRIPTION: "This project is a Telegram bot that allows you to upload posts from your Instagram profile to clouds like Dropbox, Mega or any WebDav compatible cloud storage."
PROJECT_VERSION: 3.0.0
PROJECT_DESCRIPTION: "This project is a Telegram bot that allows you to upload posts from your Instagram profile to clouds like any WebDav compatible cloud storage."
PROJECT_VERSION: 3.1.0
container_name: pyinstabot-downloader
restart: always
environment:
Expand Down
Loading

0 comments on commit 68f4856

Please sign in to comment.