]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Normalize all file headers to have consistent format
authorFederico Caselli <cfederico87@gmail.com>
Thu, 30 Nov 2023 21:16:11 +0000 (22:16 +0100)
committerFederico Caselli <cfederico87@gmail.com>
Thu, 30 Nov 2023 22:09:09 +0000 (23:09 +0100)
Change-Id: Idfa5f699280990aed3f6e46225d4202539d9e900

129 files changed:
lib/sqlalchemy/__init__.py
lib/sqlalchemy/cyextension/__init__.py
lib/sqlalchemy/cyextension/collections.pyx
lib/sqlalchemy/cyextension/immutabledict.pxd
lib/sqlalchemy/cyextension/immutabledict.pyx
lib/sqlalchemy/cyextension/processors.pyx
lib/sqlalchemy/cyextension/resultproxy.pyx
lib/sqlalchemy/cyextension/util.pyx
lib/sqlalchemy/dialects/_typing.py
lib/sqlalchemy/dialects/mssql/__init__.py
lib/sqlalchemy/dialects/mssql/aioodbc.py
lib/sqlalchemy/dialects/mssql/base.py
lib/sqlalchemy/dialects/mssql/information_schema.py
lib/sqlalchemy/dialects/mssql/json.py
lib/sqlalchemy/dialects/mssql/provision.py
lib/sqlalchemy/dialects/mssql/pymssql.py
lib/sqlalchemy/dialects/mssql/pyodbc.py
lib/sqlalchemy/dialects/mysql/__init__.py
lib/sqlalchemy/dialects/mysql/aiomysql.py
lib/sqlalchemy/dialects/mysql/asyncmy.py
lib/sqlalchemy/dialects/mysql/base.py
lib/sqlalchemy/dialects/mysql/cymysql.py
lib/sqlalchemy/dialects/mysql/dml.py
lib/sqlalchemy/dialects/mysql/enumerated.py
lib/sqlalchemy/dialects/mysql/expression.py
lib/sqlalchemy/dialects/mysql/json.py
lib/sqlalchemy/dialects/mysql/mariadb.py
lib/sqlalchemy/dialects/mysql/mariadbconnector.py
lib/sqlalchemy/dialects/mysql/mysqlconnector.py
lib/sqlalchemy/dialects/mysql/mysqldb.py
lib/sqlalchemy/dialects/mysql/provision.py
lib/sqlalchemy/dialects/mysql/pymysql.py
lib/sqlalchemy/dialects/mysql/pyodbc.py
lib/sqlalchemy/dialects/mysql/reflection.py
lib/sqlalchemy/dialects/mysql/reserved_words.py
lib/sqlalchemy/dialects/mysql/types.py
lib/sqlalchemy/dialects/oracle/__init__.py
lib/sqlalchemy/dialects/oracle/base.py
lib/sqlalchemy/dialects/oracle/cx_oracle.py
lib/sqlalchemy/dialects/oracle/dictionary.py
lib/sqlalchemy/dialects/oracle/oracledb.py
lib/sqlalchemy/dialects/oracle/provision.py
lib/sqlalchemy/dialects/oracle/types.py
lib/sqlalchemy/dialects/postgresql/__init__.py
lib/sqlalchemy/dialects/postgresql/_psycopg_common.py
lib/sqlalchemy/dialects/postgresql/array.py
lib/sqlalchemy/dialects/postgresql/asyncpg.py
lib/sqlalchemy/dialects/postgresql/base.py
lib/sqlalchemy/dialects/postgresql/dml.py
lib/sqlalchemy/dialects/postgresql/ext.py
lib/sqlalchemy/dialects/postgresql/hstore.py
lib/sqlalchemy/dialects/postgresql/json.py
lib/sqlalchemy/dialects/postgresql/named_types.py
lib/sqlalchemy/dialects/postgresql/operators.py
lib/sqlalchemy/dialects/postgresql/pg8000.py
lib/sqlalchemy/dialects/postgresql/pg_catalog.py
lib/sqlalchemy/dialects/postgresql/provision.py
lib/sqlalchemy/dialects/postgresql/psycopg.py
lib/sqlalchemy/dialects/postgresql/psycopg2.py
lib/sqlalchemy/dialects/postgresql/psycopg2cffi.py
lib/sqlalchemy/dialects/postgresql/ranges.py
lib/sqlalchemy/dialects/postgresql/types.py
lib/sqlalchemy/dialects/sqlite/__init__.py
lib/sqlalchemy/dialects/sqlite/aiosqlite.py
lib/sqlalchemy/dialects/sqlite/base.py
lib/sqlalchemy/dialects/sqlite/dml.py
lib/sqlalchemy/dialects/sqlite/json.py
lib/sqlalchemy/dialects/sqlite/provision.py
lib/sqlalchemy/dialects/sqlite/pysqlcipher.py
lib/sqlalchemy/dialects/sqlite/pysqlite.py
lib/sqlalchemy/engine/_py_processors.py
lib/sqlalchemy/engine/_py_row.py
lib/sqlalchemy/engine/_py_util.py
lib/sqlalchemy/engine/characteristics.py
lib/sqlalchemy/engine/events.py
lib/sqlalchemy/engine/processors.py
lib/sqlalchemy/events.py
lib/sqlalchemy/exc.py
lib/sqlalchemy/ext/baked.py
lib/sqlalchemy/ext/indexable.py
lib/sqlalchemy/ext/mypy/__init__.py
lib/sqlalchemy/ext/mypy/apply.py
lib/sqlalchemy/ext/mypy/decl_class.py
lib/sqlalchemy/ext/mypy/infer.py
lib/sqlalchemy/ext/mypy/names.py
lib/sqlalchemy/future/__init__.py
lib/sqlalchemy/future/engine.py
lib/sqlalchemy/inspection.py
lib/sqlalchemy/log.py
lib/sqlalchemy/orm/_typing.py
lib/sqlalchemy/orm/clsregistry.py
lib/sqlalchemy/orm/decl_api.py
lib/sqlalchemy/orm/decl_base.py
lib/sqlalchemy/orm/mapped_collection.py
lib/sqlalchemy/orm/strategy_options.py
lib/sqlalchemy/pool/__init__.py
lib/sqlalchemy/pool/base.py
lib/sqlalchemy/pool/events.py
lib/sqlalchemy/pool/impl.py
lib/sqlalchemy/sql/_orm_types.py
lib/sqlalchemy/sql/_typing.py
lib/sqlalchemy/sql/events.py
lib/sqlalchemy/sql/naming.py
lib/sqlalchemy/sql/type_api.py
lib/sqlalchemy/testing/plugin/__init__.py
lib/sqlalchemy/testing/plugin/bootstrap.py
lib/sqlalchemy/testing/plugin/plugin_base.py
lib/sqlalchemy/testing/plugin/pytestplugin.py
lib/sqlalchemy/testing/provision.py
lib/sqlalchemy/testing/suite/__init__.py
lib/sqlalchemy/testing/suite/test_cte.py
lib/sqlalchemy/testing/suite/test_ddl.py
lib/sqlalchemy/testing/suite/test_deprecations.py
lib/sqlalchemy/testing/suite/test_dialect.py
lib/sqlalchemy/testing/suite/test_insert.py
lib/sqlalchemy/testing/suite/test_reflection.py
lib/sqlalchemy/testing/suite/test_results.py
lib/sqlalchemy/testing/suite/test_rowcount.py
lib/sqlalchemy/testing/suite/test_select.py
lib/sqlalchemy/testing/suite/test_sequence.py
lib/sqlalchemy/testing/suite/test_types.py
lib/sqlalchemy/testing/suite/test_unicode_ddl.py
lib/sqlalchemy/testing/suite/test_update_delete.py
lib/sqlalchemy/util/_has_cy.py
lib/sqlalchemy/util/preloaded.py
lib/sqlalchemy/util/tool_support.py
lib/sqlalchemy/util/typing.py
tools/normalize_file_headers.py [new file with mode: 0644]
tox.ini

