Skip to content

Commit

Permalink
Merge branches #79, #77 and #78 into master
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
webknjaz committed Jan 8, 2025
4 parents 1cd883a + 547e2aa + bce65e2 + 5dbe434 commit 9b3494d
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 10 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
strategy:
matrix:
# Run in all these versions of Python
python-version: ['3.7', '3.8', '3.9', '3.10']
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']

steps:
# Checkout the latest code from the repo
Expand All @@ -28,14 +28,13 @@ jobs:
# Display the Python version being used
- name: Display Python version
run: python -c "import sys; print(sys.version)"
# Install the package using the setup.py
- name: Install package
run: python setup.py install
# Install pytest (you can use some other testing utility)
- name: Install deps
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt -r test-requirements.txt
# Run the tests. I'm using pytest and the file is in the tests directory.
- name: Install package
run: pip install .
- name: Run tests
run: pytest requests_unixsocket/tests
6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[build-system]
requires = [
"pbr >= 6",
"setuptools >= 64",
]
build-backend = "pbr.build"
12 changes: 6 additions & 6 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ classifier =
License :: OSI Approved :: Apache Software License
Operating System :: OS Independent
Programming Language :: Python
Programming Language :: Python :: 2
Programming Language :: Python :: 2.7
Programming Language :: Python :: 3
Programming Language :: Python :: 3.3
Programming Language :: Python :: 3.4
Programming Language :: Python :: 3.5
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Programming Language :: Python :: 3.12
Programming Language :: Python :: 3.13
test_suite = requests_unixsocket.tests
python_requires = >= 3.9

[files]
packages = requests_unixsocket
Expand Down

0 comments on commit 9b3494d

Please sign in to comment.