Skip to content

Commit 1c9dcb5

Browse files
authored
Merge pull request #679 from openedx/bmtcril/fix_pypi_release
build: Move PyPI publishing to uv
2 parents 92f6af8 + e63697e commit 1c9dcb5

3 files changed

Lines changed: 11 additions & 18 deletions

File tree

‎.github/workflows/pypi-publish.yml‎

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@ name: Publish package to PyPi
33
on:
44
push:
55
tags:
6-
- '*'
6+
- "*"
77

88
jobs:
9-
109
push:
1110
runs-on: ubuntu-latest
1211

@@ -18,14 +17,13 @@ jobs:
1817
with:
1918
python-version: 3.12
2019

21-
- name: Install pip
22-
run: pip install -r requirements/pip.txt
23-
24-
- name: Install Dependencies
25-
run: pip install setuptools wheel
20+
- name: Install uv
21+
uses: astral-sh/setup-uv@v7
22+
with:
23+
enable-cache: true
2624

2725
- name: Build package
28-
run: python setup.py sdist bdist_wheel
26+
run: uv build
2927

3028
- name: Publish to PyPi
3129
uses: pypa/gh-action-pypi-publish@release/v1

‎MANIFEST.in‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
include LICENSE.txt
22
include README.rst
3-
include requirements/base.in
43
recursive-include edx_repo_tools *.html *.png *.gif *js *.css *jpg *jpeg *svg *py
5-
include requirements/constraints.txt
4+
include requirements/common_constraints.txt

‎pyproject.toml‎

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,19 @@ name = "edx-repo-tools"
77
dynamic = ["version"]
88
description = "This repo contains a number of tools Open edX uses for working with GitHub repositories."
99
readme = "README.rst"
10-
license = {text = "Apache-2.0"}
10+
license = "Apache-2.0"
11+
keywords = ["openedx", "repo", "tools"]
1112
authors = [
12-
{name = "edX", email = "oscm@edx.org"}
13+
{name = "Open edX Project", email = "oscm@openedx.org"}
1314
]
14-
keywords = ["edx", "repo", "tools"]
1515
classifiers = [
1616
"Environment :: Console",
1717
"Intended Audience :: Developers",
18-
"License :: OSI Approved :: Apache Software License",
1918
"Programming Language :: Python :: 3",
20-
"Programming Language :: Python :: 3.8",
21-
"Programming Language :: Python :: 3.9",
22-
"Programming Language :: Python :: 3.10",
2319
"Programming Language :: Python :: 3.11",
2420
"Programming Language :: Python :: 3.12",
2521
]
26-
requires-python = ">=3.8"
22+
requires-python = ">=3.11"
2723
dependencies = [
2824
"appdirs",
2925
"backports.csv",

0 commit comments

Comments
 (0)