diff --git a/aas/adapter/aasx.py b/aas/adapter/aasx.py index 52db992efd778d69f868e44f9db09c1fecce0f60..2b5e520bcbe7d2a6c397efb77f3fa08dac97f645 100644 --- a/aas/adapter/aasx.py +++ b/aas/adapter/aasx.py @@ -1,4 +1,4 @@ -# Copyright 2019 PyI40AAS Contributors +# Copyright 2020 PyI40AAS Contributors # # 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 diff --git a/aas/adapter/couchdb.py b/aas/adapter/couchdb.py index b52cc38b8266c2357e26e1b51d999ff858203469..4ecd976e7866c7401bc938ef02440243d3671ef3 100644 --- a/aas/adapter/couchdb.py +++ b/aas/adapter/couchdb.py @@ -1,4 +1,4 @@ -# Copyright 2019 PyI40AAS Contributors +# Copyright 2020 PyI40AAS Contributors # # 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 diff --git a/aas/adapter/json/json_deserialization.py b/aas/adapter/json/json_deserialization.py index 2c29728a83144eb95e83adfda49bc8b46c8e4108..4c9d5ec98f6d6f63f0035869714d3dfa51539aa4 100644 --- a/aas/adapter/json/json_deserialization.py +++ b/aas/adapter/json/json_deserialization.py @@ -1,4 +1,4 @@ -# Copyright 2019 PyI40AAS Contributors +# Copyright 2020 PyI40AAS Contributors # # 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 diff --git a/aas/adapter/json/json_serialization.py b/aas/adapter/json/json_serialization.py index dbf5a628654d1d27ad277d8527ff6090c8f37c99..1a1efe8bb65db937a7de3c02ca016078dbd49776 100644 --- a/aas/adapter/json/json_serialization.py +++ b/aas/adapter/json/json_serialization.py @@ -1,4 +1,4 @@ -# Copyright 2019 PyI40AAS Contributors +# Copyright 2020 PyI40AAS Contributors # # 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 diff --git a/aas/adapter/xml/xml_serialization.py b/aas/adapter/xml/xml_serialization.py index bdbb4e458337065a77355620ad0836657ba4e0d5..821297693b28492967cf5f51a047f5ea2ae04f21 100644 --- a/aas/adapter/xml/xml_serialization.py +++ b/aas/adapter/xml/xml_serialization.py @@ -1,4 +1,4 @@ -# Copyright 2019 PyI40AAS Contributors +# Copyright 2020 PyI40AAS Contributors # # 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 diff --git a/aas/compliance_tool/cli.py b/aas/compliance_tool/cli.py index 0ff65a040d2ede85712ce4d49a902dd01082ea9f..6974eef37e3ad9d45371af470f44e4c83fa06284 100644 --- a/aas/compliance_tool/cli.py +++ b/aas/compliance_tool/cli.py @@ -1,4 +1,4 @@ -# Copyright 2019 PyI40AAS Contributors +# Copyright 2020 PyI40AAS Contributors # # 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 diff --git a/aas/compliance_tool/compliance_check_json.py b/aas/compliance_tool/compliance_check_json.py index d2a83711d5bea76da810a4b97a2ca5f6144f4780..c85a8327577b54bafe6d292a564b3e956bf31a30 100644 --- a/aas/compliance_tool/compliance_check_json.py +++ b/aas/compliance_tool/compliance_check_json.py @@ -1,4 +1,4 @@ -# Copyright 2019 PyI40AAS Contributors +# Copyright 2020 PyI40AAS Contributors # # 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 diff --git a/aas/compliance_tool/state_manager.py b/aas/compliance_tool/state_manager.py index 7bb55586fbaec27011cf7284c824f2c59974f5fa..fd2652bb658515c452457fd50348e5a4119286c8 100644 --- a/aas/compliance_tool/state_manager.py +++ b/aas/compliance_tool/state_manager.py @@ -1,4 +1,4 @@ -# Copyright 2019 PyI40AAS Contributors +# Copyright 2020 PyI40AAS Contributors # # 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 diff --git a/aas/examples/data/_helper.py b/aas/examples/data/_helper.py index 94080d1834a7a7b2214e5422afec7fa998f68885..0aec75fd1422de0794f836786d6c866626f4f9d1 100644 --- a/aas/examples/data/_helper.py +++ b/aas/examples/data/_helper.py @@ -1,4 +1,4 @@ -# Copyright 2019 PyI40AAS Contributors +# Copyright 2020 PyI40AAS Contributors # # 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 diff --git a/aas/examples/data/example_aas.py b/aas/examples/data/example_aas.py index 3463494b44410d0ae560140d53fd0343230b8795..745fa4b10a981c27c3b1094bd1b9153caacd28c0 100644 --- a/aas/examples/data/example_aas.py +++ b/aas/examples/data/example_aas.py @@ -1,4 +1,4 @@ -# Copyright 2019 PyI40AAS Contributors +# Copyright 2020 PyI40AAS Contributors # # 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 diff --git a/aas/examples/data/example_aas_mandatory_attributes.py b/aas/examples/data/example_aas_mandatory_attributes.py index 9f831f84fb1b10f09e4965cecfd84279c89fc3ec..7b51d249ae708ab1a39054fee6f68d7a505d4a8d 100644 --- a/aas/examples/data/example_aas_mandatory_attributes.py +++ b/aas/examples/data/example_aas_mandatory_attributes.py @@ -1,4 +1,4 @@ -# Copyright 2019 PyI40AAS Contributors +# Copyright 2020 PyI40AAS Contributors # # 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 diff --git a/aas/examples/data/example_aas_missing_attributes.py b/aas/examples/data/example_aas_missing_attributes.py index 057187ad3b17d7ca625b01661103d7af06905e73..abecd6e6f1d92c8a8574397f1ce9d69996379bc3 100644 --- a/aas/examples/data/example_aas_missing_attributes.py +++ b/aas/examples/data/example_aas_missing_attributes.py @@ -1,4 +1,4 @@ -# Copyright 2019 PyI40AAS Contributors +# Copyright 2020 PyI40AAS Contributors # # 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 diff --git a/aas/examples/data/example_concept_description.py b/aas/examples/data/example_concept_description.py index ccc07d6691f46a7e5dbd51a7bd4d4f3c8a44d0ca..4dd169cef232546fc2213cb0b3870cf9dd6b9536 100644 --- a/aas/examples/data/example_concept_description.py +++ b/aas/examples/data/example_concept_description.py @@ -1,4 +1,4 @@ -# Copyright 2019 PyI40AAS Contributors +# Copyright 2020 PyI40AAS Contributors # # 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 diff --git a/aas/examples/data/example_submodel_template.py b/aas/examples/data/example_submodel_template.py index 54d5bf2258a8c47efaca26ac80953e23291d87b1..5a3a9cd266a5f73f4e242bb3ed6b9133d95b54f0 100644 --- a/aas/examples/data/example_submodel_template.py +++ b/aas/examples/data/example_submodel_template.py @@ -1,4 +1,4 @@ -# Copyright 2019 PyI40AAS Contributors +# Copyright 2020 PyI40AAS Contributors # # 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 diff --git a/aas/model/aas.py b/aas/model/aas.py index 00c57f5862ba87326d7bc31cf574c7e021423a1a..6d83b94d98414921075b509d564355b546616b9a 100644 --- a/aas/model/aas.py +++ b/aas/model/aas.py @@ -1,4 +1,4 @@ -# Copyright 2019 PyI40AAS Contributors +# Copyright 2020 PyI40AAS Contributors # # 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 diff --git a/aas/model/base.py b/aas/model/base.py index 6aae9b5cca3c369443b89c4a3e40331933c04300..e791ba814a66ee14010a2e06a4aa36d1f96c5bdc 100644 --- a/aas/model/base.py +++ b/aas/model/base.py @@ -1,4 +1,4 @@ -# Copyright 2019 PyI40AAS Contributors +# Copyright 2020 PyI40AAS Contributors # # 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 diff --git a/aas/model/datatypes.py b/aas/model/datatypes.py index 4944205ff55947976f2da95a478deadaba50e944..72a201a7d7e71e9e25a6657e419972bd60b933b3 100644 --- a/aas/model/datatypes.py +++ b/aas/model/datatypes.py @@ -1,4 +1,4 @@ -# Copyright 2019 PyI40AAS Contributors +# Copyright 2020 PyI40AAS Contributors # # 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 diff --git a/aas/model/provider.py b/aas/model/provider.py index 3a3fd15097f252d831afbe748227de22fe239f6f..5f998ce1883e5386efa5252ddd8cca77c96be10a 100644 --- a/aas/model/provider.py +++ b/aas/model/provider.py @@ -1,4 +1,4 @@ -# Copyright 2019 PyI40AAS Contributors +# Copyright 2020 PyI40AAS Contributors # # 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 diff --git a/aas/model/submodel.py b/aas/model/submodel.py index 24510c6ffc35123bf2a1bec3b680b53e59cd3794..6e69162c763b5b56396a97922109f41886267d63 100644 --- a/aas/model/submodel.py +++ b/aas/model/submodel.py @@ -1,4 +1,4 @@ -# Copyright 2019 PyI40AAS Contributors +# Copyright 2020 PyI40AAS Contributors # # 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 diff --git a/aas/util/identification.py b/aas/util/identification.py index ff5648b0871e9d0869a7042f62c75895851b90aa..a1e01ab2417c55cc5b056f9d9dfc11746fc89228 100644 --- a/aas/util/identification.py +++ b/aas/util/identification.py @@ -1,4 +1,4 @@ -# Copyright 2019 PyI40AAS Contributors +# Copyright 2020 PyI40AAS Contributors # # 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 diff --git a/aas/util/traversal.py b/aas/util/traversal.py index cea419a1b80f992a0fdb3f0c885de5195f123e4d..9a5567381f27be63e948a8c151482bbf12e0284b 100644 --- a/aas/util/traversal.py +++ b/aas/util/traversal.py @@ -1,4 +1,4 @@ -# Copyright 2019 PyI40AAS Contributors +# Copyright 2020 PyI40AAS Contributors # # 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 diff --git a/etc/scripts/set_copyright_year.sh b/etc/scripts/set_copyright_year.sh new file mode 100755 index 0000000000000000000000000000000000000000..38850a6b734f2e9a651d9115ae13936545b4e9fc --- /dev/null +++ b/etc/scripts/set_copyright_year.sh @@ -0,0 +1,15 @@ +#!/usr/bin/env bash +# Usage: ./set_copyright_year.sh [PATHS] +# +# This is a small script for setting the correct copyright year +# for each given file (i.e. the year the file was last changed). +# Instead of file paths you can also specify directories, in which +# case the script will attempt to set the copyright year for all +# files in the given directories. Globbing is also possible. +# +# The script will check the first two lines for a copyright +# notice (in case the first line is a shebang). + +while read -rd $'\0' year file; do + sed -i "1,2s/^\(# Copyright \)[[:digit:]]\{4,\}/\1$year/" "$file" +done < <(git ls-files -z "$@" | xargs -0I{} git log -1 -z --format="%ad {}" --date="format:%Y" "{}") diff --git a/setup.py b/setup.py index 98a3eacfb228567ef47be4a032a956088a45e6fd..548f0b208d5f5fb2c1f2bab275b15692050e79b8 100755 --- a/setup.py +++ b/setup.py @@ -1,5 +1,5 @@ #!/usr/bin/env python3 -# Copyright 2019 PyI40AAS Contributors +# Copyright 2020 PyI40AAS Contributors # # 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 diff --git a/test/adapter/aasx/test_aasx.py b/test/adapter/aasx/test_aasx.py index 8d81894e0bae22a67e0adc9a02ffa69f0ba8a0be..75d81ec3cdc62ebb9fb55ebaa93e6c0c9fffa2b0 100644 --- a/test/adapter/aasx/test_aasx.py +++ b/test/adapter/aasx/test_aasx.py @@ -1,4 +1,4 @@ -# Copyright 2019 PyI40AAS Contributors +# Copyright 2020 PyI40AAS Contributors # # 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 diff --git a/test/adapter/json/test_json_deserialization.py b/test/adapter/json/test_json_deserialization.py index 13caee01b5898d1d91d885794f854fd6ed8cd7f6..e636eb0cc6b3809314f14ff7473495d7407a13df 100644 --- a/test/adapter/json/test_json_deserialization.py +++ b/test/adapter/json/test_json_deserialization.py @@ -1,4 +1,4 @@ -# Copyright 2019 PyI40AAS Contributors +# Copyright 2020 PyI40AAS Contributors # # 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 diff --git a/test/adapter/json/test_json_serialization.py b/test/adapter/json/test_json_serialization.py index 112a2b6d80e7e98ba89afac3eb0b43517c3653f4..ec841777f9ef168499cd590c1d7801eba56fdd1a 100644 --- a/test/adapter/json/test_json_serialization.py +++ b/test/adapter/json/test_json_serialization.py @@ -1,4 +1,4 @@ -# Copyright 2019 PyI40AAS Contributors +# Copyright 2020 PyI40AAS Contributors # # 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 diff --git a/test/adapter/json/test_json_serialization_deserialization.py b/test/adapter/json/test_json_serialization_deserialization.py index 980348bbec979c9b7b1ac6ef9b5ccfd18d29a64c..fc8e41fc1fd567fdaca66583030d0cd04649d22c 100644 --- a/test/adapter/json/test_json_serialization_deserialization.py +++ b/test/adapter/json/test_json_serialization_deserialization.py @@ -1,4 +1,4 @@ -# Copyright 2019 PyI40AAS Contributors +# Copyright 2020 PyI40AAS Contributors # # 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 diff --git a/test/adapter/test_couchdb.py b/test/adapter/test_couchdb.py index 5e262abdbb1ee5b7b6bee19792458aeac0b4c309..6b0a2a2ae8d47533e17bfda10d5e8d58c2fb11ed 100644 --- a/test/adapter/test_couchdb.py +++ b/test/adapter/test_couchdb.py @@ -1,4 +1,4 @@ -# Copyright 2019 PyI40AAS Contributors +# Copyright 2020 PyI40AAS Contributors # # 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 diff --git a/test/adapter/xml/test_xml_serialization.py b/test/adapter/xml/test_xml_serialization.py index 8b0676b5b603483127af5336dc9e50fd73b8e388..1360d53d46f35576d1785c31986199306302ed4e 100644 --- a/test/adapter/xml/test_xml_serialization.py +++ b/test/adapter/xml/test_xml_serialization.py @@ -1,4 +1,4 @@ -# Copyright 2019 PyI40AAS Contributors +# Copyright 2020 PyI40AAS Contributors # # 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 diff --git a/test/compliance_tool/test_aas_compliance_tool.py b/test/compliance_tool/test_aas_compliance_tool.py index 9f059918a1a14871117e0745b93f4a0ddd349aab..15eb61dfd4b5414651337c2f1b0fbcccf379ccbc 100644 --- a/test/compliance_tool/test_aas_compliance_tool.py +++ b/test/compliance_tool/test_aas_compliance_tool.py @@ -1,4 +1,4 @@ -# Copyright 2019 PyI40AAS Contributors +# Copyright 2020 PyI40AAS Contributors # # 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 diff --git a/test/compliance_tool/test_json.py b/test/compliance_tool/test_json.py index b46715e0b328f1a9641649c85f472059945ba013..d4067145b160b6f6da27c7f890668eecd3692039 100644 --- a/test/compliance_tool/test_json.py +++ b/test/compliance_tool/test_json.py @@ -1,4 +1,4 @@ -# Copyright 2019 PyI40AAS Contributors +# Copyright 2020 PyI40AAS Contributors # # 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 diff --git a/test/compliance_tool/test_state_manager.py b/test/compliance_tool/test_state_manager.py index 330694d4998a684de854a2b144622fe094a1c212..66dd65d97f6ca2011b84365512cac7acb98219ba 100644 --- a/test/compliance_tool/test_state_manager.py +++ b/test/compliance_tool/test_state_manager.py @@ -1,4 +1,4 @@ -# Copyright 2019 PyI40AAS Contributors +# Copyright 2020 PyI40AAS Contributors # # 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 diff --git a/test/examples/test_examples.py b/test/examples/test_examples.py index 2cd40b6a968770bf1d3413d70e33a0e357650ecb..a559f52322601c192060b0d30ec367e42a61a09d 100644 --- a/test/examples/test_examples.py +++ b/test/examples/test_examples.py @@ -1,4 +1,4 @@ -# Copyright 2019 PyI40AAS Contributors +# Copyright 2020 PyI40AAS Contributors # # 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 diff --git a/test/examples/test_helpers.py b/test/examples/test_helpers.py index 7ccaddde361db034d0e14e1507eaeb58ee4714ce..80aae4fc13c5db6cdab56c2c4e10910d5d116d0f 100644 --- a/test/examples/test_helpers.py +++ b/test/examples/test_helpers.py @@ -1,4 +1,4 @@ -# Copyright 2019 PyI40AAS Contributors +# Copyright 2020 PyI40AAS Contributors # # 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 diff --git a/test/examples/test_tutorials.py b/test/examples/test_tutorials.py index 3fa875bc192afa264680ee207071dbdea923207c..9291baa425ad4096a381fbfc105db1eb097c64d9 100644 --- a/test/examples/test_tutorials.py +++ b/test/examples/test_tutorials.py @@ -1,4 +1,4 @@ -# Copyright 2019 PyI40AAS Contributors +# Copyright 2020 PyI40AAS Contributors # # 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 diff --git a/test/model/test_base.py b/test/model/test_base.py index 0254bd3d70cc08c0b1e2481b597175727063d6b7..d5bc7806ab68040286f03dbb03efbab5ed5c5fe5 100644 --- a/test/model/test_base.py +++ b/test/model/test_base.py @@ -1,4 +1,4 @@ -# Copyright 2019 PyI40AAS Contributors +# Copyright 2020 PyI40AAS Contributors # # 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 diff --git a/test/model/test_concept.py b/test/model/test_concept.py index ddfab4dcc61f7d2f216090e3b721db45852a25ed..c1406d69019cf34c8b1eba37af145d145a3502b6 100644 --- a/test/model/test_concept.py +++ b/test/model/test_concept.py @@ -1,4 +1,4 @@ -# Copyright 2019 PyI40AAS Contributors +# Copyright 2020 PyI40AAS Contributors # # 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 diff --git a/test/model/test_datatypes.py b/test/model/test_datatypes.py index c09b4df46f01787c690beb7f8200feee16452d3e..f2ebbb1cf7df6f3cf2e22cb5943801d183487282 100644 --- a/test/model/test_datatypes.py +++ b/test/model/test_datatypes.py @@ -1,4 +1,4 @@ -# Copyright 2019 PyI40AAS Contributors +# Copyright 2020 PyI40AAS Contributors # # 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 diff --git a/test/model/test_provider.py b/test/model/test_provider.py index bbcb527afa180340f3e3d3790a44c0be0d46c959..e0a1d0d04221158bdb47835d24d721d9ab44c240 100644 --- a/test/model/test_provider.py +++ b/test/model/test_provider.py @@ -1,4 +1,4 @@ -# Copyright 2019 PyI40AAS Contributors +# Copyright 2020 PyI40AAS Contributors # # 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 diff --git a/test/model/test_submodel.py b/test/model/test_submodel.py index 4e26ed4b1339b42affe26d93241d7f9673d7d3e7..e2caa40d3767cbb1542cfc63ee4da8c7940c5292 100644 --- a/test/model/test_submodel.py +++ b/test/model/test_submodel.py @@ -1,4 +1,4 @@ -# Copyright 2019 PyI40AAS Contributors +# Copyright 2020 PyI40AAS Contributors # # 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 diff --git a/test/util/test_identification.py b/test/util/test_identification.py index 28c2fc117cf60dac48df588aa3d372465253e495..53045a7a9665ef6f7935243a910b688886b3e6fa 100644 --- a/test/util/test_identification.py +++ b/test/util/test_identification.py @@ -1,4 +1,4 @@ -# Copyright 2019 PyI40AAS Contributors +# Copyright 2020 PyI40AAS Contributors # # 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