5
0
Fork 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:
python-version: '3.10'
- name: Install Twine
run: python -m pip install twine
- name: Install Wheel
run: python -m pip install wheel
- name: Install build dependencies
run: |
python -m pip install --upgrade build twine wheel
- name: Build Package
run: |
python setup.py sdist bdist_wheel
python -m build
- name: Configure .pypirc
run: |
@ -66,4 +64,4 @@ jobs:
echo "password = ${{ secrets.GITEA_TOKEN }}" >> ~/.pypirc
- 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
setuptools>=65.5.1
requests~=2.31.0

View File

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