Skip to content

Commit

Permalink
Merge pull request #2 from fossology/chore/repo/add-license
Browse files Browse the repository at this point in the history
chore(repo): add license
  • Loading branch information
GMishx authored Nov 2, 2023
2 parents e1f4342 + d36aa6e commit ccb2084
Show file tree
Hide file tree
Showing 18 changed files with 841 additions and 120 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/release-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# SPDX-FileCopyrightText: © 2023 Siemens AG
# SPDX-FileContributor: Gaurav Mishra <[email protected]>

# SPDX-License-Identifier: LGPL-2.1-only

name: Publish Release Packages

on:
release:
types:
- published

jobs:
pypi-publish:
runs-on: ubuntu-latest
# environment:
# name: pypi
# url: https://pypi.org/p/safaa
# permissions:
# id-token: write
steps:
- uses: actions/checkout@v4
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: '3.8'
architecture: 'x64'
- name: Install wheel
run: python3 -m pip install --upgrade wheel
- name: Build packages
run: python3 setup.py sdist bdist_wheel
working-directory: ./Safaa
- name: Upload Packages to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
25 changes: 25 additions & 0 deletions .github/workflows/reuse-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# SPDX-FileCopyrightText: © 2023 Siemens AG
# SPDX-FileContributor: Gaurav Mishra <[email protected]>

# SPDX-License-Identifier: LGPL-2.1-only

name: Static lints

concurrency:
group: static-${{ github.head_ref }}
cancel-in-progress: true

on:
push:
branches: [master]
pull_request:
branches: [master]
workflow_dispatch:

jobs:
REUSE-Compliance-Check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: REUSE Compliance Check
uses: fsfe/reuse-action@v2
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# SPDX-FileCopyrightText: © 2023 [email protected]
#
# SPDX-License-Identifier: LGPL-2.1-only
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
Expand Down Expand Up @@ -157,4 +160,4 @@ cython_debug/
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/
.idea/
40 changes: 40 additions & 0 deletions .reuse/dep5
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: safaa
Source: https://github.com/fossology/safaa/
Upstream-Contact: FOSSology <[email protected]>
Disclaimer: <text> This file is offered as-is, without any warranty. </text>

Files:
Safaa/src/safaa/models/declutter_model/meta.json
Safaa/src/safaa/models/declutter_model/ner/cfg
Safaa/src/safaa/models/declutter_model/ner/model
Safaa/src/safaa/models/declutter_model/ner/moves
Safaa/src/safaa/models/declutter_model/tok2vec/cfg
Safaa/src/safaa/models/declutter_model/tok2vec/model
Safaa/src/safaa/models/declutter_model/tokenizer
Safaa/src/safaa/models/declutter_model/vocab/key2row
Safaa/src/safaa/models/declutter_model/vocab/lookups.bin
Safaa/src/safaa/models/declutter_model/vocab/strings.json
Safaa/src/safaa/models/declutter_model/vocab/vectors
Safaa/src/safaa/models/declutter_model/vocab/vectors.cfg
Safaa/src/safaa/models/entity_recognizer/meta.json
Safaa/src/safaa/models/entity_recognizer/ner/cfg
Safaa/src/safaa/models/entity_recognizer/ner/model
Safaa/src/safaa/models/entity_recognizer/ner/moves
Safaa/src/safaa/models/entity_recognizer/tok2vec/cfg
Safaa/src/safaa/models/entity_recognizer/tok2vec/model
Safaa/src/safaa/models/entity_recognizer/tokenizer
Safaa/src/safaa/models/entity_recognizer/vocab/key2row
Safaa/src/safaa/models/entity_recognizer/vocab/lookups.bin
Safaa/src/safaa/models/entity_recognizer/vocab/strings.json
Safaa/src/safaa/models/entity_recognizer/vocab/vectors
Safaa/src/safaa/models/entity_recognizer/vocab/vectors.cfg
Safaa/src/safaa/models/false_positive_detection_model.pkl
Safaa/src/safaa/models/false_positive_detection_vectorizer.pkl
datasets/declutter_dataset.spacy
datasets/entity_recognition_dataset.spacy
datasets/false_positive_detection_dataset.csv
datasets/json/declutter_dataset.jsonl
datasets/json/declutter_dataset_full.jsonl
Copyright: © 2023 [email protected]
License: LGPL-2.1-only
Loading

0 comments on commit ccb2084

Please sign in to comment.