From cc6fab4b822f325f452d509aae2d7a2a3710e9af Mon Sep 17 00:00:00 2001 From: extreme4all <40169115+extreme4all@users.noreply.github.com> Date: Sat, 26 Oct 2024 23:41:20 +0200 Subject: [PATCH] updates --- .github/workflows/python-package.yml | 33 ++++++++++++++++++++++++++++ Makefiile | 0 pyproject.toml | 4 ++-- setup.py | 13 +++++------ tests/conftest.py | 0 5 files changed, 40 insertions(+), 10 deletions(-) create mode 100644 .github/workflows/python-package.yml create mode 100644 Makefiile create mode 100644 tests/conftest.py diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml new file mode 100644 index 0000000..34fb0f4 --- /dev/null +++ b/.github/workflows/python-package.yml @@ -0,0 +1,33 @@ +# This workflow will install Python dependencies, run tests and lint with a variety of Python versions +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python + +name: Python package + +on: + push: + branches: + - main + +jobs: + deploy: + runs-on: ubuntu-latest + # https://docs.pypi.org/trusted-publishers/using-a-publisher/ + # Specifying a GitHub environment is optional, but strongly encouraged + environment: release + permissions: + # IMPORTANT: this permission is mandatory for trusted publishing + id-token: write + steps: + - uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.x' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install build + - name: Build package + run: python -m build + - name: Publish package distributions to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 \ No newline at end of file diff --git a/Makefiile b/Makefiile new file mode 100644 index 0000000..e69de29 diff --git a/pyproject.toml b/pyproject.toml index bc7ea9a..42f4a93 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,10 +1,10 @@ [project] name = "osrs" -version = "0.0.6" +version = "0.0.7" authors = [ { name="extreme4all"}, ] -description = "python wrapper around the osrs api endpoints" +description = "a wrapper around osrs api's" readme = "README.md" requires-python = ">=3.10" classifiers = [ diff --git a/setup.py b/setup.py index 1ef9176..d0d06b0 100644 --- a/setup.py +++ b/setup.py @@ -21,12 +21,9 @@ "Operating System :: OS Independent", ], packages=setuptools.find_packages(), - python_requires=">=3.6", + python_requires=">=3.10", install_requires=[ - 'certifi==2021.5.30', - 'charset-normalizer==2.0.4', - 'idna==3.2', - 'requests==2.26.0', - 'urllib3==1.26.6' - ] -) \ No newline at end of file + "aiohttp==3.10.10", + "pydantic==2.9.2", + ], +) diff --git a/tests/conftest.py b/tests/conftest.py new file mode 100644 index 0000000..e69de29