File tree Expand file tree Collapse file tree 2 files changed +48
-0
lines changed
Expand file tree Collapse file tree 2 files changed +48
-0
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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+ )
You can’t perform that action at this time.
0 commit comments