Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rat and apache #55

Merged
merged 32 commits into from
Jul 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
8fd6acf
merged in master
Christian-B Feb 14, 2023
f828267
merged in master
Christian-B Feb 15, 2023
6819538
merged in master
Christian-B Feb 16, 2023
bca4e44
update depency version
Christian-B Feb 16, 2023
2d8a7b4
update requirements-test.txt
Christian-B Feb 16, 2023
5e489a8
run the rat checker
Christian-B Feb 24, 2023
6696272
change action directory link
Christian-B Feb 24, 2023
d45e83a
improve version handling
Christian-B Feb 24, 2023
e1acd49
fix directory link I hope
Christian-B Feb 24, 2023
88e75c3
add .ratexcludes
Christian-B Feb 24, 2023
61db018
fix the excludes
Christian-B Feb 24, 2023
ac86325
removed duplicate excludes
Christian-B Feb 24, 2023
23dce23
Merge branch 'walker' into rat
Christian-B Feb 24, 2023
d16c04e
Merge branch '1!7.0.0' into rat
Christian-B Feb 24, 2023
ef99664
apache license
Christian-B Feb 24, 2023
3b68d56
add apache
Christian-B Feb 24, 2023
344c930
if release
Christian-B Feb 24, 2023
d05bce2
add copyright
Christian-B Mar 6, 2023
30d70fc
fix rat excludes
Christian-B Mar 6, 2023
249e701
add copyright
Christian-B Mar 6, 2023
9fdcc0c
merged in master
Christian-B Mar 28, 2023
f00d8f4
merged in master
Christian-B Mar 30, 2023
52855cb
merged in master
Christian-B Mar 30, 2023
025db3b
merged in master
Christian-B Apr 4, 2023
1410b5c
merged in master
Christian-B Apr 11, 2023
6be8595
apache
Christian-B Apr 14, 2023
00a1287
remove walker from this pr
Christian-B Apr 14, 2023
5af7fae
https
Christian-B Apr 14, 2023
1a63ccd
renamed to LICENSE_POLICY.md
Christian-B Apr 14, 2023
86e3137
update walker
Christian-B Apr 14, 2023
7e376c2
Merge branch 'master' into rat
Christian-B Jul 17, 2023
5da2cee
Apache License
Christian-B Jul 17, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/run_rat.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Copyright (c) 2020 The University of Manchester
#
# 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
#
# https://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.

# This workflow will install Python dependencies, run tests, lint and rat with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: verify
on: [push]
jobs:
verify:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Run rat copyright enforcement
uses: ./actions/check-copyrights
with:
config_file: rat_asl20.xml

7 changes: 7 additions & 0 deletions .ratexcludes
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
**/*.log
**/*.tcl
**/*.xml
**/*.xsd
**/activate
**/apache-rat-*/**
**/rat.excludes
4 changes: 2 additions & 2 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
https://www.apache.org/licenses/

TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

Expand Down Expand Up @@ -193,7 +193,7 @@
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
https://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,
Expand Down
10 changes: 5 additions & 5 deletions LICENSE.md → LICENSE_POLICY.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
# License Agreement