index 32dcac5f5b0138b4709513908901438ecb9f935c..2300c2d409a47b1b7c0b7280ba178e4c67960c64 100644 (file)
@@ -1,4 +1,4 @@
-# sqlalchemy/__init__.py
+# __init__.py
 # Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
 # <see AUTHORS file>
 #
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..67aa690e02f8b53bedb34c878b3f283823a1127d 100644 (file)
@@ -0,0 +1,6 @@
+# cyextension/__init__.py
+# Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
+# <see AUTHORS file>
+#
+# This module is part of SQLAlchemy and is released under
+# the MIT License: https://www.opensource.org/licenses/mit-license.php
index 4d134ccf3022713047b42af3908694a1bc91a6d1..a45b5d904334e58b75c490d6c8f2da45f23bc599 100644 (file)
@@ -1,3 +1,9 @@
+# cyextension/collections.pyx
+# Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
+# <see AUTHORS file>
+#
+# This module is part of SQLAlchemy and is released under
+# the MIT License: https://www.opensource.org/licenses/mit-license.php
 cimport cython
 from cpython.long cimport PyLong_FromLongLong
 from cpython.set cimport PySet_Add
index fe7ad6a81a8994f3b3c769492a32c92f25362ec8..d733d48affdbe56aa873b1b91aa97cfad3ae8285 100644 (file)
@@ -1,2 +1,8 @@
+# cyextension/immutabledict.pxd
+# Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
+# <see AUTHORS file>
+#
+# This module is part of SQLAlchemy and is released under
+# the MIT License: https://www.opensource.org/licenses/mit-license.php
 cdef class immutabledict(dict):
     pass
index 100287b380de32b391ff136420588b9974d6a029..d43d465febee7707183f3d46fccaa32c1ba93e88 100644 (file)
@@ -1,3 +1,9 @@
+# cyextension/immutabledict.pyx
+# Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
+# <see AUTHORS file>
+#
+# This module is part of SQLAlchemy and is released under
+# the MIT License: https://www.opensource.org/licenses/mit-license.php
 from cpython.dict cimport PyDict_New, PyDict_Update, PyDict_Size
 
 
index b0ad865c54ad6366b6f858655f338661de6ae731..03d8411c3366c93410be29d409e135298fe57b64 100644 (file)
@@ -1,3 +1,9 @@
+# cyextension/processors.pyx
+# Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
+# <see AUTHORS file>
+#
+# This module is part of SQLAlchemy and is released under
+# the MIT License: https://www.opensource.org/licenses/mit-license.php
 import datetime
 from datetime import datetime as datetime_cls
 from datetime import time as time_cls
index 0d7eeece93cdc62bf1fab31c07eabc8a9b4f6d18..e81df51f38d366a9c0fb8dd080c0684450f77e46 100644 (file)
@@ -1,3 +1,9 @@
+# cyextension/resultproxy.pyx
+# Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
+# <see AUTHORS file>
+#
+# This module is part of SQLAlchemy and is released under
+# the MIT License: https://www.opensource.org/licenses/mit-license.php
 import operator
 
 cdef class BaseRow:
index 92e91a6edc1529eb33c9ca81267faab3af7f4ca6..63daddf4640ed0f8cf48fdb7bffd20d991d1564e 100644 (file)
@@ -1,3 +1,9 @@
+# cyextension/util.pyx
+# Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
+# <see AUTHORS file>
+#
+# This module is part of SQLAlchemy and is released under
+# the MIT License: https://www.opensource.org/licenses/mit-license.php
 from collections.abc import Mapping
 
 from sqlalchemy import exc
index 932742bd045818888ad4a649e046735699a0916d..9d2500e48e804884c2db435fd5bb2da1fc0e8c0f 100644 (file)
@@ -1,3 +1,9 @@
+# dialects/_typing.py
+# Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
+# <see AUTHORS file>
+#
+# This module is part of SQLAlchemy and is released under
+# the MIT License: https://www.opensource.org/licenses/mit-license.php
 from __future__ import annotations
 
 from typing import Any
index 6bbb934157ad3aea063e777a7055282501f0ddbc..c601cba1f30e141fa02b3863aee94e0ba64dd9c7 100644 (file)
@@ -1,4 +1,4 @@
-# mssql/__init__.py
+# dialects/mssql/__init__.py
 # Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
 # <see AUTHORS file>
 #
index 23c2790f29d7a02d5bf4bfb2edd5af40c01ad606..e9d22155a746b1afaefe5ace088340c7a245847e 100644 (file)
@@ -1,4 +1,4 @@
-# mssql/aioodbc.py
+# dialects/mssql/aioodbc.py
 # Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
 # <see AUTHORS file>
 #
index 80734d60619ff4db64cb75cbd21c6fc69cc4bae3..952a7a1f6904d27647905fe1a18f1cbf79ff2f7f 100644 (file)
@@ -1,4 +1,4 @@
-# mssql/base.py
+# dialects/mssql/base.py
 # Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
 # <see AUTHORS file>
 #
index e770313f9379e93faf1cdcc0ae48a6e2e1cebf0d..2c30c55b6e079213dac807c33bea1539a4276f0f 100644 (file)
@@ -1,4 +1,4 @@
-# mssql/information_schema.py
+# dialects/mssql/information_schema.py
 # Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
 # <see AUTHORS file>
 #
index 815b5d2ff86f4e1713b73b007c8628ae5bca1c65..f79d6e3ed5e7b1de7da22215562c235a1fd77752 100644 (file)
@@ -1,3 +1,9 @@
+# dialects/mssql/json.py
+# Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
+# <see AUTHORS file>
+#
+# This module is part of SQLAlchemy and is released under
+# the MIT License: https://www.opensource.org/licenses/mit-license.php
 # mypy: ignore-errors
 
 from ... import types as sqltypes
index 75e15ce4dc4806b5118c1e24b1fe20310e118996..1913c95717a76aba51ff4c0bcb4aaed37604af80 100644 (file)
@@ -1,3 +1,9 @@
+# dialects/mssql/provision.py
+# Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
+# <see AUTHORS file>
+#
+# This module is part of SQLAlchemy and is released under
+# the MIT License: https://www.opensource.org/licenses/mit-license.php
 # mypy: ignore-errors
 
 from sqlalchemy import inspect
index 3823db91b3aac65e7b4d305930b5568311f5f191..5351be1131ea60202dc954cbd470a9ba8a01c030 100644 (file)
@@ -1,4 +1,4 @@
-# mssql/pymssql.py
+# dialects/mssql/pymssql.py
 # Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
 # <see AUTHORS file>
 #
index a8f12fd984c166d7ab4a383baf343c43ea84df0a..17c4e4c830de7a660a85c8a914ece438a1e45d85 100644 (file)
@@ -1,4 +1,4 @@
-# mssql/pyodbc.py
+# dialects/mssql/pyodbc.py
 # Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
 # <see AUTHORS file>
 #
