Skip to content

Commit deb7fc0

Browse files
authored
Add setup.cfg for apache-airflow-upgrade-check (#12517)
Nothing currently uses this setup.cfg from this folder -- automation for that will follow shortly. Now that there is a place list deps for upgrade-check I have moved `packaging` and `importlib_meta` to test_requires of the main dist. Build a py2+py3 wheel.
1 parent d7ace02 commit deb7fc0

File tree

2 files changed

+67
-1
lines changed

2 files changed

+67
-1
lines changed

airflow/upgrade/setup.cfg

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
18+
[metadata]
19+
version=1.0.0
20+
name = apache-airflow-upgrade-check
21+
description = Check for compatibility between Airflow versions
22+
long_description = file: airflow/upgrade/README.md
23+
long_description_content_type = text/markdown
24+
url = https://airflow.apache.org
25+
author = Apache Airflow PMC
26+
author-email = [email protected]
27+
license = Apache License 2.0
28+
license_files =
29+
LICENSE
30+
NOTICE
31+
classifiers =
32+
Development Status :: 5 - Production/Stable
33+
Intended Audience :: Developers
34+
License :: OSI Approved :: Apache Software License
35+
Programming Language :: Python :: 2.7
36+
Programming Language :: Python :: 3
37+
Programming Language :: Python :: 3.6
38+
Programming Language :: Python :: 3.7
39+
Programming Language :: Python :: 3.8
40+
keywords = airflow, upgrade
41+
project_urls =
42+
Source Code=https://github.com/apache/airflow
43+
Bug Tracker=https://github.com/apache/airflow/issues
44+
Documentation=https://airflow.apache.org/docs/
45+
46+
[options]
47+
packages = find:
48+
install_requires =
49+
apache-airflow>=1.10.13,<3
50+
importlib-metadata~=2.0; python_version<"3.8"
51+
packaging
52+
python_requires = >=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*
53+
setup_requires =
54+
setuptools>=40.0
55+
wheel
56+
zip_safe = no
57+
58+
[options.packages.find]
59+
include =
60+
airflow.upgrade
61+
airflow.upgrade.*
62+
63+
[bdist_wheel]
64+
universal=1

setup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,12 +426,14 @@ def write_version(filename=os.path.join(*[my_dir, "airflow", "git_version"])):
426426
'flaky',
427427
'freezegun',
428428
'gitpython',
429+
'importlib-metadata~=2.0; python_version<"3.8"',
429430
'ipdb',
430431
'jira',
431432
'mock;python_version<"3.3"',
432433
'mongomock',
433434
'moto==1.3.14', # TODO - fix Datasync issues to get higher version of moto:
434435
# See: https://github.com/apache/airflow/issues/10985
436+
'packaging',
435437
'parameterized',
436438
'paramiko',
437439
'pre-commit',
@@ -445,7 +447,7 @@ def write_version(filename=os.path.join(*[my_dir, "airflow", "git_version"])):
445447
'pywinrm',
446448
'qds-sdk>=1.9.6',
447449
'requests_mock',
448-
'yamllint'
450+
'yamllint',
449451
]
450452
############################################################################################################
451453
# IMPORTANT NOTE!!!!!!!!!!!!!!!

0 commit comments

Comments
 (0)