Azure / azure-kusto-python

Kusto client libraries for Python
MIT License
183 stars 109 forks source link

Package is accidentally shipping its tests #518

Closed bluenote10 closed 8 months ago

bluenote10 commented 8 months ago

Code Sample, a copy-pastable example if possible

pip install azure-functions-durable
pip show --files azure-functions-durable

Problem description

It looks like this package is accidentally shipping its tests. This can be easily verified with:

pip show --files azure-kusto-data

Which shows that there are 6 tests files shipped by the package into a top-level package called tests. This has a few small issues:

Possible cause / solution

I've opened a similar issue https://github.com/Azure/azure-functions-durable-python/issues/475 for azure-functions-durable with an idea how to fix it, which should apply here as well, because the setup.py seems to follow the same pattern:

https://github.com/Azure/azure-kusto-python/blob/ed835b83a90dbd58088daf31114afe319bbb7327/azure-kusto-data/setup.py#L47

Output of pip freeze

``` actionlib==1.14.0 adal==1.2.7 aiofiles==22.1.0 aiohttp==3.9.1 aiosignal==1.3.1 aiosqlite==0.19.0 alabaster==0.7.13 altair==4.2.2 angles==1.9.13 annotated-types==0.6.0 ansi2html==1.9.1 ansible==9.1.0 ansible-core==2.16.2 anyio==4.2.0 anys==0.3.0 appdirs==1.4.4 argcomplete==3.2.1 argon2-cffi==23.1.0 argon2-cffi-bindings==21.2.0 argparse-addons==0.12.0 arrow==1.3.0 asammdf==7.3.18 asgiref==3.7.2 asttokens==2.4.1 async-timeout==4.0.3 attrs==23.2.0 avro-python3==1.10.2 azure-batch==14.0.0 azure-common==1.1.28 azure-containerregistry==1.2.0 azure-core==1.29.6 azure-cosmos==4.5.1 azure-data-tables==12.4.4 azure-devops==7.1.0b4 azure-eventgrid==4.16.0 azure-eventhub==5.11.5 azure-eventhub-checkpointstoreblob==1.1.4 azure-functions==1.17.0 azure-functions-durable==1.2.8 azure-identity==1.15.0 azure-keyvault==4.2.0 azure-keyvault-certificates==4.7.0 azure-keyvault-keys==4.8.0 azure-keyvault-secrets==4.7.0 azure-kusto-data==4.3.1 azure-kusto-ingest==4.3.1 azure-mgmt-batch==17.2.0 azure-mgmt-compute==30.4.0 azure-mgmt-containerinstance==10.1.0 azure-mgmt-core==1.4.0 azure-mgmt-datafactory==4.0.0 azure-mgmt-resource==23.0.1 azure-storage-blob==12.19.0 azure-storage-queue==12.9.0 Babel==2.14.0 beautifulsoup4==4.12.2 bidict==0.22.1 bitstruct==8.19.0 black==22.12.0 bleach==6.1.0 blinker==1.7.0 blosc2==2.4.0 bokeh==3.3.2 bondpy==1.8.6 boolean.py==3.4 bottle==0.12.25 branca==0.7.0 build==1.0.3 cachetools==5.3.2 cachier==2.2.2 camera-calibration-parsers==1.12.0 canmatrix==1.0 cantools==39.4.2 catkin==0.8.10 catkin-pkg==1.0.0 certifi==2023.11.17 cffi==1.16.0 cfgv==3.4.0 chardet==5.2.0 charset-normalizer==3.3.2 click==8.1.7 click-log==0.4.0 click-plugins==1.1.1 cligj==0.7.2 cloudpickle==3.0.0 codeowners==0.6.0 colorama==0.4.6 coloredlogs==15.0.1 comm==0.2.1 conan==1.62.0 contourpy==1.2.0 coverage==7.4.0 crccheck==1.3.0 cryptography==41.0.7 cv-bridge==1.16.2 cycler==0.12.1 Cython==3.0.7 dacite==1.8.1 dash==2.14.2 dash-core-components==2.0.0 dash-html-components==2.0.0 dash-table==5.0.0 dask==2023.12.1 debugpy==1.8.0 decopatch==1.4.10 decorator==5.1.1 defusedxml==0.7.1 diagnostic-updater==1.11.0 dill==0.3.7 dirhash==0.2.1 diskcache==5.6.3 distlib==0.3.7 distributed==2023.12.1 distro==1.8.0 Django==4.0.10 django-emoji==2.2.2 django-filter==23.5 django-mathfilters==1.0.0 django-safedelete==1.3.3 djangorestframework==3.14.0 docker==7.0.0 docopt==0.6.2 docutils==0.19 dohq-artifactory==0.9.2 doxysphinx==3.3.7 dynamic-reconfigure==1.7.3 empy==3.3.4 entrypoints==0.4 exceptiongroup==1.2.0 execnet==2.0.2 executing==2.0.1 fasteners==0.19 fastjsonschema==2.19.1 filelock==3.13.1 fiona==1.9.5 flake8==7.0.0 Flask==3.0.0 Flask-Cors==4.0.0 Flask-PyMongo==2.3.0 folium==0.15.1 fonttools==4.47.0 fqdn==1.5.1 frozenlist==1.4.1 fsspec==2023.12.2 furl==2.1.3 future==0.18.3 gcovr==6.0 gencpp==0.7.0 geneus==3.0.0 genlisp==0.4.18 genmsg==0.6.0 gennodejs==2.0.2 genpy==0.6.15 geographiclib==1.52 geojson==3.1.0 geopandas==0.14.2 geopy==2.4.1 gitdb==4.0.11 GitPython==3.1.40 gnupg==2.3.1 google-auth==2.26.1 gpstime==0.8.1 graphviz==0.20.1 gunicorn==21.2.0 h5py==3.10.0 humanfriendly==10.0 icontract==2.6.6 identify==2.5.31 idna==3.6 ijson==3.2.3 image-geometry==1.16.2 imageio==2.33.1 imagesize==1.4.1 importlib-metadata==7.0.1 importlib-resources==6.1.1 iniconfig==2.0.0 interactive-markers==1.12.0 ipykernel==6.28.0 ipympl==0.9.3 ipython==8.19.0 ipython-genutils==0.2.0 ipywidgets==7.8.1 isal==1.5.3 isodate==0.6.1 isoduration==20.11.0 isort==5.13.2 itsdangerous==2.1.2 jedi==0.19.1 Jinja2==3.1.2 joblib==1.3.2 joint-state-publisher==1.15.1 jsk-recognition-utils==1.2.15 jsk_data==2.2.12 jsk_network_tools==2.2.12 jsk_rviz_plugins==2.1.8 jsk_tools==2.2.12 jsk_topic_tools==2.2.12 json5==0.9.14 jsonpointer==2.4 jsonschema==4.20.0 jsonschema-specifications==2023.12.1 jupyter-events==0.9.0 jupyter-ydoc==0.2.5 jupyter_client==7.4.9 jupyter_core==5.7.0 jupyter_server==2.12.2 jupyter_server_fileid==0.9.1 jupyter_server_terminals==0.5.1 jupyter_server_ydoc==0.8.0 jupyterlab==3.6.6 jupyterlab-widgets==1.1.7 jupyterlab_pygments==0.3.0 jupyterlab_server==2.25.2 keplergl==0.3.2 kiwisolver==1.4.5 kubernetes==28.1.0 laser_geometry==1.6.7 lazy_loader==0.3 libsass==0.22.0 locket==1.0.0 lxml==4.9.4 lz4==4.3.3 makefun==1.15.2 markdown-it-py==2.2.0 MarkupSafe==2.1.3 matplotlib==3.7.4 matplotlib-inline==0.1.6 mccabe==0.7.0 mdit-py-plugins==0.3.5 mdurl==0.1.2 mercantile==1.2.1 message-filters==1.16.0 mistune==3.0.2 mock==5.1.0 mongomock==4.1.2 mpire==2.8.1 mpld3==0.5.10 msal==1.26.0 msal-extensions==1.1.0 msgpack==1.0.7 msgspec==0.18.5 msrest==0.7.1 msrestazure==0.6.4 multidict==6.0.4 multiprocess==0.70.15 mypy==1.8.0 mypy-extensions==1.0.0 mysqlclient==2.2.1 myst-parser==1.0.0 nbclassic==1.0.0 nbclient==0.9.0 nbconvert==7.14.0 nbformat==5.9.2 ndindex==1.7 nest-asyncio==1.5.8 netifaces==0.11.0 networkx==3.2.1 node-semver==0.6.1 nodeenv==1.8.0 nose==1.3.7 notebook==6.5.6 notebook_shim==0.2.3 numexpr==2.8.8 numpy==1.26.3 numpy-quaternion==2023.0.2 oauthlib==3.2.2 opencv-python==4.9.0.80 openni2_launch==1.6.0 openrouteservice==2.3.3 orderedmultidict==1.0.1 osmium==3.7.0 overpass==0.7 overrides==7.4.0 packaging==23.2 pandas==2.1.4 pandas-stubs==2.1.1.230928 pandocfilters==1.5.0 parso==0.8.3 partd==1.4.1 patch-ng==1.17.4 pathos==0.3.1 pathspec==0.12.1 pathtools==0.1.2 pexpect==4.9.0 pick==2.2.0 pillow==10.2.0 pip-tools==7.3.0 pkg_resources==0.0.0 platformdirs==4.1.0 plotly==5.18.0 pluggy==1.3.0 pluginbase==1.0.1 portalocker==2.8.2 pox==0.3.3 ppft==1.7.6.7 pre-commit==3.5.0 progressbar2==4.3.2 prometheus-client==0.19.0 prompt-toolkit==3.0.43 protobuf==3.19.6 psutil==5.9.7 psycopg==3.1.16 psycopg-binary==3.1.16 ptyprocess==0.7.0 pure-eval==0.2.2 py==1.11.0 py-cpuinfo==9.0.0 pyarrow==14.0.2 pyarrow-hotfix==0.6 pyasn1==0.5.1 pyasn1-modules==0.3.0 pybind11-stubgen==2.3.7 pycodestyle==2.11.1 pycparser==2.21 pycryptodomex==3.19.1 pydantic==2.5.3 pydantic_core==2.14.6 pydeck==0.8.0 pyflakes==3.2.0 Pygments==2.17.2 pyjson5==1.6.5 PyJWT==2.8.0 pylddwrap==1.2.2 pymap3d==1.6.3 pymongo==3.13.0 Pympler==1.0.1 PyMySQL==1.1.0 pyogrio==0.7.2 pyOpenSSL==23.3.0 pyparsing==3.1.1 pypcd==0.1.1 pyproj==3.6.1 pyproject_hooks==1.0.0 pyros==0.4.3 pyros-common==0.5.4 pyros-config==0.2.1 pyros-setup==0.3.0 pyrosbag==0.1.3 pyserial==3.5 pysolr==3.9.0 pytest==7.4.4 pytest-asyncio==0.23.3 pytest-cases==3.8.1 pytest-cov==4.1.0 pytest-mock==3.12.0 pytest-timeout==2.2.0 pytest-watch==4.2.0 pytest-xdist==3.5.0 python-can==4.3.1 python-dateutil==2.8.2 python-debian==0.1.49 python-geohash==0.8.5 python-intervals==1.10.0.post1 python-json-logger==2.0.7 python-lzf==0.2.4 python-qt-binding==0.4.4 python-utils==3.8.1 pytz==2023.3.post1 PyYAML==6.0.1 pyzmp==0.0.17 pyzmq==24.0.1 qt-dotgraph==0.4.2 qt-gui==0.4.2 qt-gui-cpp==0.4.2 qt-gui-py-common==0.4.2 redis==5.0.1 referencing==0.32.0 requests==2.31.0 requests-file==1.5.1 requests-oauthlib==1.3.1 requests-toolbelt==1.0.0 resolvelib==1.0.1 resource_retriever==1.12.7 retry==0.9.2 retrying==1.3.4 rfc3339-validator==0.1.4 rfc3986-validator==0.1.1 rich==13.7.0 rosbag==1.16.0 rosclean==1.15.8 rosdep==0.22.2 rosdistro==0.9.0 rosgraph==1.16.0 roslaunch==1.16.0 roslib==1.15.8 roslint==0.12.0 roslz4==1.16.0 rosmake==1.15.8 rosmaster==1.16.0 rosmsg==1.16.0 rosnode==1.16.0 rosparam==1.16.0 rospkg==1.5.0 rospy==1.16.0 rosservice==1.16.0 rostest==1.16.0 rostopic==1.16.0 rosunit==1.15.8 roswtf==1.16.0 rpds-py==0.16.2 rqt-image-view==0.4.17 rqt-reconfigure==0.5.5 rqt_action==0.4.9 rqt_bag==0.5.1 rqt_bag_plugins==0.5.1 rqt_console==0.4.11 rqt_dep==0.4.12 rqt_graph==0.4.14 rqt_gui==0.5.3 rqt_gui_py==0.5.3 rqt_launch==0.4.9 rqt_logger_level==0.4.11 rqt_msg==0.4.10 rqt_plot==0.4.13 rqt_publisher==0.4.10 rqt_py_common==0.5.3 rqt_py_console==0.4.10 rqt_service_caller==0.4.10 rqt_shell==0.4.11 rqt_srv==0.4.9 rqt_top==0.4.10 rqt_topic==0.4.13 rqt_web==0.4.10 rsa==4.9 Rtree==1.1.0 ruamel.yaml==0.18.5 ruamel.yaml.clib==0.2.8 rviz==1.14.20 s2cell==1.7.2 scantree==0.0.1 scikit-image==0.22.0 scikit-learn==1.3.2 scipy==1.11.4 seaborn==0.13.1 Send2Trash==1.8.2 sensor-msgs==1.13.1 sentinels==1.0.0 shapely==2.0.2 shellcheck-py==0.9.0.6 simplejson==3.19.2 six==1.16.0 smclib==1.8.6 smmap==5.0.1 smmap2==2.0.5 sniffio==1.3.0 snowballstemmer==2.2.0 sortedcontainers==2.4.0 sound-play==0.3.17 soupsieve==2.5 Sphinx==5.3.0 sphinx-autodoc-typehints==1.23.0 sphinx-charts==0.2.1 sphinx-click==5.1.0 sphinx-collections==0.0.1 sphinx-copybutton==0.5.2 sphinx-data-viewer==0.1.2 sphinx-needs==2.0.0 sphinx-rtd-theme==2.0.0 sphinx-tags==0.3.1 sphinx_design==0.5.0 sphinxcontrib-applehelp==1.0.7 sphinxcontrib-devhelp==1.0.5 sphinxcontrib-doxylink==1.12.3 sphinxcontrib-htmlhelp==2.0.4 sphinxcontrib-jquery==4.1 sphinxcontrib-jsmath==1.0.1 sphinxcontrib-plantuml==0.27 sphinxcontrib-qthelp==1.0.6 sphinxcontrib-serializinghtml==1.1.9 splunk-handler==3.0.0 splunk-sdk==1.7.4 sqlitedict==2.1.0 sqlparse==0.4.4 stack-data==0.6.3 streamlit==1.22.0 tables==3.9.2 tabulate==0.9.0 tblib==3.0.0 tenacity==8.2.3 termcolor==2.4.0 terminado==0.18.0 textparser==0.24.0 tf==1.13.2 tf-conversions==1.13.2 tf2-geometry-msgs==0.7.6 tf2-kdl==0.7.6 tf2-py==0.7.6 tf2-ros==0.7.6 threadpoolctl==3.2.0 tifffile==2023.12.9 tinycss2==1.2.1 tokenize-rt==5.2.0 toml==0.10.2 tomli==2.0.1 toolz==0.12.0 topic-tools==1.16.0 toposort==1.10 tornado==6.4 tqdm==4.66.1 traitlets==5.9.0 traittypes==0.2.1 typed-argparse==0.3.1 types-beautifulsoup4==4.12.0.7 types-click==7.1.8 types-filelock==3.2.7 types-html5lib==1.1.11.15 types-Jinja2==2.11.9 types-jsonschema==4.20.0.20240105 types-lxml==2023.10.21 types-MarkupSafe==1.1.10 types-mock==5.1.0.3 types-protobuf==4.24.0.4 types-psutil==5.9.5.17 types-PyMySQL==1.1.0.1 types-pyOpenSSL==23.3.0.0 types-python-dateutil==2.8.19.14 types-pytz==2023.3.1.1 types-PyYAML==6.0.12.12 types-redis==4.6.0.11 types-requests==2.31.0.6 types-retry==0.9.9.4 types-setuptools==69.0.0.0 types-simplejson==3.19.0.2 types-six==1.16.21.9 types-tabulate==0.9.0.3 types-termcolor==1.1.6.2 types-urllib3==1.26.25.14 typing_extensions==4.9.0 tzdata==2023.4 tzlocal==5.2 urdfdom-py==0.4.6 uri-template==1.3.0 urllib3==1.26.18 uwsgidecorators==1.1.0 validators==0.22.0 virtualenv==20.24.6 watchdog==3.0.0 wcwidth==0.2.12 webcolors==1.13 webencodings==0.5.1 websocket-client==1.7.0 Werkzeug==3.0.1 widgetsnbextension==3.6.6 wrapt==1.16.0 xacro==1.14.16 xyzservices==2023.10.1 y-py==0.6.2 yachalk==0.1.5 yarl==1.9.4 ypy-websocket==0.8.4 zict==3.0.0 zipp==3.17.0 ```