Skip to content

Commit 922df41

Browse files
author
pavi
committed
.
1 parent b973e30 commit 922df41

File tree

1 file changed

+36
-50
lines changed

1 file changed

+36
-50
lines changed

setup.py

+36-50
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,36 @@
1-
name: Publish Python Package
2-
3-
on:
4-
push:
5-
branches:
6-
- main
7-
8-
jobs:
9-
build-and-publish:
10-
runs-on: ubuntu-latest
11-
12-
steps:
13-
- name: Checkout code
14-
uses: actions/checkout@v2
15-
16-
- name: Check if setup.py is modified
17-
id: check_setup
18-
run: |
19-
if git diff --name-only HEAD^ HEAD | grep -q "setup.py"; then
20-
echo "setup.py changed"
21-
echo "changed=true" >> $GITHUB_ENV
22-
else
23-
echo "setup.py not changed"
24-
echo "changed=false" >> $GITHUB_ENV
25-
fi
26-
27-
- name: Set up Python
28-
uses: actions/setup-python@v2
29-
with:
30-
python-version: '3.11'
31-
if: env.changed == 'true'
32-
33-
- name: Install dependencies
34-
run: |
35-
python -m pip install --upgrade pip
36-
pip install setuptools wheel twine
37-
if: env.changed == 'true'
38-
39-
- name: Build package
40-
run: |
41-
python setup.py sdist bdist_wheel
42-
if: env.changed == 'true'
43-
44-
- name: Publish package
45-
env:
46-
TWINE_USERNAME: _token_
47-
TWINE_PASSWORD: ${{ secrets.token }}
48-
run: |
49-
twine upload dist/*
50-
if: env.changed == 'true'
1+
from setuptools import find_packages
2+
from setuptools import setup
3+
4+
def get_long_description():
5+
with open("README.md", "r", encoding="utf-8") as f:
6+
return f.read()
7+
8+
setup(
9+
name="geminikit",
10+
version="1.0.3",
11+
author="paviththanan",
12+
author_email="[email protected]",
13+
description="The python package that returns Response of Google Gemini through Cookies.",
14+
long_description=get_long_description(),
15+
long_description_content_type="text/markdown",
16+
url="https://github.com/rekcah-pavi/geminikit",
17+
packages=find_packages(exclude=[]),
18+
python_requires=">=3.6",
19+
install_requires=[
20+
"httpx",
21+
],
22+
keywords="Python, API, Gemini, Google Gemini, Large Language Model, Chatbot API, Google API, Chatbot",
23+
classifiers=[
24+
"Development Status :: 5 - Production/Stable",
25+
"Intended Audience :: Science/Research",
26+
"Natural Language :: English",
27+
"Programming Language :: Python",
28+
"Programming Language :: Python :: 3.7",
29+
"Programming Language :: Python :: 3.8",
30+
"Programming Language :: Python :: 3.9",
31+
"Programming Language :: Python :: 3.10",
32+
"Programming Language :: Python :: 3.11",
33+
"License :: OSI Approved :: MIT License",
34+
"Topic :: Scientific/Engineering :: Artificial Intelligence",
35+
],
36+
)

0 commit comments

Comments
 (0)