5
0

Adds better build path.

This commit is contained in:
Llewellyn van der Merwe 2023-11-14 11:01:09 +02:00
parent c454316040
commit a2b95224b1
Signed by: Llewellyn
GPG Key ID: A9201372263741E7
4 changed files with 15 additions and 13 deletions

View File

@ -46,15 +46,13 @@ jobs:
with: with:
python-version: '3.10' python-version: '3.10'
- name: Install Twine - name: Install build dependencies
run: python -m pip install twine run: |
python -m pip install --upgrade build twine wheel
- name: Install Wheel
run: python -m pip install wheel
- name: Build Package - name: Build Package
run: | run: |
python setup.py sdist bdist_wheel python -m build
- name: Configure .pypirc - name: Configure .pypirc
run: | run: |
@ -66,4 +64,4 @@ jobs:
echo "password = ${{ secrets.GITEA_TOKEN }}" >> ~/.pypirc echo "password = ${{ secrets.GITEA_TOKEN }}" >> ~/.pypirc
- name: Push to Gitea - name: Push to Gitea
run: python3 -m twine upload --repository getbible dist/* run: python3 -m twine upload --repository getbible dist/*

3
pyproject.toml Normal file
View File

@ -0,0 +1,3 @@
[build-system]
requires = ["setuptools>=65.5.1", "wheel"]
build-backend = "setuptools.build_meta"

View File

@ -1,2 +1 @@
requests~=2.31.0 requests~=2.31.0
setuptools>=65.5.1

View File

@ -1,12 +1,15 @@
from setuptools import setup, find_packages from setuptools import setup, find_packages
with open('README.md', 'r', encoding='utf-8') as f:
long_description = f.read()
setup( setup(
name="getBible-librarian", name="getBible-librarian",
version="0.2.1", version="0.2.2",
author="Llewellyn van der Merwe", author="Llewellyn van der Merwe",
author_email="getbible@vdm.io", author_email="getbible@vdm.io",
description="A Python package to retrieving Bible references with ease.", description="A Python package to retrieving Bible references with ease.",
long_description=open('README.md').read(), long_description=long_description,
long_description_content_type='text/markdown', long_description_content_type='text/markdown',
url="https://git.vdm.dev/getBible/librarian", url="https://git.vdm.dev/getBible/librarian",
package_dir={"": "src"}, package_dir={"": "src"},
@ -14,8 +17,7 @@ setup(
package_data={"getbible": ["data/*.json"]}, package_data={"getbible": ["data/*.json"]},
include_package_data=True, include_package_data=True,
install_requires=[ install_requires=[
"requests~=2.31.0", "requests~=2.31.0"
"setuptools>=65.5.1"
], ],
classifiers=[ classifiers=[
"Programming Language :: Python :: 3", "Programming Language :: Python :: 3",