Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

improve setup.py and add PyPi Package build checking #119

Merged
merged 2 commits into from
Mar 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/PyPi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
python -m pip install build
- name: Build package
run: python -m build
- name: Publish package
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/PyPiChecking.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: PyPi Build Checking

on:
[pull_request]

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
name: Checkout
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install build
- name: Build package
run: python -m build
3 changes: 3 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
asyncio
requests
websockets
12 changes: 12 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,20 @@
packages=find_packages("src"),
package_dir={"": "src"},
url="https://github.com/acheong08/EdgeGPT",
project_urls={
"Bug Report": "https://github.com/acheong08/EdgeGPT/issues/new"
},
install_requires=["asyncio", "requests", "websockets"],
long_description=open("README.md", encoding="utf-8").read(),
long_description_content_type="text/markdown",
py_modules=["EdgeGPT"],
classifiers=[
"License :: OSI Approved :: GNU General Public License v2 (GPLv2)",
"Intended Audience :: Developers",
"Topic :: Software Development :: Libraries :: Python Modules",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
]
)
1 change: 1 addition & 0 deletions src/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import *