Replies: 3 comments
-
Thanks for opening your first issue here! Be sure to follow the issue template! If you are willing to raise PR to address this issue please do so, no need to wait for approval. |
Beta Was this translation helpful? Give feedback.
-
This is invalid. Agree - we missed that we have an old and not really used package before, but it should not be prevented from being installed on higher airflow version. While unicodecsv had indeed only specified classifiers for up to Python 3.5 it had no requirements set to be only used for Python < 3.5 and since it had no dependencies on its own and it did not have python_requires that prevented it from being installed. What you are likely referring to when you mane are Trove Classifiers:
The trove classifiers are defined in https://peps.python.org/pep-0301/ and they are only there to classify projects when you search for them, but they should not be used by packaging tools to decide if they are installed for specific python version (`python_requires is the way to do that). I am not sure what errors you had an which tools you used besides poetry - you missed to explain what kind of error you had when you tried to install airflow. But I am quite sure it is installable for higher python versio. In fact I just did it and it works (python 3.11 in this case):
The setup.py of unicodecsv does not contain python_requires so generally no tool should be limited to installing it on higher python version than 3.5 (and since it is very simple code, it generally installs and works fine on higher versions). This is setup.py of latest setup(
name='unicodecsv',
version=version,
description="Python2's stdlib csv module is nice, but it doesn't support unicode. This module is a drop-in replacement which *does*.",
long_description=open(os.path.join(os.path.dirname(__file__), 'README.rst'), 'rb').read().decode('utf-8'),
author='Jeremy Dunck',
author_email='[email protected]',
url='https://github.com/jdunck/python-unicodecsv',
packages=find_packages(),
tests_require=['unittest2>=0.5.1'],
test_suite='runtests.get_suite',
license='BSD License',
classifiers=['Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: Implementation :: PyPy',
'Programming Language :: Python :: Implementation :: CPython',], I am not sure how you came to the conclusion that unicodecsv is not installable for Python 3.8+ - maybe you can explain what exactly error you experienced and what exactly you did in a follow-up discussion but I can assure you Airflow is instalable so this issue is invalid. Converting to discussion if you need more. I will also make sure to check if unicodecsv removal is cherry-picked to 2-10 branch - so also we will remove it in the next release, but this is more of a cleanup than problem with installation. |
Beta Was this translation helpful? Give feedback.
-
Cherry-picking unicodecsv removal to 2.10 branch here: #42970 |
Beta Was this translation helpful? Give feedback.
-
Apache Airflow version
2.10.2
If "Other Airflow 2 version" selected, which one?
No response
What happened?
Airflow cannot be installed in a venv with any system that properly solves dependencies and version requirements.
This happens because the lowest supported Python version of
apache-airflow
is 3.8, while the highest supported version ofunicodecsv
is 3.5. So there is no Python version that would be supported byapache-airflow
and all of its dependencies, making it un-installable.What you think should happen instead?
I know
unicodecsv
has been dropped as a dependency very recently, but no new version has been released since then.How to reproduce
I encountered the issue with Poetry, but any tool that ensures all requirements for dependency packages are met will encounter the same issue.
I encountered the issue targeting Python 3.8, but since there is no overlap between supported Python versions between
unicecsv
andapache-airflow
it doesn't really matter.Paste the following
pyproject.toml
into an empty directory:In a terminal navigate to the directory and run
poetry install
Operating System
Ubuntu 22.04
Versions of Apache Airflow Providers
No response
Deployment
Official Apache Airflow Helm Chart
Deployment details
No response
Anything else?
No response
Are you willing to submit PR?
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions