Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop #9

Merged
merged 4 commits into from
May 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
76 changes: 76 additions & 0 deletions .github/workflows/publish_docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
name: Publish Docs to GitHub Pages

on:
push:
branches:
- main

jobs:
publish:
strategy:
matrix:
python-version: [3.11]
defaults:
run:
shell: bash
environment: ${{ github.base_ref }}
runs-on: ubuntu-latest
steps:
#----------------------------------------------
# ----------- check-out repo ------------
#----------------------------------------------
- uses: actions/checkout@v4

#----------------------------------------------
# ------------ setup python -----------
#----------------------------------------------
- name: 🔧 Setup Python
id: setup-python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

#----------------------------------------------
# ----- install & configure poetry -----
#----------------------------------------------
- name: 📜 Install Poetry
run: |
python -m pip install -U pip poetry
poetry --version

#----------------------------------
# ----- load cached venv -----
#----------------------------------
- name: Load cached venv
id: cached-pip-wheels
uses: actions/cache@v4
with:
path: ~/.cache
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}

#----------------------------------------------
# ------------ install deps ------------
#----------------------------------------------
- name: Install dependencies
run: |
poetry install --no-interaction

#-----------------------------------------------------
# ------------ configure mkdocs cache ------------
#-----------------------------------------------------
- name: Set mkdocs cache_id
run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- name: Load cached mkdocs
id: cached-mkdocs
uses: actions/cache@v4
with:
key: mkdocs-metrial-${{ env.cache_id }}
path: .cache
restore-keys: |
mkdocs-metrial-

#------------------------------------------------
# ------------ build and publish ------------
#------------------------------------------------
- name: Build and publish docs
run: make publish-docs
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,4 @@ jobs:
- name: Build and publish
env:
PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
run: make publish
run: make publish-pypi
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ test_init.py
.pytest_cache
.ruff_cache
.coverage*
coverage.xml
coverage.xml
site
15 changes: 10 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,13 @@ push:
@git push
@echo "Changes pushed!"

### Commands to publish the package ###
publish:
@echo "Publishing package..."
@/bin/bash -c "scripts/publish.sh"
@echo "Package published!"
### Commands to publish the project components ###
publish-pypi:
@echo "Publishing package to PyPi..."
@/bin/bash -c "scripts/publish_pkg.sh"
@echo "Package published!"

publish-docs:
@echo "Publishing documentation..."
@/bin/bash -c "scripts/publish_docs.sh"
@echo "Documentation published!"
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
# Pyrevolut: A Revolut Business API Wrapper

