Adds better build path.
This commit is contained in:
parent
c454316040
commit
a2b95224b1
|
@ -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/*
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
[build-system]
|
||||
requires = ["setuptools>=65.5.1", "wheel"]
|
||||
build-backend = "setuptools.build_meta"
|
|
@ -1,2 +1 @@
|
|||
requests~=2.31.0
|
||||
setuptools>=65.5.1
|
||||
requests~=2.31.0
|
10
setup.py
10
setup.py
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue