Skip to content

Commit 08b3ad4

Browse files
committed
Introduce pyproject.toml
1 parent 7d39771 commit 08b3ad4

33 files changed

+74
-174
lines changed

.github/workflows/github-ci.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ jobs:
1515
- name: Set up Python
1616
uses: actions/setup-python@v3
1717
with:
18-
python-version: 3.7
18+
python-version: 3.7.12
1919

2020
- name: Upgrade pip
2121
run: python -m pip install --upgrade pip
2222

2323
- name: Install dependencies
24-
run: python -m pip install flake8 black
24+
run: python -m pip install "flake8==4.0.1" "black==22.3.0"
2525

2626
- name: check style with black
2727
run: python -m black mip --line-length=89 --check --diff
@@ -73,13 +73,12 @@ jobs:
7373
path: ${{ steps.pip-cache.outputs.dir }}
7474
key: ${{ runner.os }}-${{ matrix.python-version }}-pythonpip
7575

76-
- name: Install dependencies CPython
77-
if: ${{ matrix.python-version != 'pypy-3.9' }}
78-
run: python -m pip install cffi pytest networkx numpy matplotlib gurobipy
76+
- name: Install dependencies from requirements.txt
77+
run: python -m pip install -r requirements.txt
7978

80-
- name: Install dependencies PyPy
81-
if: ${{ matrix.python-version == 'pypy-3.9' }}
82-
run: python -m pip install cffi pytest networkx numpy
79+
- name: Install additional requirements (CPython)
80+
if: ${{ matrix.python-version != 'pypy-3.9' }}
81+
run: python -m pip install "matplotlib==3.5.2" "gurobipy==9.5.1"
8382

8483
- name: Install mip
8584
run: python -m pip install .

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ __pycache__/
44
*$py.class
55

66
# Generated by setuptools_scm
7-
mip/version.py
7+
mip/_version.py
88

99
# C extensions
1010
*.so

.travis.yml

Lines changed: 0 additions & 38 deletions
This file was deleted.

NEWS

Lines changed: 0 additions & 29 deletions
This file was deleted.

TODO.md

Lines changed: 0 additions & 55 deletions
This file was deleted.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)