From 7404c821274a8c66afd3375f157054d5c45ffdcd Mon Sep 17 00:00:00 2001 From: Unai Martinez-Corral Date: Tue, 24 May 2022 14:53:47 +0200 Subject: [PATCH 1/3] ci: add License-check Signed-off-by: Unai Martinez-Corral --- .github/workflows/Pipeline.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/Pipeline.yml b/.github/workflows/Pipeline.yml index ea3a70e..a3a3c86 100644 --- a/.github/workflows/Pipeline.yml +++ b/.github/workflows/Pipeline.yml @@ -22,6 +22,20 @@ on: jobs: + License-check: + name: Check license headers + runs-on: ubuntu-latest + + steps: + + - uses: actions/checkout@v3 + with: + submodules: recursive + + - name: Check Licenses + uses: SymbiFlow/actions/checks@main + + Docs: runs-on: ubuntu-latest name: '📓 Docs' @@ -186,7 +200,7 @@ jobs: PYTHONPATH=$(pwd) python3 f4pga/__init__.py -h - pyWrappers: + Tests: runs-on: ubuntu-latest name: '🐍 Python wrappers' env: From 9b01787554f76448bc1491629d451a3bacfdff18 Mon Sep 17 00:00:00 2001 From: Krzysztof Boronski Date: Fri, 20 May 2022 06:35:45 -0500 Subject: [PATCH 2/3] Add missing license headers Signed-off-by: Krzysztof Boronski --- f4pga/__init__.py | 19 +++++++++++++++++++ f4pga/argparser.py | 19 +++++++++++++++++++ f4pga/cache.py | 19 +++++++++++++++++++ f4pga/common.py | 19 +++++++++++++++++++ f4pga/common_modules/fasm.py | 19 +++++++++++++++++++ .../common_modules/generic_script_wrapper.py | 19 +++++++++++++++++++ f4pga/common_modules/io_rename.py | 19 +++++++++++++++++++ f4pga/common_modules/mkdirs.py | 19 +++++++++++++++++++ f4pga/common_modules/pack.py | 19 +++++++++++++++++++ f4pga/common_modules/place.py | 19 +++++++++++++++++++ f4pga/common_modules/place_constraints.py | 19 +++++++++++++++++++ f4pga/common_modules/route.py | 19 +++++++++++++++++++ f4pga/common_modules/synth.py | 19 +++++++++++++++++++ f4pga/flow_config.py | 19 +++++++++++++++++++ f4pga/module.py | 19 +++++++++++++++++++ f4pga/module_inspector.py | 19 +++++++++++++++++++ f4pga/module_runner.py | 19 +++++++++++++++++++ f4pga/setup.py | 3 +-- f4pga/stage.py | 19 +++++++++++++++++++ 19 files changed, 343 insertions(+), 2 deletions(-) diff --git a/f4pga/__init__.py b/f4pga/__init__.py index 530df05..fe6effb 100755 --- a/f4pga/__init__.py +++ b/f4pga/__init__.py @@ -1,3 +1,22 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +# +# Copyright (C) 2022 F4PGA Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 + """ F4PGA Build System diff --git a/f4pga/argparser.py b/f4pga/argparser.py index 5c21db9..c73f0cd 100644 --- a/f4pga/argparser.py +++ b/f4pga/argparser.py @@ -1,3 +1,22 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +# +# Copyright (C) 2022 F4PGA Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 + from argparse import ArgumentParser, Namespace from re import finditer as re_finditer diff --git a/f4pga/cache.py b/f4pga/cache.py index 78e4a7b..9054320 100755 --- a/f4pga/cache.py +++ b/f4pga/cache.py @@ -1,3 +1,22 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +# +# Copyright (C) 2022 F4PGA Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 + from pathlib import Path from zlib import adler32 as zlib_adler32 from json import dump as json_dump, load as json_load, JSONDecodeError diff --git a/f4pga/common.py b/f4pga/common.py index 4510026..3b59575 100644 --- a/f4pga/common.py +++ b/f4pga/common.py @@ -1,3 +1,22 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +# +# Copyright (C) 2022 F4PGA Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 + from pathlib import Path from os import environ, listdir as os_listdir from sys import argv as sys_argv diff --git a/f4pga/common_modules/fasm.py b/f4pga/common_modules/fasm.py index 35285bc..29cc27a 100644 --- a/f4pga/common_modules/fasm.py +++ b/f4pga/common_modules/fasm.py @@ -1,3 +1,22 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +# +# Copyright (C) 2022 F4PGA Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 + from pathlib import Path from shutil import move as sh_mv diff --git a/f4pga/common_modules/generic_script_wrapper.py b/f4pga/common_modules/generic_script_wrapper.py index 6ad77c3..6ce69fc 100644 --- a/f4pga/common_modules/generic_script_wrapper.py +++ b/f4pga/common_modules/generic_script_wrapper.py @@ -1,3 +1,22 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +# +# Copyright (C) 2022 F4PGA Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 + """ This module is intended for wrapping simple scripts without rewriting them as an sfbuild module. This is mostly to maintain compatibility with workflows diff --git a/f4pga/common_modules/io_rename.py b/f4pga/common_modules/io_rename.py index a8b6b86..a2cb396 100644 --- a/f4pga/common_modules/io_rename.py +++ b/f4pga/common_modules/io_rename.py @@ -1,3 +1,22 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +# +# Copyright (C) 2022 F4PGA Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 + """ Rename (ie. change) dependencies and values of a module. This module wraps another, module whoose name is specified in `params.module` and changes the names of the diff --git a/f4pga/common_modules/mkdirs.py b/f4pga/common_modules/mkdirs.py index 0b796eb..ad3d6b8 100644 --- a/f4pga/common_modules/mkdirs.py +++ b/f4pga/common_modules/mkdirs.py @@ -1,3 +1,22 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +# +# Copyright (C) 2022 F4PGA Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 + """ This module is used as a helper in a abuild chain to automate creating build directiores. It's currenty the only parametric module, meaning it can take user-provided input at an early stage in order to diff --git a/f4pga/common_modules/pack.py b/f4pga/common_modules/pack.py index 703513c..f49a28b 100644 --- a/f4pga/common_modules/pack.py +++ b/f4pga/common_modules/pack.py @@ -1,3 +1,22 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +# +# Copyright (C) 2022 F4PGA Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 + from pathlib import Path from os import remove as os_remove from shutil import move as sh_mv diff --git a/f4pga/common_modules/place.py b/f4pga/common_modules/place.py index f7a078d..e60ae49 100644 --- a/f4pga/common_modules/place.py +++ b/f4pga/common_modules/place.py @@ -1,3 +1,22 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +# +# Copyright (C) 2022 F4PGA Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 + from pathlib import Path import os from shutil import move as sh_mv diff --git a/f4pga/common_modules/place_constraints.py b/f4pga/common_modules/place_constraints.py index 2e38cc3..301e71e 100644 --- a/f4pga/common_modules/place_constraints.py +++ b/f4pga/common_modules/place_constraints.py @@ -1,3 +1,22 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +# +# Copyright (C) 2022 F4PGA Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 + from pathlib import Path from f4pga.common import * from f4pga.module import Module, ModuleContext diff --git a/f4pga/common_modules/route.py b/f4pga/common_modules/route.py index 6fafa57..5a6fe3c 100644 --- a/f4pga/common_modules/route.py +++ b/f4pga/common_modules/route.py @@ -1,3 +1,22 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +# +# Copyright (C) 2022 F4PGA Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 + from pathlib import Path from shutil import move as sh_mv diff --git a/f4pga/common_modules/synth.py b/f4pga/common_modules/synth.py index a40d4ab..b3d1943 100755 --- a/f4pga/common_modules/synth.py +++ b/f4pga/common_modules/synth.py @@ -1,3 +1,22 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +# +# Copyright (C) 2022 F4PGA Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 + import os from f4pga.common import * from f4pga.module import Module, ModuleContext diff --git a/f4pga/flow_config.py b/f4pga/flow_config.py index 295bf36..b88a7a5 100644 --- a/f4pga/flow_config.py +++ b/f4pga/flow_config.py @@ -1,3 +1,22 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +# +# Copyright (C) 2022 F4PGA Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 + from pathlib import Path from copy import copy from os import listdir as os_listdir diff --git a/f4pga/module.py b/f4pga/module.py index b8cb706..316a9eb 100644 --- a/f4pga/module.py +++ b/f4pga/module.py @@ -1,3 +1,22 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +# +# Copyright (C) 2022 F4PGA Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 + """ Here are the things necessary to write an F4PGA Module. """ diff --git a/f4pga/module_inspector.py b/f4pga/module_inspector.py index b4f1bdd..6778862 100644 --- a/f4pga/module_inspector.py +++ b/f4pga/module_inspector.py @@ -1,3 +1,22 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +# +# Copyright (C) 2022 F4PGA Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 + from f4pga.module import Module from f4pga.common import decompose_depname from colorama import Style diff --git a/f4pga/module_runner.py b/f4pga/module_runner.py index 8be7ccd..fd307a6 100644 --- a/f4pga/module_runner.py +++ b/f4pga/module_runner.py @@ -1,3 +1,22 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +# +# Copyright (C) 2022 F4PGA Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 + """ Dynamically import and run F4PGA modules. """ diff --git a/f4pga/setup.py b/f4pga/setup.py index 320dceb..59c62d2 100644 --- a/f4pga/setup.py +++ b/f4pga/setup.py @@ -1,8 +1,7 @@ #!/usr/bin/env python3 -# # -*- coding: utf-8 -*- # -# Copyright (C) 2020-2022 F4PGA Authors. +# Copyright (C) 2022 F4PGA Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/f4pga/stage.py b/f4pga/stage.py index 373087c..870199e 100644 --- a/f4pga/stage.py +++ b/f4pga/stage.py @@ -1,3 +1,22 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +# +# Copyright (C) 2022 F4PGA Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 + from f4pga.common import decompose_depname, resolve_modstr from f4pga.module import Module from f4pga.module_runner import get_module, module_io From ccba453686a66b069343f495b35069f371c50dc5 Mon Sep 17 00:00:00 2001 From: Unai Martinez-Corral Date: Tue, 31 May 2022 13:32:59 +0200 Subject: [PATCH 3/3] add missing headers Signed-off-by: Unai Martinez-Corral --- .github/dependabot.yml | 16 ++++++++++++++++ .github/workflows/Automerge.yml | 16 ++++++++++++++++ docs/Makefile | 15 +++++++++++++++ docs/conf.py | 17 +++++++++++++++++ docs/environment.yml | 16 ++++++++++++++++ docs/f4pga/browse_pydoc.sh | 18 +++++++++++++++++- f4pga/wrappers/sh/__init__.py | 1 + f4pga/wrappers/sh/quicklogic/vpr_config.sh | 2 ++ readthedocs.yml | 16 ++++++++++++++++ test/test_wrappers.py | 19 +++++++++++++++++++ 10 files changed, 135 insertions(+), 1 deletion(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index c3437c6..775c001 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,3 +1,19 @@ +# Copyright (C) 2020-2022 F4PGA Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 + version: 2 updates: diff --git a/.github/workflows/Automerge.yml b/.github/workflows/Automerge.yml index cc8f9ce..8d41788 100644 --- a/.github/workflows/Automerge.yml +++ b/.github/workflows/Automerge.yml @@ -1,3 +1,19 @@ +# Copyright (C) 2020-2022 F4PGA Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 + name: Automerge on: diff --git a/docs/Makefile b/docs/Makefile index 4bac849..a3c9c91 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -1,3 +1,18 @@ +# Copyright (C) 2020-2022 F4PGA Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 TOP_DIR := $(realpath $(dir $(lastword $(MAKEFILE_LIST)))) REQUIREMENTS_FILE := requirements.txt diff --git a/docs/conf.py b/docs/conf.py index 6810853..538f5f3 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -1,5 +1,22 @@ +#!/usr/bin/env python3 # -*- coding: utf-8 -*- # +# Copyright (C) 2020-2022 F4PGA Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 +# # Updated documentation of the configuration options is available at # https://www.sphinx-doc.org/en/master/usage/configuration.html diff --git a/docs/environment.yml b/docs/environment.yml index 60b8d98..99c90ee 100644 --- a/docs/environment.yml +++ b/docs/environment.yml @@ -1,3 +1,19 @@ +# Copyright (C) 2020-2022 F4PGA Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 + name: f4pga-docs channels: - symbiflow diff --git a/docs/f4pga/browse_pydoc.sh b/docs/f4pga/browse_pydoc.sh index 5e96b99..2772d67 100755 --- a/docs/f4pga/browse_pydoc.sh +++ b/docs/f4pga/browse_pydoc.sh @@ -1,4 +1,20 @@ -#!/bin/sh +#!/usr/bin/env sh +# +# Copyright (C) 2020-2022 F4PGA Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 MY_DIR=`dirname $0` SFBUILD_DIR=${MY_DIR}/../../f4pga diff --git a/f4pga/wrappers/sh/__init__.py b/f4pga/wrappers/sh/__init__.py index 3d96618..fc59c3e 100644 --- a/f4pga/wrappers/sh/__init__.py +++ b/f4pga/wrappers/sh/__init__.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Copyright (C) 2020-2022 F4PGA Authors. diff --git a/f4pga/wrappers/sh/quicklogic/vpr_config.sh b/f4pga/wrappers/sh/quicklogic/vpr_config.sh index bee56e1..5b8ca1a 100755 --- a/f4pga/wrappers/sh/quicklogic/vpr_config.sh +++ b/f4pga/wrappers/sh/quicklogic/vpr_config.sh @@ -1,3 +1,5 @@ +#!/usr/bin/env sh +# # Copyright (C) 2020-2022 F4PGA Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/readthedocs.yml b/readthedocs.yml index dadd759..519abe1 100644 --- a/readthedocs.yml +++ b/readthedocs.yml @@ -1,3 +1,19 @@ +# Copyright (C) 2020-2022 F4PGA Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 +# # Read the Docs configuration file # See https://docs.readthedocs.io/en/stable/config-file/v2.html for details diff --git a/test/test_wrappers.py b/test/test_wrappers.py index d6ce1bb..418a5b3 100644 --- a/test/test_wrappers.py +++ b/test/test_wrappers.py @@ -1,3 +1,22 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +# +# Copyright (C) 2020-2022 F4PGA Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 + from os import environ from pytest import mark from sys import stdout, stderr