Compare commits
4
Commits
73ef4003a8
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8400993ad5 | ||
|
|
7222e18811 | ||
|
|
56feecfeff | ||
|
|
6806a878b6 |
+30
@@ -0,0 +1,30 @@
|
|||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: default
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: build
|
||||||
|
image: python:3.10-alpine
|
||||||
|
commands:
|
||||||
|
- python3 -m pip install --upgrade pip
|
||||||
|
- pip3 install -r requirements.txt
|
||||||
|
- python3 -m pip install --upgrade build
|
||||||
|
- python3 -m build
|
||||||
|
when:
|
||||||
|
branch:
|
||||||
|
- main
|
||||||
|
|
||||||
|
- name: publish
|
||||||
|
image: python:3.10-alpine
|
||||||
|
environment:
|
||||||
|
TWINE_USERNAME:
|
||||||
|
from_secret: PYPI_USERNAME
|
||||||
|
TWINE_PASSWORD:
|
||||||
|
from_secret: PYPI_PASSWORD
|
||||||
|
commands:
|
||||||
|
- python3 -m pip install --upgrade twine
|
||||||
|
- python3 -m twine upload dist/*
|
||||||
|
when:
|
||||||
|
branch:
|
||||||
|
- main
|
||||||
|
|
||||||
@@ -43,3 +43,11 @@
|
|||||||
Update the package information and imports.
|
Update the package information and imports.
|
||||||
** 1.2.0 <2023-07-16>
|
** 1.2.0 <2023-07-16>
|
||||||
Add commands to execute the package.
|
Add commands to execute the package.
|
||||||
|
** 1.2.1 <2023-07-16>
|
||||||
|
Remove the README.org.
|
||||||
|
** 1.2.2 <2023-07-16>
|
||||||
|
Add the CI/CD configuration.
|
||||||
|
** 1.2.3 <2023-07-16>
|
||||||
|
Fix the command that was "ans", but it must be "asn".
|
||||||
|
** 1.2.4 <2023-07-16>
|
||||||
|
Update the README.
|
||||||
|
|||||||
-37
@@ -1,37 +0,0 @@
|
|||||||
* Anitube Simple Notification
|
|
||||||
Anitube Simple Notification is a application made for getting
|
|
||||||
notification when a content is updated on the web-site (anitube.in.ua).
|
|
||||||
|
|
||||||
* Usage
|
|
||||||
In application folder create file with name =config.toml=. If a value
|
|
||||||
is wrong, then a error will be shown. If there no value or a wrong value
|
|
||||||
then it will be default.
|
|
||||||
|
|
||||||
Example of a config file for all options:
|
|
||||||
#+BEGIN_SRC toml
|
|
||||||
POSTERS = true
|
|
||||||
WAITING_PERIOD = 3600
|
|
||||||
URLS = [
|
|
||||||
"https://anitube.in.ua/4110-chainsaw-man.html",
|
|
||||||
"https://anitube.in.ua/4010-overlord-iv.html",
|
|
||||||
"https://anitube.in.ua/4097-mob-varyat-100-3-sezon.html",
|
|
||||||
"https://anitube.in.ua/4087-spy-x-family-part-2.html",
|
|
||||||
]
|
|
||||||
#+END_SRC
|
|
||||||
The last comma of the urls list can be ommited.
|
|
||||||
|
|
||||||
Run the program by one of the commands:
|
|
||||||
#+BEGIN_SRC shell
|
|
||||||
python3 main.py
|
|
||||||
python main.py
|
|
||||||
#+END_SRC
|
|
||||||
|
|
||||||
* Author
|
|
||||||
Kostiantyn Klochko (c) 2022-2023
|
|
||||||
|
|
||||||
* Donation
|
|
||||||
Monero: 8BCZr3LaciDZUwNUbC8M5gNZTtnPKoT9cMH95YcBoo2k8sg4qaxejYL4Qvp6V21ViqMHj5sHLiuRwhMYxHTVW1HUNAawV6c
|
|
||||||
[[./img/monero.png]]
|
|
||||||
|
|
||||||
* License
|
|
||||||
Under GNU GPL v3 license
|
|
||||||
+23
-2
@@ -4,6 +4,27 @@ Anitube Simple Notification
|
|||||||
Anitube Simple Notification is a application made for getting
|
Anitube Simple Notification is a application made for getting
|
||||||
notification when a content is updated on the web-site (anitube.in.ua).
|
notification when a content is updated on the web-site (anitube.in.ua).
|
||||||
|
|
||||||
|
Install
|
||||||
|
=======
|
||||||
|
|
||||||
|
Ensure that python and pip are installed:
|
||||||
|
|
||||||
|
.. code:: shell
|
||||||
|
|
||||||
|
python --version
|
||||||
|
python -m pip -V
|
||||||
|
# or
|
||||||
|
python3 --version
|
||||||
|
python3 -m pip -V
|
||||||
|
|
||||||
|
Install the package:
|
||||||
|
|
||||||
|
.. code:: shell
|
||||||
|
|
||||||
|
pip install anitube-simple-notification
|
||||||
|
# or
|
||||||
|
pip3 install anitube-simple-notification
|
||||||
|
|
||||||
Usage
|
Usage
|
||||||
=====
|
=====
|
||||||
|
|
||||||
@@ -30,8 +51,8 @@ Run the program by one of the commands:
|
|||||||
|
|
||||||
.. code:: shell
|
.. code:: shell
|
||||||
|
|
||||||
python3 main.py
|
anitube-simple-notification
|
||||||
python main.py
|
asn
|
||||||
|
|
||||||
Author
|
Author
|
||||||
======
|
======
|
||||||
|
|||||||
+2
-2
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "anitube-simple-notification"
|
name = "anitube-simple-notification"
|
||||||
version = "1.2.0"
|
version = "1.2.4"
|
||||||
authors = [
|
authors = [
|
||||||
{ name="Kostiantyn Klochko", email="kklochko@protonmail.com" },
|
{ name="Kostiantyn Klochko", email="kklochko@protonmail.com" },
|
||||||
]
|
]
|
||||||
@@ -28,7 +28,7 @@ dependencies = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
[project.scripts]
|
[project.scripts]
|
||||||
ans = "src.main:main"
|
asn = "src.main:main"
|
||||||
anitube-simple-notification = "src.main:main"
|
anitube-simple-notification = "src.main:main"
|
||||||
|
|
||||||
[project.urls]
|
[project.urls]
|
||||||
|
|||||||
Reference in New Issue
Block a user