Skip to content

Commit ca373c2

Browse files
authored
Merge pull request #24 from networmix/refresh-python
Refreshing Python version to 3.13
2 parents 696f23e + f326a6c commit ca373c2

File tree

5 files changed

+31
-28
lines changed

5 files changed

+31
-28
lines changed

.github/workflows/python-test.yml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,23 @@ jobs:
88
runs-on: ubuntu-latest
99
strategy:
1010
matrix:
11-
python-version: ["3.8", "3.9", "3.10", "3.11"]
11+
python-version: ["3.13"]
1212

1313
steps:
14-
- uses: actions/checkout@v2
15-
- name: Set up Python ${{ matrix.python-version }}
16-
uses: actions/setup-python@v2
17-
with:
18-
python-version: ${{ matrix.python-version }}
19-
- name: Install dependencies
20-
run: |
21-
python -m pip install --upgrade pip
22-
python -m pip install pytest pytest-cov pytest-benchmark pytest-mock
23-
python -m pip install networkx
24-
if [ -f requirements.txt ];
14+
- uses: actions/checkout@v2
15+
- name: Set up Python ${{ matrix.python-version }}
16+
uses: actions/setup-python@v2
17+
with:
18+
python-version: ${{ matrix.python-version }}
19+
- name: Install dependencies
20+
run: |
21+
python -m pip install --upgrade pip
22+
python -m pip install pytest pytest-cov pytest-benchmark pytest-mock
23+
python -m pip install networkx
24+
if [ -f requirements.txt ];
2525
then
26-
pip install -r requirements.txt;
27-
fi
28-
- name: Test with pytest and check test coverage
29-
run: |
30-
pytest --cov=ngraph --cov-fail-under=85
26+
pip install -r requirements.txt;
27+
fi
28+
- name: Test with pytest and check test coverage
29+
run: |
30+
pytest --cov=ngraph --cov-fail-under=85

Dockerfile

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Use the official Python image from the Docker Hub
2-
FROM python:3.10
2+
FROM python:3.13
33

44
# Add Tini, a minimal init system for containers
55
ENV TINI_VERSION=v0.19.0
@@ -15,15 +15,19 @@ ENV DEBIAN_FRONTEND=noninteractive
1515
# Install system dependencies and remove the package list
1616
RUN apt-get update && \
1717
apt-get install -y \
18-
libgeos-dev \
18+
libgeos-dev \
19+
libproj-dev \
20+
libgdal-dev \
1921
&& rm -rf /var/lib/apt/lists/*
2022

23+
# Upgrade pip and setuptools
24+
RUN pip install --no-cache-dir --upgrade pip setuptools
25+
2126
# Copy the requirements file into the container
2227
COPY requirements.txt ./
2328

2429
# Install Python dependencies
25-
RUN pip install --no-cache-dir --upgrade pip && \
26-
pip install --no-cache-dir -r requirements.txt
30+
RUN pip install --no-cache-dir -r requirements.txt
2731

2832
# Create a mount point for external volumes
2933
VOLUME /root/env

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[build-system]
2-
requires = ["setuptools>=42"]
2+
requires = ["setuptools>=65.5.0"]
33
build-backend = "setuptools.build_meta"

requirements.txt

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,14 @@ networkx
33
numpy
44
pandas
55
matplotlib
6+
jupyter
7+
seaborn
8+
cartopy
69
build
710
twine
811
pytest
912
pytest-cov
1013
pytest-benchmark
1114
pytest-mock
1215
pylint
13-
black
14-
jupyter
15-
seaborn
16-
basemap-data-hires
17-
basemap
16+
black

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@
1818
"Operating System :: OS Independent",
1919
],
2020
packages=find_packages(exclude=("tests", "dev", "examples")),
21-
python_requires=">=3.10",
21+
python_requires=">=3.13",
2222
tests_require=["pytest", "networkx"],
2323
)

0 commit comments

Comments
 (0)