Skip to content

Commit aef8301

Browse files
committed
init
1 parent 3e3564f commit aef8301

File tree

16 files changed

+1677
-243
lines changed

16 files changed

+1677
-243
lines changed

.devcontainer/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM mcr.microsoft.com/devcontainers/python:3.11-bookworm
1+
FROM mcr.microsoft.com/devcontainers/python:3.12-bookworm
22

33
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
44
&& apt-get -y install --no-install-recommends \

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"dockerfile": "Dockerfile",
55
"context": "."
66
},
7-
"postStartCommand": "bash -i /workspace/scripts/init-env.sh",
7+
// "postStartCommand": "bash -i /workspace/scripts/init-env.sh",
88
"customizations": {
99
"vscode": {
1010
"extensions": [

.devcontainer/scripts/init-env.sh

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
1-
#!/bin/bash
2-
3-
# Define the virtual environment directory
4-
VENV_DIR=".venv"
5-
6-
# Check if the virtual environment already exists
7-
if [[ ! -d "$VENV_DIR" ]]; then
8-
echo "Creating virtual environment..."
9-
python -m venv "$VENV_DIR"
10-
echo "Virtual environment created at $VENV_DIR"
11-
else
12-
echo "Virtual environment already exists."
13-
fi
14-
15-
# Activate the virtual environment
16-
if [[ -f "$VENV_DIR/bin/activate" ]]; then
17-
echo "Activating virtual environment..."
18-
source "$VENV_DIR/bin/activate"
19-
echo "Virtual environment activated."
20-
poetry add ipykernel
21-
poetry install
22-
23-
source .venv/bin/activate
24-
25-
else
26-
echo "Error: Unable to activate virtual environment."
27-
exit 1
28-
fi
1+
#!/bin/bash
2+
3+
# Define the virtual environment directory
4+
VENV_DIR=".venv"
5+
6+
# Check if the virtual environment already exists
7+
if [[ ! -d "$VENV_DIR" ]]; then
8+
echo "Creating virtual environment..."
9+
python -m venv "$VENV_DIR"
10+
echo "Virtual environment created at $VENV_DIR"
11+
else
12+
echo "Virtual environment already exists."
13+
fi
14+
15+
# Activate the virtual environment
16+
if [[ -f "$VENV_DIR/bin/activate" ]]; then
17+
echo "Activating virtual environment..."
18+
source "$VENV_DIR/bin/activate"
19+
echo "Virtual environment activated."
20+
poetry add ipykernel
21+
poetry install
22+
23+
source .venv/bin/activate
24+
25+
else
26+
echo "Error: Unable to activate virtual environment."
27+
exit 1
28+
fi

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,3 +169,6 @@ cython_debug/
169169

170170
# PyPI configuration file
171171
.pypirc
172+
173+
**/**/.scratch
174+
**/tests/*_integration.py

.vscode/launch.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"name": "Python Debugger: Current File",
9+
"type": "debugpy",
10+
"request": "launch",
11+
"program": "${file}",
12+
"console": "integratedTerminal",
13+
"justMyCode": false
14+
}
15+
]
16+
}

.vscode/settings.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
{
2-
"python.defaultInterpreterPath": ".venv/bin/python",
3-
"python.formatting.provider": "black",
4-
"editor.formatOnSave": true,
5-
"editor.codeActionsOnSave": {
6-
"source.organizeImports": "always"
7-
}
1+
{
2+
"python.defaultInterpreterPath": ".venv/bin/python",
3+
"python.formatting.provider": "black",
4+
"editor.formatOnSave": true,
5+
"editor.codeActionsOnSave": {
6+
"source.organizeImports": "always"
7+
}
88
}

poetry.lock

Lines changed: 1445 additions & 63 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
11
[project]
2-
name = "source-faker"
2+
name = "source-msgraph"
33
version = "0.1.0"
44
description = ""
55
authors = [
66
{name = "geekwhocodes",email = "ganeshraskar@outlook.com"}
77
]
88
readme = "README.md"
9-
requires-python = ">=3.11"
9+
requires-python = ">=3.12,<4"
1010
dependencies = [
1111
"pyspark (==4.0.0.dev2)",
12-
"faker (>=36.1.1,<37.0.0)",
13-
"ipykernel (>=6.29.5,<7.0.0)"
12+
"msgraph-sdk (>=1.21.0,<2.0.0)",
13+
"azure-identity (>=1.20.0,<2.0.0)",
14+
"microsoft-kiota-serialization-json (>=1.9.2,<2.0.0)",
1415
]
1516

1617
[tool.poetry]
17-
packages = [{include = "source_faker", from = "src"}]
18+
packages = [{include = "source_msgraph", from = "src"}]
1819

1920

2021
[tool.poetry.group.dev.dependencies]
@@ -28,6 +29,7 @@ pyarrow = "^19.0.1"
2829
grpcio = "^1.70.0"
2930
grpcio-status = "^1.60.1"
3031
pandas = "^2.2.0"
32+
ipykernel = "^6.29.5"
3133

3234
[build-system]
3335
requires = ["poetry-core>=2.0.0,<3.0.0"]

src/source_faker/source.py

Lines changed: 0 additions & 118 deletions
This file was deleted.

src/source_faker/spark.py

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)