Skip to content

Commit 117b9bb

Browse files
committed
Adding Github Workflow
1 parent 5786a69 commit 117b9bb

File tree

2 files changed

+36
-4
lines changed

2 files changed

+36
-4
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Upload Python Package
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
deploy:
9+
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: Set up Python
15+
uses: actions/setup-python@v2
16+
with:
17+
python-version: '3.x'
18+
- name: Install dependencies
19+
run: |
20+
python -m pip install --upgrade pip
21+
pip install setuptools wheel twine
22+
- name: Build and publish
23+
env:
24+
TWINE_USERNAME: ${{ secrets.TEST_PYPI_USERNAME }}
25+
TWINE_PASSWORD: ${{ secrets.TEST_PYPI_PASSWORD }}
26+
run: |
27+
python setup.py sdist
28+
twine upload dist/*
29+
30+

setup.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,28 @@
55

66
setuptools.setup(
77
name="TikTokAPI-Python",
8+
packages=setuptools.find_packages(),
89
version="0.0.1",
910
license='MIT',
1011
author="Avilash Kumar",
11-
author_email="avilash.k@greyorange.sg",
12+
author_email="avilashkumar4@gmail.com",
1213
description="Unofficial TikTok API wrapper in Python",
1314
long_description=long_description,
1415
long_description_content_type="text/markdown",
1516
url="https://github.com/avilash/TikTokAPI",
1617
download_url='https://github.com/avilash/TikTokAPI/tarball/master',
17-
keywords=['tiktok', 'python3', 'api', 'unofficial', 'tiktok-api', 'tiktok api'],
18+
keywords=['tiktok', 'python', 'api', 'tiktok-api', 'tiktok api'],
1819
install_requires=[
1920
'requests',
2021
'pyppeteer',
2122
"pyppeteer_stealth"
2223
],
23-
packages=setuptools.find_packages(),
2424
classifiers=[
25-
"Programming Language :: Python :: 2",
25+
"Programming Language :: Python :: 3",
2626
"License :: OSI Approved :: MIT License",
2727
"Operating System :: OS Independent",
28+
'Intended Audience :: Developers',
29+
'Topic :: Software Development :: Build Tools',
2830
],
2931
include_package_data=True
3032
)

0 commit comments

Comments
 (0)