Skip to content

Commit

Permalink
upload test
Browse files Browse the repository at this point in the history
  • Loading branch information
as6325400 committed Oct 6, 2024
1 parent 95c65b1 commit 6cbbf90
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 1 deletion.
34 changes: 34 additions & 0 deletions .github/workflows/upload.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Upload Python Package to PyPI

on:
push:
tags:
- 'v*'

jobs:
build:
runs-on: ubuntu-latest

steps:
# Checkout repository code
- name: Checkout code
uses: actions/checkout@v3

# Install build dependencies
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
# Build the package
- name: Build package
run: |
python setup.py sdist bdist_wheel
# Upload the package to PyPI
- name: Upload package to PyPI
env:
TWINE_USERNAME: __token__ # PyPI API token 認證
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: |
python -m twine upload dist/*
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ dist/
*.egg-info/
**/test.*
MANIFEST.in
setup.py
decode.ipynb
img.png
temp.png
Expand Down
24 changes: 24 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
from setuptools import setup, find_packages

with open('requirements.txt') as f:
required = f.read().splitlines()

setup(
name="Qart",
version="0.0.20",
description="A short description of your package",
long_description=open("README.md").read(),
long_description_content_type="text/markdown",
url="https://github.com/as6325400/Qart",
author="as6325400",
author_email="[email protected]",
license="MIT",
packages=find_packages(),
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
python_requires='>=3.6',
install_requires=required,
)

0 comments on commit 6cbbf90

Please sign in to comment.