Skip to content

Commit

Permalink
Adds better build path.
Browse files Browse the repository at this point in the history
  • Loading branch information
Llewellynvdm committed Nov 14, 2023
1 parent c454316 commit a2b9522
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 13 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/deploy-gitea-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["setuptools>=65.5.1", "wheel"]
build-backend = "setuptools.build_meta"
3 changes: 1 addition & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
requests~=2.31.0
setuptools>=65.5.1
requests~=2.31.0
10 changes: 6 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,21 +1,23 @@
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="[email protected]",
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"},
packages=find_packages(where="src"),
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",
Expand Down

0 comments on commit a2b9522

Please sign in to comment.