From 34b75e18624f79cd4ecce60ef898749216e0f819 Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 19 Jun 2024 17:21:15 +0300 Subject: [PATCH 1/2] devbox changes Co-authored-by: Markus Cozowicz --- =12.9.0 | 13 +++++++++++++ README.md | 18 ++++++++++++++++++ conda.yml | 10 ++++++++++ environment.yml | 27 ++++++++++++++++++++++++++- packages-microsoft-prod.deb | Bin 0 -> 3132 bytes 5 files changed, 67 insertions(+), 1 deletion(-) create mode 100644 =12.9.0 create mode 100644 conda.yml create mode 100644 packages-microsoft-prod.deb diff --git a/=12.9.0 b/=12.9.0 new file mode 100644 index 00000000..8a20556e --- /dev/null +++ b/=12.9.0 @@ -0,0 +1,13 @@ +Requirement already satisfied: azure-storage-blob in /root/miniconda3/envs/fabric/lib/python3.10/site-packages (12.20.0) +Requirement already satisfied: azure-core>=1.28.0 in /root/miniconda3/envs/fabric/lib/python3.10/site-packages (from azure-storage-blob) (1.29.4) +Requirement already satisfied: cryptography>=2.1.4 in /root/miniconda3/envs/fabric/lib/python3.10/site-packages (from azure-storage-blob) (42.0.8) +Requirement already satisfied: typing-extensions>=4.6.0 in /root/miniconda3/envs/fabric/lib/python3.10/site-packages (from azure-storage-blob) (4.12.2) +Requirement already satisfied: isodate>=0.6.1 in /root/miniconda3/envs/fabric/lib/python3.10/site-packages (from azure-storage-blob) (0.6.1) +Requirement already satisfied: requests>=2.18.4 in /root/miniconda3/envs/fabric/lib/python3.10/site-packages (from azure-core>=1.28.0->azure-storage-blob) (2.32.3) +Requirement already satisfied: six>=1.11.0 in /root/miniconda3/envs/fabric/lib/python3.10/site-packages (from azure-core>=1.28.0->azure-storage-blob) (1.16.0) +Requirement already satisfied: cffi>=1.12 in /root/miniconda3/envs/fabric/lib/python3.10/site-packages (from cryptography>=2.1.4->azure-storage-blob) (1.16.0) +Requirement already satisfied: pycparser in /root/miniconda3/envs/fabric/lib/python3.10/site-packages (from cffi>=1.12->cryptography>=2.1.4->azure-storage-blob) (2.22) +Requirement already satisfied: charset-normalizer<4,>=2 in /root/miniconda3/envs/fabric/lib/python3.10/site-packages (from requests>=2.18.4->azure-core>=1.28.0->azure-storage-blob) (3.3.2) +Requirement already satisfied: idna<4,>=2.5 in /root/miniconda3/envs/fabric/lib/python3.10/site-packages (from requests>=2.18.4->azure-core>=1.28.0->azure-storage-blob) (3.7) +Requirement already satisfied: urllib3<3,>=1.21.1 in /root/miniconda3/envs/fabric/lib/python3.10/site-packages (from requests>=2.18.4->azure-core>=1.28.0->azure-storage-blob) (2.2.2) +Requirement already satisfied: certifi>=2017.4.17 in /root/miniconda3/envs/fabric/lib/python3.10/site-packages (from requests>=2.18.4->azure-core>=1.28.0->azure-storage-blob) (2024.6.2) diff --git a/README.md b/README.md index 6a100826..d7a01d21 100644 --- a/README.md +++ b/README.md @@ -97,6 +97,24 @@ Check out my [blog post](https://www.elegantbi.com/post/direct-lake-migration) o * Non-supported objects are not transferred (i.e. calculated columns, relationships using columns with unsupported data types etc.). * Reports used by your original semantic model will be rebinded to your new semantic model. +## Dev instructions + +Run on Linux (or WSL) and setup your conda environment (this might take a bit): + +```bash +conda env create -f environment.yml + +conda activate fabric + +pip install -e . +``` + +To run tests use + +```bash +pytest -s tests +``` + ## Contributing This project welcomes contributions and suggestions. Most contributions require you to agree to a diff --git a/conda.yml b/conda.yml new file mode 100644 index 00000000..00b68fe6 --- /dev/null +++ b/conda.yml @@ -0,0 +1,10 @@ +name: Fabric12Python310CPU +channels: + - conda-forge + - defaults + +dependencies: +# +# Core +# +- pip: \ No newline at end of file diff --git a/environment.yml b/environment.yml index 8e971be0..4682a438 100644 --- a/environment.yml +++ b/environment.yml @@ -1,5 +1,21 @@ name: fabric +channels: + - conda-forge + - defaults + dependencies: +- conda=22.9.0 +- ipython=8.14.0 +- ipywidgets=8.0.7 +- jupyter_server=2.7.3 +- pip=23.1.2 +- python=3.10 +- virtualenv=20.23.1 + +- pythonnet=3.0.1 +- pandas=2.0.3 +- graphviz=8.1.0 +- python-graphviz=0.20.1 - flake8 - mypy - pytest @@ -9,4 +25,13 @@ dependencies: - semantic-link-sempy>=0.7.5 - azure-identity==1.7.1 - azure-storage-blob>=12.9.0 - - pandas-stubs \ No newline at end of file + - pandas-stubs + - semantic-link-sempy + - sphinx_rtd_theme + - pandas==2.0.3 + - numpy<2.0.0 # 2.0.0 breaks the build + - azure-identity==1.16.1 + - azure-keyvault-secrets + - azure-storage-file-datalake==12.3.1 + - azure-storage-blob>=12.9.0 + - anytree \ No newline at end of file diff --git a/packages-microsoft-prod.deb b/packages-microsoft-prod.deb new file mode 100644 index 0000000000000000000000000000000000000000..97fffd3c1efefab02e493a694d425254a0bc19bf GIT binary patch literal 3132 zcmai$S5VUp7R7@gy*Gn^AiYD7DnUe=AH{$oy(18c^eT`9X-Y>-s3L+iA#|h{MXF#> z2r7YqNc|K7hFt@~`5L|1-KUDk~^4x(E1&1_$^lgt`VRcs)@3zw;1fHH|+TTo{E? z=|RS(@(v*COHCp&Fy$Jz?4+wA0c9cP!IiBa_YzZX z51iDA5gG+6!)Ge@ zK;An@^tgt_23VHmD>+?G-)na^u0UIK2;%K_>ZWb+trxw_0t2jYb=HG7)_RRp7tJFP zqg+!@hsl&43hbuo>oXnZvNr(fTofl+jNi+xD4AoFlfx`ZK>5;8noAVT;=G~AFRA>5 z7=dK2>|386yWElCEO;r##r0FhwvtdILdEa3p+euBCHYs@`KQC*pVGN1t?E88)oL1o zFN|07Ub7yrm)5Gh;%Zpvcdc;BM}kq6?DW|5(^z3_poB`M!7Y8|^oK;-rLT zIk7312Tb92oqaS5h15<5G$KrgFPrSyF3*n*LRX~AH#E4#3iKhVHy{$;0uaovn|_TK znwm5+dygIA@*PU*d#VW!k?PRCnHyHCd9yPs!05yg@?rwvSSUMm66oq5phHN=?)nTv z-oCx5!CGdBI(gJCEKA3}xnE+i)84hg7<|ZQs5vL1++PoS^TD8X3I5`}eN(O7+NX}M z1+j4}?DqS#m8vF~T-ft{L+y?N>7C>j_S(DMkxO&U*GmC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YTti>d6DUX{LHSsvQmD%9v@>IIFzno@p*zDQjnz`Y zZY%c1?)7F`7n#Y|pvUXM0;E_uvBlwXi)F!y^?dX}?q?voSaD;WW_>x2?^tI8D4_=f zf^h~&!_1HEf@LKvl+1JIDbMvH>-sQFxm5?=>K&_HxB&F#2LQ`lMQ5a zy8ER^e`cT@@uu-x;@L05gy=A#D$eRBUe0?k{;2@JkrbWyc}InH9$W89Ou7TYt#j>R zbXyzRsbB+Vn33BVEt9HV%Sv`ElFnBV)lx`OhmNQcfVhV4A794jzI5y!k~$TbI)6oD za5$FMm5>~VYegAbhpLTY@nO=$XDxCjc_qKrHD#5i%Dq$TG0&Olzx4Xc;scE#IsJWsb)d>zA- z!!5n~PPi3}ZGGBeY5LB|;@gIhgJxa9oBl@-E?GopR>ze{b F{0ATl^LYRO literal 0 HcmV?d00001 From 7020dad0ff0be1271c82c99a3b808bc56130a2d6 Mon Sep 17 00:00:00 2001 From: Markus Cozowicz Date: Fri, 21 Jun 2024 10:47:46 +0000 Subject: [PATCH 2/2] fix dependencies --- environment.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/environment.yml b/environment.yml index 4682a438..ba08c463 100644 --- a/environment.yml +++ b/environment.yml @@ -23,7 +23,6 @@ dependencies: - pytest-mock - pip: - semantic-link-sempy>=0.7.5 - - azure-identity==1.7.1 - azure-storage-blob>=12.9.0 - pandas-stubs - semantic-link-sempy @@ -33,5 +32,4 @@ dependencies: - azure-identity==1.16.1 - azure-keyvault-secrets - azure-storage-file-datalake==12.3.1 - - azure-storage-blob>=12.9.0 - anytree \ No newline at end of file