From 1e6dc09c458bbd717c7b066eb38c76c9500fdced Mon Sep 17 00:00:00 2001 From: bmxitalia Date: Wed, 2 Oct 2024 11:52:08 +0200 Subject: [PATCH] fixed issue with build for Python 3.7 --- .github/workflows/build.yml | 9 +++++---- README.md | 24 ++++++++++++------------ 2 files changed, 17 insertions(+), 16 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0fc3f6c..d51098f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,18 +12,19 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.8", "3.9"] + python-version: ["3.7", "3.8", "3.9"] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4.2.0 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v5.2.0 with: python-version: ${{ matrix.python-version }} - name: Install dependencies run: | python -m pip install --upgrade pip python -m pip install pytest pytest-cov coverage-lcov + if [ "${{ matrix.python-version }}" == "3.7" ]; then python -m pip install coverage==6.5.0; fi if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - name: Test with pytest run: | @@ -38,4 +39,4 @@ jobs: - name: Test of documentation with doctest run: | python -m doctest -v ltn/core.py - python -m doctest -v ltn/fuzzy_ops.py + python -m doctest -v ltn/fuzzy_ops.py \ No newline at end of file diff --git a/README.md b/README.md index 1da540b..fcd151d 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ [![docs link](https://img.shields.io/badge/docs-github.io-blue)](https://tommasocarraro.github.io/LTNtorch/) [![MIT license](https://img.shields.io/github/license/Naereen/StrapDown.js.svg)](https://github.com/Naereen/StrapDown.js/blob/master/LICENSE) ![python version](https://img.shields.io/badge/python-3.7|3.8|3.9-blue) -[![DOI BADGE](https://zenodo.org/badge/DOI/10.5281/zenodo.6394282.svg)](https://doi.org/10.5281/zenodo.6394282) +[![DOI BADGE](https://zenodo.org/badge/DOI/10.5281/zenodo.7778157.svg)](https://doi.org/10.5281/zenodo.7778157) # LTNtorch: PyTorch implementation of Logic Tensor Networks @@ -183,17 +183,17 @@ LTN has been developed thanks to active contributions and discussions with the f # Citing this repo -If you are using **LTNtorch** in your work, please consider citing this repository. +If you are using **LTNtorch** in your work, please consider citing this repository using the following BibTex entry. ``` -@software{LTNtorch, - author = {Tommaso Carraro}, - title = {{LTNtorch: PyTorch implementation of Logic Tensor Networks}}, - month = {mar}, - year = {2022}, - publisher = {Zenodo}, - version = {1.0.0}, - doi = {10.5281/zenodo.6394282}, - url = {https://doi.org/10.5281/zenodo.6394282} +@misc{LTNtorch, + author = {Tommaso Carraro}, + title = {{LTNtorch: PyTorch implementation of Logic Tensor Networks}}, + month = {mar}, + year = {2023}, + howpublished = {Zenodo}, + version = {v1.0.1}, + doi = {10.5281/zenodo.7778157} + url = {https://doi.org/10.5281/zenodo.7778157} } -``` +``` \ No newline at end of file