index b6af683b5e07470d554631f969cb446c31a98b28..49d859b418db904dc1089a7f2b82f25efe2a48ce 100644 (file)
@@ -1,4 +1,4 @@
-# mysql/__init__.py
+# dialects/mysql/__init__.py
 # Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
 # <see AUTHORS file>
 #
index 41f4c09e9329a385422c3837d4ae83ea5427b338..978950b8780c79139554d72aacf37837411ac088 100644 (file)
@@ -1,4 +1,4 @@
-# mysql/aiomysql.py
+# dialects/mysql/aiomysql.py
 # Copyright (C) 2005-2023 the SQLAlchemy authors and contributors <see AUTHORS
 # file>
 #
index c5caf79d3ab2c64691cf89396664c379c9380da2..3029626fd5f17b141094141525e74272d74394a9 100644 (file)
@@ -1,4 +1,4 @@
-# mysql/asyncmy.py
+# dialects/mysql/asyncmy.py
 # Copyright (C) 2005-2023 the SQLAlchemy authors and contributors <see AUTHORS
 # file>
 #
index 92f90774fbe2c343ad973d0b45e8bd2df49d6ff7..58d7235e017449f5f08e68f779b5b5789711ef30 100644 (file)
@@ -1,4 +1,4 @@
-# mysql/base.py
+# dialects/mysql/base.py
 # Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
 # <see AUTHORS file>
 #
index ed3c60694aae40b598a41c7bd8cb0932d4506713..a96a71eb4c3608b35f37a2657df90b634bb04c53 100644 (file)
@@ -1,4 +1,4 @@
-# mysql/cymysql.py
+# dialects/mysql/cymysql.py
 # Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
 # <see AUTHORS file>
 #
index dfa39f6e086cbff05a14e983b3477701f7a39862..aba60103f7fe44e8c4246051811d51b4ccaee5b8 100644 (file)
@@ -1,4 +1,4 @@
-# mysql/dml.py
+# dialects/mysql/dml.py
 # Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
 # <see AUTHORS file>
 #
index 2e1d3c3da9fa7a44e5c348a254d13787436d14b3..a70d499e4368b5632f03a2e59d846a7dfa65e543 100644 (file)
@@ -1,4 +1,4 @@
-# mysql/enumerated.py
+# dialects/mysql/enumerated.py
 # Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
 # <see AUTHORS file>
 #
index c5bd0be02b0d9d7a44d42e82dba3a43af24ff137..0c41aeb727b322d3aa6a26226461a974f2e10a6b 100644 (file)
@@ -1,3 +1,4 @@
+# dialects/mysql/expression.py
 # Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
 # <see AUTHORS file>
 #
index 66fcb714d540e75008345cf07a79e289642954b4..8359e4d36ad29f136af9e3735eeb6e42c8446693 100644 (file)
@@ -1,4 +1,4 @@
-# mysql/json.py
+# dialects/mysql/json.py
 # Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
 # <see AUTHORS file>
 #
index a6ee5dfac93f7d0868f51137d4bd42e610d3b773..17f858184fcbc2027085b61114d1dcc67c1e8668 100644 (file)
@@ -1,4 +1,4 @@
-# mysql/mariadb.py
+# dialects/mysql/mariadb.py
 # Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
 # <see AUTHORS file>
 #
index 9730c9b4da354b6c3968866cc04d134fe744217a..3ee9c1e0053721c46e6a3db68b14dcf3841ba40a 100644 (file)
@@ -1,4 +1,4 @@
-# mysql/mariadbconnector.py
+# dialects/mysql/mariadbconnector.py
 # Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
 # <see AUTHORS file>
 #
index fc90c65d2ad4dc9c283116e2bbe68eae4aeb3cdd..732545301642f302612b63b28ea2eee7972c840b 100644 (file)
@@ -1,4 +1,4 @@
-# mysql/mysqlconnector.py
+# dialects/mysql/mysqlconnector.py
 # Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
 # <see AUTHORS file>
 #
index d1cf835c54ea659419eb53be52fdc4e7d07ecc53..d42cdc9b0fd8bdd41eedc3819959fb7bb9950f28 100644 (file)
@@ -1,4 +1,4 @@
-# mysql/mysqldb.py
+# dialects/mysql/mysqldb.py
 # Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
 # <see AUTHORS file>
 #
index b7faf771214a93a454703800a0e61b8f0f9a3cf3..b3584ee5c7e43b43412ddb5bac6918b9b3a34b29 100644 (file)
@@ -1,3 +1,9 @@
+# dialects/mysql/provision.py
+# Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
+# <see AUTHORS file>
+#
+# This module is part of SQLAlchemy and is released under
+# the MIT License: https://www.opensource.org/licenses/mit-license.php
 # mypy: ignore-errors
 
 from ... import exc
index ddb99542f8d809633df74904684fc7cef3bfaa1c..6e87173be97109492709e7234437e52fa7e99602 100644 (file)
@@ -1,4 +1,4 @@
-# mysql/pymysql.py
+# dialects/mysql/pymysql.py
 # Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
 # <see AUTHORS file>
 #
index e4b11778afc603c5f58f57df0388affb8b1d65a6..87be2827b50912f3d2364ea6ff307c9a65614cbf 100644 (file)
@@ -1,4 +1,4 @@
-# mysql/pyodbc.py
+# dialects/mysql/pyodbc.py
 # Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
 # <see AUTHORS file>
 #
index c4909fe319e0dddf60340608fa789fec0283d02c..d678bc9f4a6dcc87247b7886efd844e3d45e6878 100644 (file)
@@ -1,4 +1,4 @@
-# mysql/reflection.py
+# dialects/mysql/reflection.py
 # Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
 # <see AUTHORS file>
 #
index 9f3436e63798e51f69e43dd9892579704f4e607c..b092428cf32239bc3289da8cb58397275eadf2b6 100644 (file)
@@ -1,4 +1,4 @@
-# mysql/reserved_words.py
+# dialects/mysql/reserved_words.py
 # Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
 # <see AUTHORS file>
 #
index aa1de1b69926c2a49ba137054cff7e122d1a4191..3fc96e61076e4a8c3a01b9ed81fcc3950eecc47c 100644 (file)
@@ -1,4 +1,4 @@
-# mysql/types.py
+# dialects/mysql/types.py
 # Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
 # <see AUTHORS file>
 #
index 46a5d0a2051ab244f67d42c26f665c6d4a7129d1..49464d6de7144953ec60a8868c4d5b78325bc4df 100644 (file)
@@ -1,4 +1,4 @@
-# oracle/__init__.py
+# dialects/oracle/__init__.py
 # Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
 # <see AUTHORS file>
 #
index d993ef2692790f08e686efe92181913e7b477f99..10dd69e99df4e83e10dab96426025242314e32fe 100644 (file)
@@ -1,4 +1,4 @@
-# oracle/base.py
+# dialects/oracle/base.py
 # Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
 # <see AUTHORS file>
 #
index c595b56c5620ecd10d1c8879370a0b199b51ff78..95b7abe3b87d7452db95548f0f216e7369c7b66c 100644 (file)
@@ -1,3 +1,4 @@
+# dialects/oracle/cx_oracle.py
 # Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
 # <see AUTHORS file>
 #
index fdf47ef31ed636298586ebba846b073e8b87ef23..5d4056ad2af18254c0c17221536627cb38e2d38d 100644 (file)
@@ -1,3 +1,4 @@
+# dialects/oracle/dictionary.py
 # Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
 # <see AUTHORS file>
 #
