CoolPlayLin commited on
Commit
ff34ac0
·
unverified ·
1 Parent(s): bfa470d

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

Browse files
.github/workflows/PyPi.yml CHANGED
@@ -29,7 +29,7 @@ jobs:
29
  - name: Install dependencies
30
  run: |
31
  python -m pip install --upgrade pip
32
- pip install build
33
  - name: Build package
34
  run: python -m build
35
  - name: Publish package
 
29
  - name: Install dependencies
30
  run: |
31
  python -m pip install --upgrade pip
32
+ python -m pip install build
33
  - name: Build package
34
  run: python -m build
35
  - name: Publish package
.github/workflows/PyPiChecking.yml ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: PyPi Build Checking
2
+
3
+ on:
4
+ [pull_request]
5
+
6
+ permissions:
7
+ contents: read
8
+
9
+ jobs:
10
+ build:
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - uses: actions/checkout@v3
14
+ name: Checkout
15
+ - name: Set up Python
16
+ uses: actions/setup-python@v4
17
+ with:
18
+ python-version: '3.x'
19
+ - name: Install dependencies
20
+ run: |
21
+ python -m pip install --upgrade pip
22
+ python -m pip install build
23
+ - name: Build package
24
+ run: python -m build
requirements.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ asyncio
2
+ requests
3
+ websockets
setup.py CHANGED
@@ -11,8 +11,20 @@ setup(
11
  packages=find_packages("src"),
12
  package_dir={"": "src"},
13
  url="https://github.com/acheong08/EdgeGPT",
 
 
 
14
  install_requires=["asyncio", "requests", "websockets"],
15
  long_description=open("README.md", encoding="utf-8").read(),
16
  long_description_content_type="text/markdown",
17
  py_modules=["EdgeGPT"],
 
 
 
 
 
 
 
 
 
18
  )
 
11
  packages=find_packages("src"),
12
  package_dir={"": "src"},
13
  url="https://github.com/acheong08/EdgeGPT",
14
+ project_urls={
15
+ "Bug Report": "https://github.com/acheong08/EdgeGPT/issues/new"
16
+ },
17
  install_requires=["asyncio", "requests", "websockets"],
18
  long_description=open("README.md", encoding="utf-8").read(),
19
  long_description_content_type="text/markdown",
20
  py_modules=["EdgeGPT"],
21
+ classifiers=[
22
+ "License :: OSI Approved :: GNU General Public License v2 (GPLv2)",
23
+ "Intended Audience :: Developers",
24
+ "Topic :: Software Development :: Libraries :: Python Modules",
25
+ "Programming Language :: Python :: 3.8",
26
+ "Programming Language :: Python :: 3.9",
27
+ "Programming Language :: Python :: 3.10",
28
+ "Programming Language :: Python :: 3.11",
29
+ ]
30
  )
src/__init__.py CHANGED
@@ -0,0 +1 @@
 
 
1
+ from . import *