From d04705168acc80c4740ab4d20e27def4bfd33c73 Mon Sep 17 00:00:00 2001 From: Jon Michael Aanes Date: Mon, 27 May 2024 21:56:28 +0200 Subject: [PATCH] Bumped pipelines --- .../{container.yml => python-container.yml} | 18 ++++-------------- .gitea/workflows/python-package.yml | 14 ++++++++++++++ requirements.txt | 9 +++++++++ requirements_test.txt | 1 + setup.py | 10 ++++++++-- 5 files changed, 36 insertions(+), 16 deletions(-) rename .gitea/workflows/{container.yml => python-container.yml} (51%) create mode 100644 .gitea/workflows/python-package.yml create mode 100644 requirements.txt create mode 100644 requirements_test.txt diff --git a/.gitea/workflows/container.yml b/.gitea/workflows/python-container.yml similarity index 51% rename from .gitea/workflows/container.yml rename to .gitea/workflows/python-container.yml index 7303c8d..1850faf 100644 --- a/.gitea/workflows/container.yml +++ b/.gitea/workflows/python-container.yml @@ -1,26 +1,16 @@ -name: Build container +name: Build Python Container on: push jobs: - Python-Test: - uses: jmaa/workflows/.gitea/workflows/python-test.yaml@v6.21 - Python-Package: - uses: jmaa/workflows/.gitea/workflows/python-package.yaml@v6.21 - secrets: - PIPY_REPO_USER: ${{ secrets.PIPY_REPO_USER }} - PIPY_REPO_PASS: ${{ secrets.PIPY_REPO_PASS }} + Package-Container: + uses: jmaa/workflows/.gitea/workflows/container.yaml@v6.21 with: REGISTRY_DOMAIN: gitfub.space - REGISTRY_ORGANIZATION: Usagi-Keiretsu - Container-Package: - uses: jmaa/workflows/.gitea/workflows/container.yaml@v6.21 + REGISTRY_ORGANIZATION: usagi-keiretsu secrets: DOCKER_USERNAME: ${{ secrets.PIPY_REPO_USER }} DOCKER_PASSWORD: ${{ secrets.PIPY_REPO_PASS }} PIPELINE_WORKER_SSH_KEY: ${{ secrets.PIPELINE_WORKER_SSH_KEY }} PIPELINE_WORKER_KNOWN_HOSTS: ${{ secrets.PIPELINE_WORKER_KNOWN_HOSTS }} - with: - REGISTRY_DOMAIN: gitfub.space - REGISTRY_ORGANIZATION: usagi-keiretsu diff --git a/.gitea/workflows/python-package.yml b/.gitea/workflows/python-package.yml new file mode 100644 index 0000000..f0512f8 --- /dev/null +++ b/.gitea/workflows/python-package.yml @@ -0,0 +1,14 @@ +name: Test and Package Python +on: [push] + +jobs: + Test: + uses: jmaa/workflows/.gitea/workflows/python-test.yaml@v6.21 + Package: + uses: jmaa/workflows/.gitea/workflows/python-package.yaml@v6.21 + with: + REGISTRY_DOMAIN: gitfub.space + REGISTRY_ORGANIZATION: usagi-keiretsu + secrets: + PIPY_REPO_USER: ${{ secrets.PIPY_REPO_USER }} + PIPY_REPO_PASS: ${{ secrets.PIPY_REPO_PASS }} diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..c1784cd --- /dev/null +++ b/requirements.txt @@ -0,0 +1,9 @@ +beautifulsoup4 +lxml +requests +requests_cache +browsercookie +cfscrape +frozendict +python-kucoin +krakenex diff --git a/requirements_test.txt b/requirements_test.txt new file mode 100644 index 0000000..e079f8a --- /dev/null +++ b/requirements_test.txt @@ -0,0 +1 @@ +pytest diff --git a/setup.py b/setup.py index 6bfe5f1..4315343 100644 --- a/setup.py +++ b/setup.py @@ -1,11 +1,17 @@ #!/usr/bin/env python +# +# WARNING +# +# THIS IS AN AUTOGENERATED FILE. +# +# MANUAL CHANGES CAN AND WILL BE OVERWRITTEN. + import re from setuptools import setup PACKAGE_NAME = 'personal_data' - with open('README.md') as f: readme = f.read() @@ -27,7 +33,7 @@ def read_requirements(path: str): def get_short_description(readme: str): readme = re.sub(r'#+[^\n]*\n+', '', readme) - m = re.search(r'^\s*(\w+[\w\s,`]+\.)', readme) + m = re.search(r'^\s*(\w+[\w\s,`-]+\.)', readme) try: return m.group(1) except AttributeError as err: