Skip to content

Commit 9b3494d

Browse files
committed
Merge branches #79, #77 and #78 into master
This patch is a combination of changes to CI and packaging that will repair the CI and make the project buildable in the modern conditions, while dropping support for ancient platforms.
4 parents 1cd883a + 547e2aa + bce65e2 + 5dbe434 commit 9b3494d

File tree

3 files changed

+15
-10
lines changed

3 files changed

+15
-10
lines changed

.github/workflows/tests.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
strategy:
1515
matrix:
1616
# Run in all these versions of Python
17-
python-version: ['3.7', '3.8', '3.9', '3.10']
17+
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
1818

1919
steps:
2020
# Checkout the latest code from the repo
@@ -28,14 +28,13 @@ jobs:
2828
# Display the Python version being used
2929
- name: Display Python version
3030
run: python -c "import sys; print(sys.version)"
31-
# Install the package using the setup.py
32-
- name: Install package
33-
run: python setup.py install
3431
# Install pytest (you can use some other testing utility)
3532
- name: Install deps
3633
run: |
3734
python -m pip install --upgrade pip
3835
pip install -r requirements.txt -r test-requirements.txt
3936
# Run the tests. I'm using pytest and the file is in the tests directory.
37+
- name: Install package
38+
run: pip install .
4039
- name: Run tests
4140
run: pytest requests_unixsocket/tests

pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[build-system]
2+
requires = [
3+
"pbr >= 6",
4+
"setuptools >= 64",
5+
]
6+
build-backend = "pbr.build"

setup.cfg

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ classifier =
1414
License :: OSI Approved :: Apache Software License
1515
Operating System :: OS Independent
1616
Programming Language :: Python
17-
Programming Language :: Python :: 2
18-
Programming Language :: Python :: 2.7
1917
Programming Language :: Python :: 3
20-
Programming Language :: Python :: 3.3
21-
Programming Language :: Python :: 3.4
22-
Programming Language :: Python :: 3.5
23-
Programming Language :: Python :: 3.6
18+
Programming Language :: Python :: 3.9
19+
Programming Language :: Python :: 3.10
20+
Programming Language :: Python :: 3.11
21+
Programming Language :: Python :: 3.12
22+
Programming Language :: Python :: 3.13
2423
test_suite = requests_unixsocket.tests
24+
python_requires = >= 3.9
2525

2626
[files]
2727
packages = requests_unixsocket

0 commit comments

Comments
 (0)