Skip to content

Commit 6c9e620

Browse files
committed
Add pyproject.toml to set some parameters.
1 parent a42dfce commit 6c9e620

File tree

3 files changed

+25
-10
lines changed

3 files changed

+25
-10
lines changed

.github/workflows/build_and_test.yml

Lines changed: 23 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,28 +78,43 @@ jobs:
7878
python_wheels:
7979
needs: build_and_test_python
8080
runs-on: ubuntu-latest
81+
container:
82+
image: ubuntu:18.04
83+
env:
84+
PY_VER: 3.11
8185
environment:
8286
name: pypi
8387
url: https://pypi.org/p/asyncproxy
8488
permissions:
8589
id-token: write
8690
steps:
91+
- name: Install git & node20
92+
run: |
93+
apt-get update
94+
apt-get install -y git lsb-release gnupg2 wget
95+
wget -qO- https://deb.nodesource.com/setup_20.x | bash -
96+
apt-get install -y nsolid
97+
8798
- uses: actions/checkout@v4
8899

89100
- name: Set up Python
90-
uses: actions/setup-python@v5
91-
with:
92-
python-version: '3.12'
101+
run: |
102+
apt-get update
103+
apt-get install -y --no-install-recommends software-properties-common
104+
add-apt-repository ppa:deadsnakes/ppa -y
105+
apt-get update
106+
apt-get install -y --no-install-recommends python${PY_VER} python${PY_VER}-venv python${PY_VER}-dev build-essential
93107
94108
- name: Install dependencies
95109
run: |
96-
python -m pip install --upgrade pip
97-
pip install setuptools wheel auditwheel
110+
python${PY_VER} -m ensurepip --upgrade
111+
python${PY_VER} -m pip install --upgrade pip
112+
python${PY_VER} -m pip install --upgrade build setuptools wheel auditwheel
98113
99114
- name: build
100115
run: |
101-
python setup.py build sdist
102-
python -m build --wheel
116+
python${PY_VER} setup.py build sdist
117+
python${PY_VER} -m build --wheel
103118
auditwheel repair dist/*.whl --wheel-dir dist/
104119
105120
- 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)