File tree Expand file tree Collapse file tree 3 files changed +45
-1
lines changed
Expand file tree Collapse file tree 3 files changed +45
-1
lines changed Original file line number Diff line number Diff line change 1+ name : Build and release git-autograder to PyPi
2+
3+ on :
4+ workflow_dispatch :
5+ push :
6+ tags :
7+ - " v*.*.*"
8+
9+ permissions :
10+ contents : write
11+ pull-requests : write
12+ packages : read
13+ issues : read
14+
15+ jobs :
16+ publish :
17+ runs-on : ubuntu-latest
18+
19+ steps :
20+ - name : Checkout repository
21+ uses : actions/checkout@v3
22+
23+ - name : Setup Python
24+ uses : actions/setup-python@v5
25+ with :
26+ python-version : " 3.13"
27+
28+ - name : Install dependencies
29+ run : |
30+ python -m pip install --upgrade pip
31+ pip install -r requirements.txt
32+
33+ - name : Build binary
34+ run : |
35+ echo "__version__ = \"${GITHUB_REF_NAME}\"" > src/git_autograder/version.py
36+ python -m build
37+
38+ - name : Publish
39+ run : |
40+ python -m twine upload --username "__token__" --password ${{ secrets.PYPI_TOKEN }} --skip-existing --verbose dist/*
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44
55[project ]
66name = " git-autograder"
7- version = " 6.3.0 "
7+ dynamic = [ " version " ]
88authors = [{
name =
" Jiahao, Woo" ,
email =
" [email protected] " }]
99description = " Library for autograding Git repositories"
1010readme = " README.md"
@@ -35,3 +35,6 @@ pythonpath = ["src"]
3535
3636[tool .mypy ]
3737mypy_path = " src"
38+
39+ [tool .hatch .version ]
40+ path = " src/git_autograder/version.py"
Original file line number Diff line number Diff line change 1+ __version__ = "0.0.0"
You can’t perform that action at this time.
0 commit comments