Skip to content

Commit ce2c0ef

Browse files
committed
build: add pyproject.toml to remove deprecation warning at install
1 parent 563f262 commit ce2c0ef

4 files changed

Lines changed: 12 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,14 @@ jobs:
2525
run: |
2626
python -m pip install --upgrade pip
2727
pip install -r requirements.txt
28-
- name: Install
28+
- name: install with pip -e
29+
if: ${{ matrix.python-version == 3.12 || matrix.python-version == 3.13 }}
2930
run: |
30-
python setup.py install
31+
pip install -e . -v --no-build-isolation
32+
- name: install with setup.py develop
33+
if: ${{ matrix.python-version != 3.12 && matrix.python-version != 3.13 }}
34+
run: |
35+
python setup.py develop
3136
- name: Test nose
3237
run: |
3338
pip install -r test-requirements.txt

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# pyproject.toml
2+
[build-system]
3+
requires = ["setuptools >= 42.0.0"]
4+
build-backend = "setuptools.build_meta"

setup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
'Intended Audience :: Science/Research',
3535
'Intended Audience :: System Administrators',
3636
'Intended Audience :: Telecommunications Industry',
37-
'License :: OSI Approved :: MIT License',
3837
'Operating System :: MacOS :: MacOS X',
3938
'Operating System :: POSIX',
4039
'Operating System :: Unix',

test-requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
-r requirements.txt
22
nose2
33
flake8
4+
setuptools; python_version > '3.11'

0 commit comments

Comments
 (0)