Skip to content

Commit

Permalink
Merge pull request #62 from oemof/revision/update_build_system
Browse files Browse the repository at this point in the history
Update build system
  • Loading branch information
p-snft authored Jun 27, 2024
2 parents d495ee0 + 816e11a commit 760d0ec
Show file tree
Hide file tree
Showing 15 changed files with 153 additions and 626 deletions.
24 changes: 0 additions & 24 deletions .bumpversion.cfg

This file was deleted.

71 changes: 0 additions & 71 deletions .cookiecutterrc

This file was deleted.

5 changes: 3 additions & 2 deletions .github/workflows/packaging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,10 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools setuptools_scm twine wheel
python -m pip install --upgrade pip
python -m pip install -e .[build]
- name: Create packages
run: python setup.py sdist bdist_wheel
run: python -m build .
- name: Run twine check
run: twine check dist/*
- uses: actions/upload-artifact@v4
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/tox_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,15 @@ jobs:
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ matrix.toxenv }}-${{ hashFiles('tox.ini', 'setup.py') }}
key: ${{ runner.os }}-pip-${{ matrix.toxenv }}-${{ hashFiles('tox.ini', 'pyproject.toml') }}
restore-keys: |
${{ runner.os }}-pip-${{ matrix.toxenv }}-
${{ runner.os }}-pip-
- name: Install dependencies
run: |
python -m pip install -U pip
python -m pip install -U setuptools wheel
python -m pip install -U tox
python -m pip install pip --upgrade
python -m pip install tox
- name: Run ${{ matrix.toxenv }}
run: python -m tox -e ${{ matrix.toxenv }}
6 changes: 2 additions & 4 deletions .github/workflows/tox_pytests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,22 @@ on:
- cron: "0 5 * * 6" # 5:00 UTC every Saturday

jobs:
build:
pytest:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11"]

steps:
- uses: actions/checkout@v4
- name: Install xmllint
run: sudo apt install coinor-cbc
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox tox-gh-actions coverage coveralls
python -m pip install tox tox-gh-actions coverage coveralls
- name: Test with tox
run: tox

Expand Down
22 changes: 0 additions & 22 deletions MANIFEST.in

This file was deleted.

92 changes: 0 additions & 92 deletions ci/bootstrap.py

This file was deleted.

4 changes: 0 additions & 4 deletions ci/requirements.txt

This file was deleted.

49 changes: 0 additions & 49 deletions ci/templates/.appveyor.yml

This file was deleted.

Loading

0 comments on commit 760d0ec

Please sign in to comment.