Skip to content

Commit 61a6bfe

Browse files
committed
publish to PyPI
1 parent 43ef45a commit 61a6bfe

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed

.github/workflows/publish.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Upload Python Package
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-latest
10+
# Specifying a GitHub environment is optional, but strongly encouraged
11+
environment: release
12+
permissions:
13+
# IMPORTANT: this permission is mandatory for trusted publishing
14+
id-token: write
15+
steps:
16+
- uses: actions/checkout@v4
17+
- name: Set up Python
18+
uses: actions/setup-python@v5
19+
with:
20+
python-version: '3.x'
21+
- name: Install dependencies
22+
run: |
23+
python -m pip install --upgrade pip
24+
pip install build
25+
- name: Build package
26+
run: python -m build
27+
- name: Publish package
28+
uses: pypa/gh-action-pypi-publish@release/v1

setup.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
from setuptools import setup
2+
3+
setup(
4+
name='zjuintl_assistant',
5+
version='0.0.1',
6+
description='Python interface for getting data from different platforms of ZJU International College',
7+
long_description=open('README.md').read(),
8+
long_description_content_type='text/markdown',
9+
url='https://github.com/ZJUIntl-share/zjuintl_assistant',
10+
author='ZJUIntl-share',
11+
license='MIT',
12+
packages=['zjuintl_assistant'],
13+
install_requires=[
14+
'rsa',
15+
'requests',
16+
'beautifulsoup4',
17+
],
18+
python_requires='>=3',
19+
zip_safe=False
20+
)

0 commit comments

Comments
 (0)