index 7defbc9f0643e8a80e32f4c69d7c6b4a2508e256..c4e2b1ffffd5da2e4713e2a6cd48419029337780 100644 (file)
@@ -1,3 +1,4 @@
+# dialects/oracle/oracledb.py
 # Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
 # <see AUTHORS file>
 #
index c8599e8e2254d61d3a0b67757b7b20f0ca9c2869..c9100192e17bd27afcfeec3f7c893bcfe0be2c8d 100644 (file)
@@ -1,3 +1,9 @@
+# dialects/oracle/provision.py
+# Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
+# <see AUTHORS file>
+#
+# This module is part of SQLAlchemy and is released under
+# the MIT License: https://www.opensource.org/licenses/mit-license.php
 # mypy: ignore-errors
 
 from ... import create_engine
index 4f82c43c6992729339eb04f7a08b2b07b6b96f23..bc9e563ff7530a008cf20704859d8ee4306bf6cd 100644 (file)
@@ -1,3 +1,4 @@
+# dialects/oracle/types.py
 # Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
 # <see AUTHORS file>
 #
index c3ed7c1fc00e668365691548c9acfac8c0ff71e8..5e327a6eefe76005aaa6745aec1e8cebd1f7d7e3 100644 (file)
@@ -1,4 +1,4 @@
-# postgresql/__init__.py
+# dialects/postgresql/__init__.py
 # Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
 # <see AUTHORS file>
 #
index dfb25a5689006642d257ad6dac789c7e46989e92..95f549dc68f5b815ff9c2e2cbc73d5f30fc23900 100644 (file)
@@ -1,3 +1,4 @@
+# dialects/postgresql/_psycopg_common.py
 # Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
 # <see AUTHORS file>
 #
index 3496ed6b63666676684972f272e49743267acd13..5c677059b753dd62ab672382afa0fda72f6b12e6 100644 (file)
@@ -1,4 +1,4 @@
-# postgresql/array.py
+# dialects/postgresql/array.py
 # Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
 # <see AUTHORS file>
 #
index d57c94a170f9c3d085be8cc4e8ba9a473b808b27..ec0017a4493066b52c6dc2d5de4eb839cf464e57 100644 (file)
@@ -1,4 +1,4 @@
-# postgresql/asyncpg.py
+# dialects/postgresql/asyncpg.py
 # Copyright (C) 2005-2023 the SQLAlchemy authors and contributors <see AUTHORS
 # file>
 #
index 0aec40ea97ff8d4705afd200e89bec2125c0bcce..ea7ac156fe1b26cacb6d84e33a126a1938fc779a 100644 (file)
@@ -1,4 +1,4 @@
-# postgresql/base.py
+# dialects/postgresql/base.py
 # Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
 # <see AUTHORS file>
 #
index dee7af3311e24e18d347da1633a48872bbffe17c..26300c27de3ebe14cd41a8b7a4d21c93c1200109 100644 (file)
@@ -1,4 +1,4 @@
-# postgresql/dml.py
+# dialects/postgresql/dml.py
 # Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
 # <see AUTHORS file>
 #
index ad1267750bb61d7aa28ea742b55e85e04ef89e92..22815d9fd64f205eb04f441c438c1afda45674e8 100644 (file)
@@ -1,4 +1,4 @@
-# postgresql/ext.py
+# dialects/postgresql/ext.py
 # Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
 # <see AUTHORS file>
 #
index 83c4932a6ea71020b81ba62b714c0a0e8e0094c2..0ef548e7948a124b421ffdff522c9d7c2abaef0e 100644 (file)
@@ -1,4 +1,4 @@
-# postgresql/hstore.py
+# dialects/postgresql/hstore.py
 # Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
 # <see AUTHORS file>
 #
index ee56a74504842e3bc8029d68172fbc8ed064a224..a0f1814a7a8327cfb52fbd8b948e2898e6e29ccb 100644 (file)
@@ -1,4 +1,4 @@
-# postgresql/json.py
+# dialects/postgresql/json.py
 # Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
 # <see AUTHORS file>
 #
index 19994d4b99fe11e8af419bec484e4146dde4afb7..26d690ccd305547402c95c3c85c95b9a4c22041b 100644 (file)
@@ -1,4 +1,4 @@
-# postgresql/named_types.py
+# dialects/postgresql/named_types.py
 # Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
 # <see AUTHORS file>
 #
index f393451c6e1c92aa3c4e7adcf85c90b900da2a54..a712022bcb7a48142d14395d03eea62ce71d7c26 100644 (file)
@@ -1,4 +1,4 @@
-# postgresql/operators.py
+# dialects/postgresql/operators.py
 # Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
 # <see AUTHORS file>
 #
index c9829ac68130883f5526187807620d3ad2609e83..d0de5cd8947c936e95bf11c7dc570792aa35cd9e 100644 (file)
@@ -1,4 +1,4 @@
-# postgresql/pg8000.py
+# dialects/postgresql/pg8000.py
 # Copyright (C) 2005-2023 the SQLAlchemy authors and contributors <see AUTHORS
 # file>
 #
index fa4b30f03f41d90adf0a7780ada45ae7abf6be4f..25bd6bb99d9864a5f5aff3a2233a24f30a8cf756 100644 (file)
@@ -1,5 +1,5 @@
-# postgresql/pg_catalog.py
-# Copyright (C) 2005-2021 the SQLAlchemy authors and contributors
+# dialects/postgresql/pg_catalog.py
+# Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
 # <see AUTHORS file>
 #
 # This module is part of SQLAlchemy and is released under
index 87f1c9a4ceadc4318238e01df237bbf6508c393b..9fafaed9baa6c6a15b279ae64ea72d58d07d8a7a 100644 (file)
@@ -1,3 +1,9 @@
+# dialects/postgresql/provision.py
+# Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
+# <see AUTHORS file>
+#
+# This module is part of SQLAlchemy and is released under
+# the MIT License: https://www.opensource.org/licenses/mit-license.php
 # mypy: ignore-errors
 
 import time
index 485687638050bc33c2075cead3bb6275b643b696..743d0388809befd32e8a3675a8bb2a7655cf2840 100644 (file)
@@ -1,4 +1,4 @@
-# postgresql/psycopg2.py
+# dialects/postgresql/psycopg.py
 # Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
 # <see AUTHORS file>
 #
index 2719f3dc5e53fb7ee3b5078358c10d547429b18a..ef960c297d0d6182606efaa153031ba6c974a9cf 100644 (file)
@@ -1,4 +1,4 @@
-# postgresql/psycopg2.py
+# dialects/postgresql/psycopg2.py
 # Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
 # <see AUTHORS file>
 #
index 211432c6dc7bf1f18e67a7e8b3cc74426b847f45..df8675bf8641751c90adbb5f9a6f9b5455472cfe 100644 (file)
@@ -1,4 +1,4 @@
-# testing/engines.py
+# dialects/postgresql/psycopg2cffi.py
 # Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
 # <see AUTHORS file>
 #
index f1c29897d013a371431868dd187266900d8e98aa..ede52634fe8b78c05f49fc96ca872cbc32d1e2a5 100644 (file)
@@ -1,3 +1,4 @@
+# dialects/postgresql/ranges.py
 # Copyright (C) 2013-2023 the SQLAlchemy authors and contributors
 # <see AUTHORS file>
 #
index 2cac5d816dd75fb35eefb4d392d279d63bee370d..75abab8384ab45f10b0665d9f9451984cd62041f 100644 (file)
@@ -1,3 +1,4 @@
+# dialects/postgresql/types.py
 # Copyright (C) 2013-2023 the SQLAlchemy authors and contributors
 # <see AUTHORS file>
 #
