Skip to content

Commit

Permalink
Merge branch 'master' into tensorflow-2.16
Browse files Browse the repository at this point in the history
  • Loading branch information
lfoppiano committed Jan 8, 2025
2 parents 77872d7 + 1f8729c commit 666441a
Show file tree
Hide file tree
Showing 8 changed files with 70 additions and 193,101 deletions.
49 changes: 27 additions & 22 deletions .github/workflows/ci-build-unstable.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,38 @@
name: Build

on: [push]
on: [ push ]

concurrency:
concurrency:
group: build
# cancel-in-progress: true


jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
python-version: [ 3.8, 3.9 ]
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: "3.8"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
pytest
- name: Cleanup more disk space
run: sudo rm -rf /usr/share/dotnet && sudo rm -rf /opt/ghc && sudo rm -rf "/usr/local/share/boost" && sudo rm -rf "$AGENT_TOOLSDIRECTORY"
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
pytest
3 changes: 2 additions & 1 deletion Readme.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
<img align="right" width="150" height="150" src="doc/cat-delft-small.jpg">

[![Documentation Status](https://readthedocs.org/projects/delft/badge/?version=latest)](https://readthedocs.org/projects/delft/?badge=latest)
[![Build Status](https://travis-ci.org/kermitt2/delft.svg?branch=master)](https://travis-ci.org/kermitt2/delft)
[![Build](https://github.com/kermitt2/delft/actions/workflows/ci-build-unstable.yml/badge.svg)](https://github.com/kermitt2/delft/actions/workflows/ci-build-unstable.yml)
[![PyPI version](https://badge.fury.io/py/delft.svg)](https://badge.fury.io/py/delft)
[![SWH](https://archive.softwareheritage.org/badge/origin/https://github.com/kermitt2/delft/)](https://archive.softwareheritage.org/browse/origin/https://github.com/kermitt2/delft/)
[![License](http://img.shields.io/:license-apache-blue.svg)](http://www.apache.org/licenses/LICENSE-2.0.html)
[![Downloads](https://static.pepy.tech/badge/delft)](https://pepy.tech/project/delft)


# DeLFT
Expand Down
3 changes: 3 additions & 0 deletions classifiers.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Programming Language :: Python :: 3.8
License :: OSI Approved :: Apache Software License
Operating System :: OS Independent
1 change: 1 addition & 0 deletions data/sequenceLabelling/grobid/quantities/Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The training data for the Deep Learning models used in Grobid-quantities can be found on the Grobid-quantities repository: https://github.com/lfoppiano/grobid-quantities.
193,035 changes: 0 additions & 193,035 deletions data/sequenceLabelling/grobid/quantities/quantities.all.train

This file was deleted.

36 changes: 36 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
[build-system]
requires = ["setuptools>=42", "wheel"]
build-backend = "setuptools.build_meta"

[tool.bumpversion]
current_version = "0.3.4"
commit = "true"
tag = "true"
tag_name = "v{new_version}"

[project]
name = "delft"
description = "a Deep Learning Framework for Text"
readme = "Readme.md"
authors = [
{ name = "Patrice Lopez", email = "patrice.lopez@science-miner.com" }
]
maintainers = [
{ name = "Patrice Lopez", email = "patrice.lopez@science-miner.com" },
{ name = "Luca Foppiano", email = "lucanoro@duck.com" }
]
requires-python = ">=3.7"

dynamic = ['version', "dependencies"]

[tool.setuptools.dynamic]
dependencies = {file = ["requirements.txt"]}
classifiers = {file = ["classifiers.txt"]}

[project.urls]
Homepage = "https://github.com/kermitt2/delft"
Repository = "https://github.com/kermitt2/delft"
Changelog = "https://github.com/kermitt2/delft"

[tool.setuptools.packages.find]
exclude = ["test", "*.test", "*.test.*"]
1 change: 1 addition & 0 deletions requirements.txt.dev
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bump-my-version
43 changes: 0 additions & 43 deletions setup.py

This file was deleted.

0 comments on commit 666441a

Please sign in to comment.