Compare commits

...
4 Commits
Author SHA1 Message Date
KKlochko 8400993ad5 Update the README.
continuous-integration/drone/push Build is passing
2023-07-16 15:44:06 +03:00
KKlochko 7222e18811 Fix the command that was "ans", but it must be "asn". 2023-07-16 15:33:27 +03:00
KKlochko 56feecfeff Add the CI/CD configuration.
continuous-integration/drone/push Build is passing
2023-07-16 14:50:59 +03:00
KKlochko 6806a878b6 Remove the README.org. 2023-07-16 14:47:25 +03:00
5 changed files with 63 additions and 41 deletions
+30
View File
@@ -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
+8
View File
@@ -43,3 +43,11 @@
Update the package information and imports.
** 1.2.0 <2023-07-16>
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
View File
@@ -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
View File
@@ -4,6 +4,27 @@ 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).
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
=====
@@ -30,8 +51,8 @@ Run the program by one of the commands:
.. code:: shell
python3 main.py
python main.py
anitube-simple-notification
asn
Author
======
+2 -2
View File
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "anitube-simple-notification"
version = "1.2.0"
version = "1.2.4"
authors = [
{ name="Kostiantyn Klochko", email="kklochko@protonmail.com" },
]
@@ -28,7 +28,7 @@ dependencies = [
]
[project.scripts]
ans = "src.main:main"
asn = "src.main:main"
anitube-simple-notification = "src.main:main"
[project.urls]