index 56bca47faebf8d0decfc5c66488ef2b68c9c1aee..18edf67f109183f1e07bbb39e545b51f6d975e49 100644 (file)
@@ -1,4 +1,4 @@
-# sqlite/__init__.py
+# dialects/sqlite/__init__.py
 # Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
 # <see AUTHORS file>
 #
index 41e406164e3f1257a10866f386aae1020db0bc62..7eccf5fb174e5bc0b779a561afd1f0c1976b0e7b 100644 (file)
@@ -1,4 +1,4 @@
-# sqlite/aiosqlite.py
+# dialects/sqlite/aiosqlite.py
 # Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
 # <see AUTHORS file>
 #
index d4eb3bca41b36203de6de0bbb022d89e46e47a97..1052c3d4d3d11ced023f6a955fd3166148ab96e4 100644 (file)
@@ -1,4 +1,4 @@
-# sqlite/base.py
+# dialects/sqlite/base.py
 # Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
 # <see AUTHORS file>
 #
index ec428f5b1722fd4c7886770162c1a1266c6930de..007502e9153efe5b0ea3b6714bd1e25dd5bae290 100644 (file)
@@ -1,4 +1,4 @@
-# sqlite/dml.py
+# dialects/sqlite/dml.py
 # Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
 # <see AUTHORS file>
 #
index 69df3171c22ad3ab0667dfc248fc31a81cd099d8..6a8f374f944326a9edcc4a0b0e48ba91e7462c0b 100644 (file)
@@ -1,3 +1,9 @@
+# dialects/sqlite/json.py
+# Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
+# <see AUTHORS file>
+#
+# This module is part of SQLAlchemy and is released under
+# the MIT License: https://www.opensource.org/licenses/mit-license.php
 # mypy: ignore-errors
 
 from ... import types as sqltypes
index 2ed8253ab473283bdfbf4ac2c1205194615d3070..397ef10088fe1570cedf3ee03b2b684a98d1f59c 100644 (file)
@@ -1,3 +1,9 @@
+# dialects/sqlite/provision.py
+# Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
+# <see AUTHORS file>
+#
+# This module is part of SQLAlchemy and is released under
+# the MIT License: https://www.opensource.org/licenses/mit-license.php
 # mypy: ignore-errors
 
 import os
index 28b900ea53ddba4d019484ca7810f32a3fc6a5e8..df8d7c5d83ed8cec10e5de37521ab17c8a6471c4 100644 (file)
@@ -1,4 +1,4 @@
-# sqlite/pysqlcipher.py
+# dialects/sqlite/pysqlcipher.py
 # Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
 # <see AUTHORS file>
 #
index 5925b405cf8ec578806db671909d53fe49951a5b..0d80446eba60e3bb45341884e2a8fd86d0db16e9 100644 (file)
@@ -1,4 +1,4 @@
-# sqlite/pysqlite.py
+# dialects/sqlite/pysqlite.py
 # Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
 # <see AUTHORS file>
 #
index 1cc5e8dea40c703b12f089cf7d56f04847912a17..bedfaeedfba7673911203e59991cb99d2ef30dab 100644 (file)
@@ -1,4 +1,4 @@
-# sqlalchemy/processors.py
+# engine/_py_processors.py
 # Copyright (C) 2010-2023 the SQLAlchemy authors and contributors
 # <see AUTHORS file>
 # Copyright (C) 2010 Gaetan de Menten gdementen@gmail.com
index 3358abd7848cb91866a9822b4b139aa55beb1c33..50705a76550f2ed061824ee5a6debb9cfd510638 100644 (file)
@@ -1,3 +1,9 @@
+# engine/_py_row.py
+# Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
+# <see AUTHORS file>
+#
+# This module is part of SQLAlchemy and is released under
+# the MIT License: https://www.opensource.org/licenses/mit-license.php
 from __future__ import annotations
 
 import operator
index 538c075a2b51b21932006a997e80a35659e72447..2ef9d03ffd84a2972ca14c5975a290c582b818a9 100644 (file)
@@ -1,3 +1,9 @@
+# engine/_py_util.py
+# Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
+# <see AUTHORS file>
+#
+# This module is part of SQLAlchemy and is released under
+# the MIT License: https://www.opensource.org/licenses/mit-license.php
 from __future__ import annotations
 
 import typing
index c0feb000be171ad517bc1fd1c2eec767fa2884df..aed2fd6b3857fea2bdadfb23eb5bdd365129be41 100644 (file)
@@ -1,3 +1,9 @@
+# engine/characteristics.py
+# Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
+# <see AUTHORS file>
+#
+# This module is part of SQLAlchemy and is released under
+# the MIT License: https://www.opensource.org/licenses/mit-license.php
 from __future__ import annotations
 
 import abc
index aac756d18a22e606a462ac3f3e396f632935710d..4f6353080b736b472e6ef863d7582ed35f36e148 100644 (file)
@@ -1,4 +1,4 @@
-# sqlalchemy/engine/events.py
+# engine/events.py
 # Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
 # <see AUTHORS file>
 #
index c01d3b740645a67e229782b5ec22a5277f6359df..bdca5351c52cd91c7bf7d88bb291b6310693a128 100644 (file)
@@ -1,4 +1,4 @@
-# sqlalchemy/processors.py
+# engine/processors.py
 # Copyright (C) 2010-2023 the SQLAlchemy authors and contributors
 # <see AUTHORS file>
 # Copyright (C) 2010 Gaetan de Menten gdementen@gmail.com
index 2f7b23db4e3036a6d7c677bdcf4ad3f87b2938c4..0124d14dd5fbe3cf520d887f8786cd591454898b 100644 (file)
@@ -1,4 +1,4 @@
-# sqlalchemy/events.py
+# events.py
 # Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
 # <see AUTHORS file>
 #
index a5a66de877fe463c1863fc87eeac44050e6f5bb9..0e90c60e565da80a7ec90c4b880fdffa2bfaaeb2 100644 (file)
@@ -1,4 +1,4 @@
-# sqlalchemy/exc.py
+# exc.py
 # Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
 # <see AUTHORS file>
 #
index 64c9ce6ec2690a2a41ceb9dd2265dcb3db8132a4..82db494e411588df5f185cb795cdf8aabfe81f01 100644 (file)
@@ -1,4 +1,4 @@
-# sqlalchemy/ext/baked.py
+# ext/baked.py
 # Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
 # <see AUTHORS file>
 #
index dbaad3c40771e4e803c122433e059081241a92d4..b3d90a6e92687b049a2970280dc13b85e29bc9a1 100644 (file)
@@ -1,4 +1,4 @@
-# ext/index.py
+# ext/indexable.py
 # Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
 # <see AUTHORS file>
 #
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..8a2e38098e3b429c126017313691d241c44151bc 100644 (file)
@@ -0,0 +1,6 @@
+# ext/mypy/__init__.py
+# Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
+# <see AUTHORS file>
+#
+# This module is part of SQLAlchemy and is released under
+# the MIT License: https://www.opensource.org/licenses/mit-license.php
index 1bfaf1d7b0b278813ef964aca72c80160434f7ab..e18cd08a3fed0c328c8c8d7ff7144dbf0f7163d5 100644 (file)
@@ -1,5 +1,5 @@
 # ext/mypy/apply.py
-# Copyright (C) 2021 the SQLAlchemy authors and contributors
+# Copyright (C) 2021-2023 the SQLAlchemy authors and contributors
 # <see AUTHORS file>
 #
 # This module is part of SQLAlchemy and is released under
