Skip to content

Commit 4de3a2c

Browse files
committed
Add pyproject.toml to set some parameters.
1 parent a42dfce commit 4de3a2c

File tree

3 files changed

+18
-10
lines changed

3 files changed

+18
-10
lines changed

.github/workflows/build_and_test.yml

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
- name: Install dependencies
6060
run: |
6161
python -m pip install --upgrade pip
62-
pip install setuptools wheel
62+
pip install --upgrade build setuptools wheel
6363
shell: bash
6464

6565
- name: build
@@ -78,6 +78,10 @@ jobs:
7878
python_wheels:
7979
needs: build_and_test_python
8080
runs-on: ubuntu-latest
81+
container:
82+
image: ubuntu:20.04
83+
env:
84+
PY_VER: 3.11
8185
environment:
8286
name: pypi
8387
url: https://pypi.org/p/asyncproxy
@@ -87,19 +91,23 @@ jobs:
8791
- uses: actions/checkout@v4
8892

8993
- name: Set up Python
90-
uses: actions/setup-python@v5
91-
with:
92-
python-version: '3.12'
94+
run: |
95+
apt-get update
96+
apt-get install -y --no-install-recommends software-properties-common
97+
add-apt-repository ppa:deadsnakes/ppa -y
98+
apt-get update
99+
apt-get install -y --no-install-recommends python${PY_VER} python${PY_VER}-venv
93100
94101
- name: Install dependencies
95102
run: |
96-
python -m pip install --upgrade pip
97-
pip install setuptools wheel auditwheel
103+
python${PY_VER} -m ensurepip --upgrade
104+
python${PY_VER} -m pip install --upgrade pip
105+
python${PY_VER} -m pip install --upgrade build setuptools wheel auditwheel
98106
99107
- name: build
100108
run: |
101-
python setup.py build sdist
102-
python -m build --wheel
109+
python${PY_VER} setup.py build sdist
110+
python${PY_VER} -m build --wheel
103111
auditwheel repair dist/*.whl --wheel-dir dist/
104112
105113
- name: Publish package distributions to PyPI

MANIFEST.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
include src/Symbol.map src/asp_iostats.h src/asp_sock.So src/asp_sock.c src/asp_sock.h src/asyncproxy.So src/asyncproxy.c src/asyncproxy.h
1+
include src/Symbol.map src/asp_iostats.h src/asp_sock.c src/asp_sock.h src/asyncproxy.c src/asyncproxy.h
22
include README.md

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ def get_ex_mod():
6363
'packages':['asyncproxy',],
6464
'package_dir':{'asyncproxy':'python'},
6565
'ext_modules': get_ex_mod(),
66+
'license': 'BSD-2-Clause',
6667
'classifiers': [
67-
'License :: OSI Approved :: BSD License',
6868
'Operating System :: POSIX',
6969
'Programming Language :: C',
7070
'Programming Language :: Python'

0 commit comments

Comments
 (0)