Up to date information for the whole [SpiNNakerManchester Projects](https://github.com/SpiNNakerManchester) can be found [here](http://spinnakermanchester.github.io/common_pages/4.0.0/LicenseAgreement.html)
Up to date information for the whole [SpiNNakerManchester Projects](https://github.com/SpiNNakerManchester) can be found [here](https://spinnakermanchester.github.io/latest/LicenseAgreement.html)

As shown there the software is currently being released under the GPL version 3 license listed [here](http://www.gnu.org/copyleft/gpl.html)
As shown there the software is currently being released under the Apache License 2.0 listed [here](https://www.apache.org/licenses/LICENSE-2.0)


# Paper Authorship

See: [here](http://spinnakermanchester.github.io/common_pages/4.0.0/LicenseAgreement.html#paper-authorship)
See: [here](https://spinnakermanchester.github.io/latest/LicenseAgreement.html#paper-authorship)

# Modifications

See: [here](http://spinnakermanchester.github.io/common_pages/4.0.0/LicenseAgreement.html#modifications)
See: [here](https://spinnakermanchester.github.io/latest/LicenseAgreement.html#modifications)

# Contributors

For up to date information on Contributors see the graphs/contributors pages on each project.

For example [https://github.com/SpiNNakerManchester/SupportScripts/graphs/contributors](https://github.com/SpiNNakerManchester/SupportScripts/graphs/contributors)

[Combined list](http://spinnakermanchester.github.io/common_pages/4.0.0/LicenseAgreement.html#contributors)
[Combined list](https://spinnakermanchester.github.io/latest/LicenseAgreement.html#contributors)

16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
<!---
Copyright (c) 2023 The University of Manchester

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.
-->

These are our support script we use to develop the [SpiNNaker Project](http://apt.cs.manchester.ac.uk/projects/SpiNNaker/)

They are intended for our internal use only and have only been tested in as far as they work for us on our machine when we are running it.
Expand Down
19 changes: 9 additions & 10 deletions actions/apt-get-install/action.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
# Copyright (c) 2020 The University of Manchester
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# 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
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# https://www.apache.org/licenses/LICENSE-2.0
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# 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.

name: "Install Debian/Ubuntu packages"
description: Runs apt-get to install Debian/Ubuntu packages.
Expand Down
21 changes: 10 additions & 11 deletions actions/check-copyrights/action.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
# Copyright (c) 2020 The University of Manchester
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# 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
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# https://www.apache.org/licenses/LICENSE-2.0
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# 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.

name: Check Copyrights
description: Uses Apache RAT to check for files without license declarations.
Expand All @@ -24,7 +23,7 @@ inputs:
description: The mirror of the Apache download site to get the library from
required: false
default: https://www.apache.org/dyn/closer.cgi?action=download&filename=
# Another alternative: http://www.mirrorservice.org/sites/ftp.apache.org/
# Another alternative: https://www.mirrorservice.org/sites/ftp.apache.org/
config_file:
description: "Which xml config file to use.
Supported options are:
Expand Down
17 changes: 17 additions & 0 deletions actions/check-copyrights/download.bash
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
#!/bin/bash

# Copyright (c) 2020 The University of Manchester
#
# 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
#
# https://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.

# This workflow will install Python dependencies, run tests, lint and rat with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

if [ -z "$SUPPORT_DIR" -o ! -d "$SUPPORT_DIR" ]; then
echo "::error::Undetermined support directory! ($SUPPORT_DIR)"
exit 1
Expand Down
19 changes: 9 additions & 10 deletions actions/checkout-spinn-deps/action.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
# Copyright (c) 2020 The University of Manchester
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# 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
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# https://www.apache.org/licenses/LICENSE-2.0
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# 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.

name: "Check out and install SpiNNaker dependencies"
description: >
Expand Down
17 changes: 17 additions & 0 deletions actions/checkout-spinn-deps/gitclone.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,21 @@
#!/bin/sh
# Copyright (c) 2020 The University of Manchester
#
# 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
#
# https://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.

# This workflow will install Python dependencies, run tests, lint and rat with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

# This script works when called from a github action on PUSH not for PULL_REQUEST

REPO=$1
Expand Down
19 changes: 9 additions & 10 deletions actions/configure-spynnaker/action.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
# Copyright (c) 2020 The University of Manchester
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# 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
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# https://www.apache.org/licenses/LICENSE-2.0
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# 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.

name: "Configure sPyNNaker for Execution"
description: >
Expand Down
19 changes: 9 additions & 10 deletions actions/configure-spynnaker/mkcfg.bash
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,17 @@

# Copyright (c) 2020 The University of Manchester
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# 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
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# https://www.apache.org/licenses/LICENSE-2.0
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# 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.

cfg=~/.spynnaker.cfg

Expand Down
19 changes: 9 additions & 10 deletions actions/install-matplotlib/action.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
# Copyright (c) 2021 The University of Manchester
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# 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
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# https://www.apache.org/licenses/LICENSE-2.0
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# 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.

# Note that this action (especially its requirements file) may need updating
# as different versions of matplotlib and python are released.
Expand Down
19 changes: 9 additions & 10 deletions actions/install-matplotlib/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
# Copyright (c) 2021 The University of Manchester
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# 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
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# https://www.apache.org/licenses/LICENSE-2.0
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# 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.

numpy > 1.13, < 1.21; python_version == '3.7'
numpy; python_version >= '3.8'
Expand Down
22 changes: 12 additions & 10 deletions actions/install-spinn-deps/action.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
# Copyright (c) 2020 The University of Manchester
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# 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
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# https://www.apache.org/licenses/LICENSE-2.0
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# 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.

# Note that this action (especially its requirements file) may need updating
# as different versions of matplotlib and python are released.

name: "Check out and install SpiNNaker dependencies"
description: >
Expand Down
Loading