index 9c7b44b758678bf0c7a70f077cdc89446305e96d..9e2dcbb9aba70d1442d805768cfdf90c0e52df45 100644 (file)
@@ -1,5 +1,5 @@
 # ext/mypy/decl_class.py
-# Copyright (C) 2021 the SQLAlchemy authors and contributors
+# Copyright (C) 2021-2023 the SQLAlchemy authors and contributors
 # <see AUTHORS file>
 #
 # This module is part of SQLAlchemy and is released under
index e8345d09ae3fb7fc33d3fc544de52b4fc7b67ba5..f7626bdf6b105bad256c94f3ea13d51124299302 100644 (file)
@@ -1,5 +1,5 @@
 # ext/mypy/infer.py
-# Copyright (C) 2021 the SQLAlchemy authors and contributors
+# Copyright (C) 2021-2023 the SQLAlchemy authors and contributors
 # <see AUTHORS file>
 #
 # This module is part of SQLAlchemy and is released under
index ae55ca47b01df975043dab901ece79012440afdd..256e0be636a76afa506e54880aa5735709881f5d 100644 (file)
@@ -1,5 +1,5 @@
 # ext/mypy/names.py
-# Copyright (C) 2021 the SQLAlchemy authors and contributors
+# Copyright (C) 2021-2023 the SQLAlchemy authors and contributors
 # <see AUTHORS file>
 #
 # This module is part of SQLAlchemy and is released under
index bfc31d426763f3791d8b3bc59e3c441ffb675875..c76360fcfff45790fca03f9129b07838c60ac9c9 100644 (file)
@@ -1,4 +1,4 @@
-# sql/future/__init__.py
+# future/__init__.py
 # Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
 # <see AUTHORS file>
 #
index 1984f34ca753a4033853a13f4381e8b41e57ccaf..bc43f4601c49ac8321ea30057ffdaf869f9f0c22 100644 (file)
@@ -1,4 +1,4 @@
-# sql/future/engine.py
+# future/engine.py
 # Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
 # <see AUTHORS file>
 #
index 7d8479b5ecff863a8546be05e3864b43dd0fd573..1fe37d925f2b6a55205b2567bff6bf0c8c35a433 100644 (file)
@@ -1,4 +1,4 @@
-# sqlalchemy/inspect.py
+# inspection.py
 # Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
 # <see AUTHORS file>
 #
index 39af45714dabfc8dff63967c9462e032615b9822..1663f32847ee3dc263d9840e5bd34f59625b80b3 100644 (file)
@@ -1,4 +1,4 @@
-# sqlalchemy/log.py
+# log.py
 # Copyright (C) 2006-2023 the SQLAlchemy authors and contributors
 # <see AUTHORS file>
 # Includes alterations by Vinay Sajip vinay_sajip@yahoo.co.uk
index 3085351ba3b372e6275f53fe26ccd12bb7a8803f..07f5e61a0ff37e130dd267026661503deafe86d1 100644 (file)
@@ -1,5 +1,5 @@
 # orm/_typing.py
-# Copyright (C) 2022 the SQLAlchemy authors and contributors
+# Copyright (C) 2022-2023 the SQLAlchemy authors and contributors
 # <see AUTHORS file>
 #
 # This module is part of SQLAlchemy and is released under
index 10f1db03b659a112d813939c45cd74c10281fc0b..4f4dab895e416a5f9e8f484cffb8867f0012240a 100644 (file)
@@ -1,4 +1,4 @@
-# ext/declarative/clsregistry.py
+# orm/clsregistry.py
 # Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
 # <see AUTHORS file>
 #
index bd18ce5f4b1a7f96c7ba5e697d85bfff76f56ee8..f2039afcd5405c60de7a1b574f71c4dde6e4388a 100644 (file)
@@ -1,4 +1,4 @@
-# orm/declarative/api.py
+# orm/decl_api.py
 # Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
 # <see AUTHORS file>
 #
index 0037379bd5f36e2631e3245e4038f5b43488c49b..6e8578863eda53f982699beed6f4874a3c822212 100644 (file)
@@ -1,4 +1,4 @@
-# ext/declarative/base.py
+# orm/decl_base.py
 # Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
 # <see AUTHORS file>
 #
index 9e479d0d308ae458e34395fd98d175c40cd2e439..6a0ee22b3b63c0406e0e9e1bf45aa4d3a9a29631 100644 (file)
@@ -1,4 +1,4 @@
-# orm/collections.py
+# orm/mapped_collection.py
 # Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
 # <see AUTHORS file>
 #
index e090d5b258c50ebc67e2643332b369b996c63206..c62851e1b3b23a04c1ea6116e8416f246a6264b1 100644 (file)
@@ -1,3 +1,4 @@
+# orm/strategy_options.py
 # Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
 # <see AUTHORS file>
 #
index 7929b6e4bed858b35a4296f5dd757ea42f134fb0..c25a8f85d87461aa2c08639dfb07b6b927144963 100644 (file)
@@ -1,4 +1,4 @@
-# sqlalchemy/pool/__init__.py
+# pool/__init__.py
 # Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
 # <see AUTHORS file>
 #
index 90ed32ec27beedcbaf29554f1f3d6253975523cf..90ad1d4764c2c9df1424d4ac7b868edac1a8c546 100644 (file)
@@ -1,4 +1,4 @@
-# sqlalchemy/pool.py
+# pool/base.py
 # Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
 # <see AUTHORS file>
 #
index 762418b14f20b63e4f498f02694a6639dc3a5797..8e06fdbd2be2a76c928707c9b92e42e484aca08c 100644 (file)
@@ -1,4 +1,4 @@
-# sqlalchemy/pool/events.py
+# pool/events.py
 # Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
 # <see AUTHORS file>
 #
index af4f788e27d114f925a4511207117fb23e7d2f24..ced015088cb87d52de74c884d87aaa544a46fbea 100644 (file)
@@ -1,4 +1,4 @@
-# sqlalchemy/pool.py
+# pool/impl.py
 # Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
 # <see AUTHORS file>
 #
index 90986ec0ccb0b4ded91bb685403a1ef12451a08a..26e289c779ff9f2e2b670ff636ec57170847ef01 100644 (file)
@@ -1,5 +1,5 @@
 # sql/_orm_types.py
-# Copyright (C) 2022 the SQLAlchemy authors and contributors
+# Copyright (C) 2022-2023 the SQLAlchemy authors and contributors
 # <see AUTHORS file>
 #
 # This module is part of SQLAlchemy and is released under
index 0793fbb3db1bb5dd0cebf4240d4f2854b094a495..003cc51245a9a0f3af67303ccad4d82043166432 100644 (file)
@@ -1,5 +1,5 @@
 # sql/_typing.py
-# Copyright (C) 2022 the SQLAlchemy authors and contributors
+# Copyright (C) 2022-2023 the SQLAlchemy authors and contributors
 # <see AUTHORS file>
 #
 # This module is part of SQLAlchemy and is released under
index b34d07412093937fe41c19902af6867196020671..43102ecc2aeccb0ee3540e5bc5a13cf88ec6dfb5 100644 (file)
@@ -1,4 +1,4 @@
-# sqlalchemy/sql/events.py
+# sql/events.py
 # Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
 # <see AUTHORS file>
 #
