Skip to content

Commit 5dcd7fa

Browse files
committed
Release 0.1.4
1 parent fc5d6c8 commit 5dcd7fa

File tree

2 files changed

+81
-0
lines changed

2 files changed

+81
-0
lines changed

.github/workflows/release.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Publish to PyPI (Trusted Publisher)
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
tags: ["v*"]
7+
8+
jobs:
9+
build:
10+
name: Build dists
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
with:
15+
persist-credentials: false
16+
- uses: actions/setup-python@v5
17+
with:
18+
python-version: "3.x"
19+
- name: Install build tool
20+
run: python -m pip install --upgrade build
21+
- name: Build wheel + sdist
22+
run: python -m build
23+
- name: Upload dists
24+
uses: actions/upload-artifact@v4
25+
with:
26+
name: dists
27+
path: dist/
28+
29+
publish-to-pypi:
30+
name: Publish to PyPI
31+
if: startsWith(github.ref, 'refs/tags/')
32+
needs: build
33+
runs-on: ubuntu-latest
34+
environment:
35+
name: pypi
36+
url: https://pypi.org/p/gradescope-tool
37+
permissions:
38+
id-token: write
39+
steps:
40+
- uses: actions/download-artifact@v4
41+
with:
42+
name: dists
43+
path: dist/
44+
- name: Upload to PyPI
45+
uses: pypa/gh-action-pypi-publish@release/v1

pyproject.toml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
[build-system]
2+
requires = ["setuptools>=77", "wheel"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "gradescope-tool"
7+
version = "0.1.3"
8+
description = "A Python wrapper for Gradescope to easily retrieve data from your Gradescope Courses."
9+
readme = { file = "README.md", content-type = "text/markdown" }
10+
requires-python = ">=3.7"
11+
12+
authors = [
13+
{ name = "HyunJun Park", email = "[email protected]" },
14+
{ name = "Daniel Song", email = "[email protected]" }
15+
]
16+
17+
license = "MIT"
18+
license-files = ["LICEN[CS]E*"]
19+
20+
classifiers = [
21+
"Programming Language :: Python :: 3",
22+
"Operating System :: OS Independent"
23+
]
24+
25+
dynamic = ["dependencies"]
26+
27+
[project.urls]
28+
Homepage = "https://github.com/Teaching-and-Learning-in-Computing/Gradescope"
29+
Repository = "https://github.com/Teaching-and-Learning-in-Computing/Gradescope"
30+
Issues = "https://github.com/Teaching-and-Learning-in-Computing/Gradescope/issues"
31+
32+
[tool.setuptools.dynamic]
33+
dependencies = { file = ["requirements.txt"] }
34+
35+
[tool.setuptools.packages.find]
36+
include = ["gradescope*"]

0 commit comments

Comments
 (0)