[![codecov](https://codecov.io/gh/Trevypants/pyrevolut/graph/badge.svg?token=55UY8J1YZM)](https://codecov.io/gh/Trevypants/pyrevolut)
[![PyPI Package latest release](https://badge.fury.io/py/pyrevolut.svg)](https://badge.fury.io/py/pyrevolut)
[![PyPI Package latest release](https://img.shields.io/pypi/v/pyrevolut.svg?color=%2334D058&label=pypi%20package)](https://pypi.org/project/pyrevolut/)
[![Supported versions](https://img.shields.io/pypi/pyversions/pyrevolut)](https://pypi.org/project/pyrevolut/)
[![License](https://img.shields.io/pypi/l/pyrevolut)](https://pypi.org/project/pyrevolut/)
[![License](https://img.shields.io/pypi/l/pyrevolut)](LICENSE)
[![PyPI Package download count (per month)](https://img.shields.io/pypi/dm/pyrevolut)](https://pypi.org/project/pyrevolut/)
[![Black code style](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
[![Ruff code quality](https://img.shields.io/badge/code%20quality-Ruff-000000.svg)](https://docs.astral.sh/ruff/)
[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/Trevypants/pyrevolut/test_integration.yml?branch=develop)](https://github.com/Trevypants/pyrevolut/actions)

`pyrevolut` is an un-official wrapper around the [Revolut Business API](https://developer.revolut.com/docs/business/business-api).
Expand Down
76 changes: 76 additions & 0 deletions docs/about.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
# At dei

## Moveri iusserat

Lorem markdownum enim depositoque ullum: laeva ubi. Unus est traderet nunc
novissima mollibus mixta ut a in se medicamine corpore Iunonem sollertior
indicet est molles foret fecunda. Vos Adoni, que Achivi, pinguescere veterum
[parens quasque](http://www.pugnem.com/ab) dicentem sit vitalesque possum, es.

cyberspace(document_c_emoticon(cursorDynamic(runtime_video, refreshIpod,
backupMonochromePoint)), 1, symbolic_sprite(
halftoneReciprocalNetwork(sampling), -4 + favicon_target_wpa,
bar_perl));
if (betaP + 1 + panelToslink(-4, fat_ups, sourceCadPlain) >=
trinitronPlug) {
kilobit.edi = refreshPrimaryHdd;
pda_bar.exbibyteAnsi = -2;
caps_status_png = leaderboard;
}
var error = architecture - eupActive + 2;
if (dvr) {
irc(-1);
dvd.pipeline_recursion_recursive(ppiFirmwareIo, scanner.bittorrent_ups(
titleActive, moduleBotnet));
smm_edutainment_cloud += pup;
} else {
refresh_registry_cmos += outputPlain;
userPlugNetbios = data;
koffice /= 3;
}

Inductus mihi, per animo aliena, nisi nec Latona [rauca
comitesque](http://www.monstritrahoque.io/inviautrumque), quam cum Haemoniae
vulnere. Litus sua illa felixque suorum de concepit quondam fulsit condebat
subit Oebalide optime stabulorum esse per virum. Inde *peti aequora in* Europa
nutrix Cyllenide, tamen sparsisque quidam nullam.

## Bracchia mihi quamquam omnis illis ambage

Et **gregibus** extulit, in sit, *cepere latrare partem* serta; fitque videri
commenta ferae [in Phoebus](http://utere.net/suis.html), silentia. Misit ipsi
laevane rapta, exsiccata tum voce timeto et, Cecropide signa munus raptae.
Onusque per modo queruntur *adorat virgo* imagine sanguinis longius sorores? Qua
Ilus ademptas nostrasque in petit et metus in gerat spectatas futuri ad edita.

1. Paravi sole picae copia spem
2. Toro adde grandior lignoque Athon mentiturque ante
3. Adhuc dicunt
4. Et inque agendum pereuntem succedere Aenean addit

## Areos probavit crescere notus tanti iugulo

[Currus](http://www.eststipes.org/) racemis et, et cura nec saevis Pyrrha, fit.
Correpta ad timoris hostisque fretum non, soli citius loci? Mea cladibus
**tempora conpositas** ureris statque: munera! Nos cum suo **sub** male maioris
deinde.

1. Fugio ut poposcit testantur susurro sibi
2. Tectaque sed proximitas inque maior non inquit
3. Dixit deque me Ante intrare Liber quos
4. Inpia pariterque meri

Positisque casus amore; serpentis clamor quidem moriturus cadunt vicisti abiit,
voce prodere, me. Quem instructa recingunt glacies nimiumque petit, Agamemnona
si ripa potui utendum tenuantur obliquis ferret quae iacit! Lunaribus
[enumerare](http://poena.io/ore.html), quid suscitat tristis conripiantque habet
comminus at patris natisque
[frustra](http://www.aequoreos-cernit.io/sopita-amictu) neque: quasque ait
pectusque. Sed coniunx credula flammis pascere laevaque mare sororis matrona;
**nam** geminas *in piceis* mentum. Fortibus simul turbinis terrigenae sub, ex
dum recenti **omnes sponda** silvas, vestros, ab ferat **Pelea**.

Eurytus inscius consonat agros **simulavimus** quidam animus accipiunt effugiam
e tantum, reflectunt. Suo sedant auras nova tanta vestra incingitur puer: tu
collo nam est. Lycia et quod Tagen dicet sanet missa pallidaque in pressit
novoque equorum fata aequora ille qui deduxit parens, recondiderat.
17 changes: 17 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Welcome to MkDocs

For full documentation visit [mkdocs.org](https://www.mkdocs.org).

## Commands

* `mkdocs new [dir-name]` - Create a new project.
* `mkdocs serve` - Start the live-reloading docs server.
* `mkdocs build` - Build the documentation site.
* `mkdocs -h` - Print help message and exit.

## Project layout

mkdocs.yml # The configuration file.
docs/
index.md # The documentation homepage.
... # Other markdown pages, images and other files.
11 changes: 11 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
site_name: PyRevolut
site_description: "PyRevolut is a Python wrapper for the Revolut Business API."
site_author: "Trevor Visser"
docs_dir: docs/
repo_name: "Trevypants/pyrevolut"
repo_url: "https://github.com/Trevypants/pyrevolut"
nav:
- Home: index.md
- About: about.md
theme:
name: material
Loading
Loading