index 03c9aab67ba2919e11ec366a34aa193d2d6efb38..a0daa2ca8608838e999e29a2983458390205e812 100644 (file)
@@ -1,4 +1,4 @@
-# sqlalchemy/naming.py
+# sql/naming.py
 # Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
 # <see AUTHORS file>
 #
index 9cf4872d023bbcee3510c8b0a0a873cfcfdfac58..9226b01e61ac4eefa0a5012a132848f4fc8b9db4 100644 (file)
@@ -1,4 +1,4 @@
-# sql/types_api.py
+# sql/type_api.py
 # Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
 # <see AUTHORS file>
 #
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..16031a9824be609ad999cd926010f8a22c9f14ac 100644 (file)
@@ -0,0 +1,6 @@
+# testing/plugin/__init__.py
+# Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
+# <see AUTHORS file>
+#
+# This module is part of SQLAlchemy and is released under
+# the MIT License: https://www.opensource.org/licenses/mit-license.php
index f93b8d3e629eca50e60a73f8bcc6268d2fe997de..e331224b210dbda3f6cf9591de263f34259c35a6 100644 (file)
@@ -1,3 +1,9 @@
+# testing/plugin/bootstrap.py
+# Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
+# <see AUTHORS file>
+#
+# This module is part of SQLAlchemy and is released under
+# the MIT License: https://www.opensource.org/licenses/mit-license.php
 # mypy: ignore-errors
 
 """
index f6a7f152b79e333173c1ff0ee0347432afe016af..1f17fc595f6f1e4393cd44813baf658939465609 100644 (file)
@@ -1,4 +1,4 @@
-# plugin/plugin_base.py
+# testing/plugin/plugin_base.py
 # Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
 # <see AUTHORS file>
 #
index a676e7e28d04514e85ba55d1195767dddaf6ec7f..47644e3d28b4ea549790b0ed42c5cb4841018d71 100644 (file)
@@ -1,3 +1,9 @@
+# testing/plugin/pytestplugin.py
+# Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
+# <see AUTHORS file>
+#
+# This module is part of SQLAlchemy and is released under
+# the MIT License: https://www.opensource.org/licenses/mit-license.php
 # mypy: ignore-errors
 
 from __future__ import annotations
index 0ff564e24551244b063d0d6b38b06a60f7629f8a..dcea52d3ba1100417cc3df16a727abf968b9971b 100644 (file)
@@ -1,3 +1,9 @@
+# testing/provision.py
+# Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
+# <see AUTHORS file>
+#
+# This module is part of SQLAlchemy and is released under
+# the MIT License: https://www.opensource.org/licenses/mit-license.php
 # mypy: ignore-errors
 
 from __future__ import annotations
index 30817e1e445db923f44cf9f5a345e2a499ade9c5..08f31c6c06db8de0248c3d8851355db42f350c59 100644 (file)
@@ -1,3 +1,9 @@
+# testing/suite/__init__.py
+# Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
+# <see AUTHORS file>
+#
+# This module is part of SQLAlchemy and is released under
+# the MIT License: https://www.opensource.org/licenses/mit-license.php
 from .test_cte import *  # noqa
 from .test_ddl import *  # noqa
 from .test_deprecations import *  # noqa
index fb767e46354eb1c39ac313c547273c9d9908fb84..f73a5a6a78123c9b2b9dcaa06afbc099ebab6cc9 100644 (file)
@@ -1,3 +1,9 @@
+# testing/suite/test_cte.py
+# Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
+# <see AUTHORS file>
+#
+# This module is part of SQLAlchemy and is released under
+# the MIT License: https://www.opensource.org/licenses/mit-license.php
 # mypy: ignore-errors
 
 from .. import fixtures
index 35651170d128c48f80c2ff4a74ccf25f25ffc8db..2256a03163e6a7b653d2288914946abf9beca1d5 100644 (file)
@@ -1,3 +1,9 @@
+# testing/suite/test_ddl.py
+# Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
+# <see AUTHORS file>
+#
+# This module is part of SQLAlchemy and is released under
+# the MIT License: https://www.opensource.org/licenses/mit-license.php
 # mypy: ignore-errors
 
 import random
index c453cbfed925aed49899861c52a2186c16307afe..793b401ba851c1463dc364971d733e494acf3804 100644 (file)
@@ -1,3 +1,9 @@
+# testing/suite/test_deprecations.py
+# Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
+# <see AUTHORS file>
+#
+# This module is part of SQLAlchemy and is released under
+# the MIT License: https://www.opensource.org/licenses/mit-license.php
 # mypy: ignore-errors
 
 from .. import fixtures
index 6edf93ffdc3cc3f502bc01876bc807e6f1d52696..68ae800330a72c0bcba5f1f1538c3a8716247e54 100644 (file)
@@ -1,3 +1,9 @@
+# testing/suite/test_dialect.py
+# Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
+# <see AUTHORS file>
+#
+# This module is part of SQLAlchemy and is released under
+# the MIT License: https://www.opensource.org/licenses/mit-license.php
 # mypy: ignore-errors
 
 
index 09f24d356dae3c7a9c9460d160f0f92519572369..e03d4c6430c8c87ea30905048e018f1821f131cd 100644 (file)
@@ -1,3 +1,9 @@
+# testing/suite/test_insert.py
+# Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
+# <see AUTHORS file>
+#
+# This module is part of SQLAlchemy and is released under
+# the MIT License: https://www.opensource.org/licenses/mit-license.php
 # mypy: ignore-errors
 
 from decimal import Decimal
index f2ecf1cae95dc42861b5d62873165347273171e0..26839ab8777b4afbb6875e741a6072ae22c736a6 100644 (file)
@@ -1,3 +1,9 @@
+# testing/suite/test_reflection.py
+# Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
+# <see AUTHORS file>
+#
+# This module is part of SQLAlchemy and is released under
+# the MIT License: https://www.opensource.org/licenses/mit-license.php
 # mypy: ignore-errors
 
 import operator
index e439d6ca6d9cd5d2814e21f66c5fc3bb58571358..3e688c7cebc4ee894d89e9c5ebeddb3b5db38db3 100644 (file)
@@ -1,3 +1,9 @@
+# testing/suite/test_results.py
+# Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
+# <see AUTHORS file>
+#
+# This module is part of SQLAlchemy and is released under
+# the MIT License: https://www.opensource.org/licenses/mit-license.php
 # mypy: ignore-errors
 
 import datetime
index 58295a5c531570bac794696b7c85c73a6f6ad832..651e746d46b967dc44efec70ca8b7d801370cf90 100644 (file)
@@ -1,3 +1,9 @@
+# testing/suite/test_rowcount.py
+# Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
+# <see AUTHORS file>
+#
+# This module is part of SQLAlchemy and is released under
+# the MIT License: https://www.opensource.org/licenses/mit-license.php
 # mypy: ignore-errors
 
 from sqlalchemy import bindparam
index a0aa147f9c0e8163caf0287c8b21c4c2a8978481..4825c53a39615ad2d7832750ad517ba964b8b2c4 100644 (file)
@@ -1,3 +1,9 @@
+# testing/suite/test_select.py
+# Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
+# <see AUTHORS file>
+#
+# This module is part of SQLAlchemy and is released under
+# the MIT License: https://www.opensource.org/licenses/mit-license.php
 # mypy: ignore-errors
 
 import collections.abc as collections_abc
index 43e2d066bba1ff6303e8e1e19c76537893ea4a40..b3f63076ae4367c1fffee6eae5fa4195249aedea 100644 (file)
@@ -1,3 +1,9 @@
+# testing/suite/test_sequence.py
+# Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
+# <see AUTHORS file>
+#
+# This module is part of SQLAlchemy and is released under
+# the MIT License: https://www.opensource.org/licenses/mit-license.php
 # mypy: ignore-errors
 
 from .. import config
index 5debb450f603d0f210d0561ccc6108580ed1f0e0..c9a5d6c260159c88addecc58f7714fe8d364899b 100644 (file)
@@ -1,3 +1,9 @@
+# testing/suite/test_types.py
+# Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
+# <see AUTHORS file>
+#
+# This module is part of SQLAlchemy and is released under
+# the MIT License: https://www.opensource.org/licenses/mit-license.php
 # mypy: ignore-errors
 
 
index 01597893727ef2c30fb327d302063d963515f097..cd7f6309bd44ac11217aa818e44be0ab8afdb4ac 100644 (file)
@@ -1,3 +1,9 @@
+# testing/suite/test_unicode_ddl.py
+# Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
+# <see AUTHORS file>
+#
+# This module is part of SQLAlchemy and is released under
+# the MIT License: https://www.opensource.org/licenses/mit-license.php
 # mypy: ignore-errors
 
 
index 2d13bda34aee5ae7f1b8dd7f81e770029e3c7b6f..17238a0205f1ccbc43d57286dd3ab4907b141e54 100644 (file)
@@ -1,3 +1,9 @@
+# testing/suite/test_update_delete.py
+# Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
+# <see AUTHORS file>
+#
+# This module is part of SQLAlchemy and is released under
+# the MIT License: https://www.opensource.org/licenses/mit-license.php
 # mypy: ignore-errors
 
 from .. import fixtures
index 37f716ad3b90cfc982e673984a0a98caf302e932..37e0c4e891c06ee7f62b3fd26827c5a29938f1a7 100644 (file)
@@ -1,3 +1,4 @@
+# util/_has_cy.py
 # Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
 # <see AUTHORS file>
 #
index f3609c8e472091ba889feffe8e67cdbd6ce2fd86..c5b4a0fabb875a59705bef1c0be7a6067068416c 100644 (file)
@@ -1,4 +1,4 @@
-# util/_preloaded.py
+# util/preloaded.py
 # Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
 # <see AUTHORS file>
 #
index 5a2fc3ba051aacbe975fbda2c92d1f72663f90c5..4a9f9473de5783dd3673e7824e1eca678a9df399 100644 (file)
@@ -27,6 +27,7 @@ from typing import Any
 from typing import Dict
 from typing import Iterator
 from typing import Optional
+from typing import Union
 
 from . import compat
 
@@ -121,7 +122,7 @@ class code_writer_cmd:
             sys.stderr.write(" ".join(text))
 
     def write_output_file_from_text(
-        self, text: str, destination_path: str
+        self, text: str, destination_path: Union[str, Path]
     ) -> None:
         if self.args.check:
             self._run_diff(destination_path, source=text)
@@ -129,7 +130,9 @@ class code_writer_cmd:
             print(text)
         else:
             self.write_status(f"Writing {destination_path}...")
-            Path(destination_path).write_text(text)
+            Path(destination_path).write_text(
+                text, encoding="utf-8", newline="\n"
+            )
             self.write_status("done\n")
 
     def write_output_file_from_tempfile(
@@ -149,24 +152,24 @@ class code_writer_cmd:
 
     def _run_diff(
         self,
-        destination_path: str,
+        destination_path: Union[str, Path],
         *,
         source: Optional[str] = None,
         source_file: Optional[str] = None,
     ) -> None:
         if source_file:
-            with open(source_file) as tf:
+            with open(source_file, encoding="utf-8") as tf:
                 source_lines = list(tf)
         elif source is not None:
             source_lines = source.splitlines(keepends=True)
         else:
             assert False, "source or source_file is required"
 
-        with open(destination_path) as dp:
+        with open(destination_path, encoding="utf-8") as dp:
             d = difflib.unified_diff(
                 list(dp),
                 source_lines,
-                fromfile=destination_path,
+                fromfile=Path(destination_path).as_posix(),
                 tofile="<proposed changes>",
                 n=3,
                 lineterm="\n",
index 3d15d43db7652212d78994c51e2975ae0b987cee..aad5709451dce41d83262d6702d832f0ca9cbd88 100644 (file)
@@ -1,5 +1,5 @@
 # util/typing.py
-# Copyright (C) 2022 the SQLAlchemy authors and contributors
+# Copyright (C) 2022-2023 the SQLAlchemy authors and contributors
 # <see AUTHORS file>
 #
 # This module is part of SQLAlchemy and is released under
diff --git a/tools/normalize_file_headers.py b/tools/normalize_file_headers.py
new file mode 100644 (file)
index 0000000..8d82f84
--- /dev/null
@@ -0,0 +1,69 @@
+from datetime import date
+from pathlib import Path
+import re
+
+from sqlalchemy.util.tool_support import code_writer_cmd
+
+sa_path = Path(__file__).parent.parent / "lib/sqlalchemy"
+
+
+file_re = re.compile(r"^# [\w+/]+.(?:pyx?|pxd)$", re.MULTILINE)
+license_re = re.compile(
+    r"Copyright .C. (\d+)-\d+ the SQLAlchemy authors and contributors"
+)
+
+this_year = date.today().year
+license_ = f"""
+# Copyright (C) 2005-{this_year} the SQLAlchemy authors and \
+contributors
+# <see AUTHORS file>
+#
+# This module is part of SQLAlchemy and is released under
+# the MIT License: https://www.opensource.org/licenses/mit-license.php
+"""
+
+
+def run_file(cmd: code_writer_cmd, file: Path, update_year: bool):
+    content = file.read_text("utf-8")
+    path = str(file.relative_to(sa_path)).replace("\\", "/")  # handle windows
+    path_comment = f"# {path}"
+    has_license = bool(license_re.search(content))
+    if file_re.match(content.strip()):
+        if has_license:
+            to_sub = path_comment
+        else:
+            to_sub = path_comment + license_
+        content = file_re.sub(to_sub, content, count=1)
+    else:
+        content = path_comment + ("\n" if has_license else license_) + content
+
+    if has_license and update_year:
+        content = license_re.sub(
+            rf"Copyright (C) \1-{this_year} the SQLAlchemy "
+            "authors and contributors",
+            content,
+            1,
+        )
+    cmd.write_output_file_from_text(content, file)
+
+
+def run(cmd: code_writer_cmd, update_year: bool):
+    i = 0
+    for ext in ('py', 'pyx', 'pxd'):
+        for file in sa_path.glob(f"**/*.{ext}"):
+            run_file(cmd, file, update_year)
+            i += 1
+    cmd.write_status(f"\nDone. Processed {i} files.")
+
+
+if __name__ == "__main__":
+    cmd = code_writer_cmd(__file__)
+    with cmd.add_arguments() as parser:
+        parser.add_argument(
+            "--update-year",
+            action="store_true",
+            help="Update the year in the license files",
+        )
+
+    with cmd.run_program():
+        run(cmd, cmd.args.update_year)
diff --git a/tox.ini b/tox.ini
index 22a7a7d9941492c5f3e250b804266baf39f4b199..bcba1190b2a1a1a2a83d0d12c2b1c397931cff69 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -244,6 +244,7 @@ commands =
      python ./tools/generate_proxy_methods.py --check
      python ./tools/sync_test_files.py --check
      python ./tools/generate_sql_functions.py --check
+     python ./tools/normalize_file_headers.py --check
      python ./tools/walk_packages.py