Skip to content

Bump pywin32 from 227 to 301 in /src #9

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 74 commits into
base: Current
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
74 commits
Select commit Hold shift + click to select a range
250e509
Cleanup
NikolaRHristov Oct 29, 2023
2a2f9ad
squash!
NikolaRHristov Oct 29, 2023
87f5699
squash!
NikolaRHristov Oct 29, 2023
bf45b7d
squash!
NikolaRHristov Oct 29, 2023
58ab9c7
squash!
NikolaRHristov Oct 29, 2023
703cd3f
squash!
NikolaRHristov Oct 30, 2023
701899e
Merge remote-tracking branch 'upstream/dev' into dev
NikolaRHristov Nov 9, 2023
be2e4c5
squash!
NikolaRHristov Nov 9, 2023
108df4d
squash!
NikolaRHristov Nov 9, 2023
d8d4131
Merge remote-tracking branch 'upstream/dev' into dev
NikolaRHristov Nov 13, 2023
17273cc
squash!
NikolaRHristov Nov 14, 2023
60cd5ea
squash!
NikolaRHristov Nov 14, 2023
c309d6a
squash!
NikolaRHristov Nov 14, 2023
74d1ce3
squash!
NikolaRHristov Nov 15, 2023
8b3c9f2
Merge remote-tracking branch 'upstream/dev'
NikolaRHristov Nov 16, 2023
121937d
squash!
NikolaRHristov Nov 17, 2023
e9d860c
squash!
NikolaRHristov Nov 17, 2023
03d679f
Bump pillow from 8.1.1 to 10.0.1 in /Source
dependabot[bot] Nov 17, 2023
51f223a
squash!
NikolaRHristov Nov 17, 2023
daa3789
squash!
NikolaRHristov Nov 17, 2023
adf9660
squash!
NikolaRHristov Nov 18, 2023
ebfb2e4
squash!
NikolaRHristov Nov 18, 2023
d041b13
squash!
NikolaRHristov Nov 20, 2023
f24c991
squash!
NikolaRHristov Nov 20, 2023
b84af5a
squash!
NikolaRHristov Nov 22, 2023
a4154db
squash!
NikolaRHristov Nov 22, 2023
7e2a568
squash!
NikolaRHristov Nov 27, 2023
b6bc881
squash!
NikolaRHristov Nov 27, 2023
04e59d9
squash!
NikolaRHristov Nov 27, 2023
734eab0
squash!
NikolaRHristov Nov 28, 2023
2eac829
squash!
NikolaRHristov Nov 30, 2023
f9b10b7
squash!
NikolaRHristov Dec 1, 2023
f00f454
squash!
NikolaRHristov Dec 3, 2023
4128e59
squash!
NikolaRHristov Dec 4, 2023
002368a
squash!
NikolaRHristov Dec 10, 2023
8b1ed7f
Merge remote-tracking branch 'upstream/dev'
NikolaRHristov Dec 10, 2023
06846ec
squash!
NikolaRHristov Dec 11, 2023
c2ad634
squash!
NikolaRHristov Dec 12, 2023
ef13ae8
squash!
NikolaRHristov Dec 14, 2023
06c154e
squash!
NikolaRHristov Dec 14, 2023
aa6b2b4
squash!
NikolaRHristov Dec 15, 2023
173d094
squash!
NikolaRHristov Dec 16, 2023
8e920cd
squash!
NikolaRHristov Dec 16, 2023
ce5dcb2
squash!
NikolaRHristov Dec 18, 2023
5b83d30
squash!
NikolaRHristov Dec 18, 2023
ecfdf79
squash!
NikolaRHristov Dec 18, 2023
a227b25
squash!
NikolaRHristov Dec 18, 2023
c5057f1
squash!
NikolaRHristov Dec 19, 2023
923f733
Merge pull request #1 from CodeEditorLand/dependabot/pip/Source/pillo…
NikolaRHristov Dec 19, 2023
0952b1e
Bump pywin32 from 227 to 301 in /Source
dependabot[bot] Dec 19, 2023
ea032c8
Merge pull request #4 from CodeEditorLand/dependabot/pip/Source/pywin…
github-actions[bot] Dec 19, 2023
2b3d2e6
squash!
NikolaRHristov Dec 19, 2023
45f9580
Merge branch 'main' of github.com:CodeEditorLand/LandPythonDevicesimu…
NikolaRHristov Dec 19, 2023
af0a1d3
squash!
NikolaRHristov Dec 19, 2023
74e67db
squash!
NikolaRHristov Dec 26, 2023
c87afc4
squash!
NikolaRHristov Dec 28, 2023
07560de
squash!
NikolaRHristov Jan 1, 2024
a6eaa01
squash!
NikolaRHristov Jan 4, 2024
6689eb2
squash!
NikolaRHristov Jan 11, 2024
e4cc533
squash!
NikolaRHristov Jan 16, 2024
0656c4f
squash!
NikolaRHristov Jan 16, 2024
d252ff3
squash!
NikolaRHristov Jan 20, 2024
b04d120
squash!
NikolaRHristov Jan 22, 2024
210ca25
squash!
NikolaRHristov Jan 23, 2024
2d993e6
squash!
NikolaRHristov Jan 25, 2024
cf4a826
squash!
NikolaRHristov Jan 25, 2024
d9d30ec
squash!
NikolaRHristov Jan 25, 2024
4a1bbb3
Merge remote-tracking branch 'upstream/dev'
NikolaRHristov Jan 31, 2024
11d9a9b
squash!
NikolaRHristov Jan 31, 2024
6f68351
Bump pillow from 8.1.1 to 10.2.0 in /src
dependabot[bot] Jan 31, 2024
c39c119
Bump requests from 2.22.0 to 2.31.0 in /src
dependabot[bot] Jan 31, 2024
706fa19
Merge pull request #6 from CodeEditorLand/dependabot/pip/src/pillow-1…
github-actions[bot] Jan 31, 2024
57c75eb
Merge pull request #7 from CodeEditorLand/dependabot/pip/src/requests…
github-actions[bot] Jan 31, 2024
8bd374f
Bump pywin32 from 227 to 301 in /src
dependabot[bot] Jan 31, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
version: 2
enable-beta-ecosystems: true

updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"

- package-ecosystem: "pip"
directory: "/Source"
schedule:
interval: "daily"
versioning-strategy: increase

- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "daily"
versioning-strategy: increase
45 changes: 45 additions & 0 deletions .github/workflows/Dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Dependabot

concurrency:
group: Dependabot-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
security-events: write
contents: write
pull-requests: write

on:
workflow_dispatch:
pull_request:

jobs:
Approve:
runs-on: ubuntu-latest

if: ${{ github.actor == 'dependabot[bot]' }}

steps:
- uses: dependabot/fetch-metadata@v1.6.0
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"

- run: gh pr review --approve "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

Merge:
runs-on: ubuntu-latest

if: ${{ github.actor == 'dependabot[bot]' }}

steps:
- uses: dependabot/fetch-metadata@v1.6.0
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"

- run: gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
43 changes: 43 additions & 0 deletions .github/workflows/NPM.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: NPM

concurrency:
group: NPM-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
security-events: write
contents: write
pull-requests: write

on:
workflow_dispatch:
release:
types: [created]
workflow_call:

jobs:
Publish:
runs-on: ubuntu-latest

permissions:
contents: read
id-token: write

steps:
- uses: actions/checkout@v4.1.1

- uses: actions/setup-node@v4.0.1
with:
node-version: "18"
registry-url: "https://registry.npmjs.org"

- run: npm install -g npm

- name: Publish .
continue-on-error: true
working-directory: .
run: |
npm install --legacy-peer-deps
npm publish --legacy-peer-deps --provenance
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
102 changes: 102 additions & 0 deletions .github/workflows/Node.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
name: Node

concurrency:
group: Node-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
security-events: write
contents: write
pull-requests: write

on:
workflow_dispatch:
push:
branches: [main]
pull_request:
branches: [main]
workflow_call:

jobs:
Pre-Publish:
runs-on: ubuntu-latest

env:
ADBLOCK: true
TELEMETRY_DISABLED: 1
ASTRO_TELEMETRY_DISABLED: 1
AUTOMATEDLAB_TELEMETRY_OPTOUT: 1
AZURE_CORE_COLLECT_TELEMETRY: 0
CHOOSENIM_NO_ANALYTICS: 1
DIEZ_DO_NOT_TRACK: 1
DO_NOT_TRACK: 1
DOTNET_CLI_TELEMETRY_OPTOUT: 1
DOTNET_INTERACTIVE_CLI_TELEMETRY_OPTOUT: 1
ET_NO_TELEMETRY: 1
GATSBY_TELEMETRY_DISABLED: 1
GATSBY_TELEMETRY_OPT_OUT: 1
GATSBY_TELEMETRY_OPTOUT: 1
HASURA_GRAPHQL_ENABLE_TELEMETRY: false
HINT_TELEMETRY: off
HOMEBREW_NO_ANALYTICS: 1
INFLUXD_REPORTING_DISABLED: true
ITERATIVE_DO_NOT_TRACK: 1
NEXT_TELEMETRY_DEBUG: 1
NEXT_TELEMETRY_DISABLED: 1
NG_CLI_ANALYTICS: false
NUXT_TELEMETRY_DISABLED: 1
PIN_DO_NOT_TRACK: 1
POWERSHELL_TELEMETRY_OPTOUT: 1
SAM_CLI_TELEMETRY: 0
STNOUPGRADE: 1
STRIPE_CLI_TELEMETRY_OPTOUT: 1

strategy:
matrix:
node-version: [18, 19, 20]

steps:
- uses: actions/checkout@v4.1.1

- uses: pnpm/action-setup@v2.4.0
with:
version: 8.6.12
run_install: |
- recursive: true
args: [
--link-workspace-packages=true,
--lockfile-only,
--prefer-frozen-lockfile=false,
--shamefully-hoist=false,
--shared-workspace-lockfile=true,
--strict-peer-dependencies=false,
--unsafe-perm=true
]

- uses: actions/setup-node@v4.0.1
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
cache-dependency-path: ./pnpm-lock.yaml

- run: pnpm install
working-directory: .

- run: pnpm run build
working-directory: .

- uses: actions/upload-artifact@v4.3.0
with:
name: .-Node-${{ matrix.node-version }}-Target
path: ./Target

- run: pnpm run prepublishOnly
working-directory: .

- uses: actions/upload-artifact@v4.3.0
with:
name: .-Node-${{ matrix.node-version }}-Target
path: ./Target

- run: pnpm run test
working-directory: .
4 changes: 4 additions & 0 deletions Source/adafruit_circuitplayground/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# added compatibility for new import structure in CircuitPython
# https://github.com/adafruit/Adafruit_CircuitPython_CircuitPlayground/pull/79

from .express import cpx as cp
78 changes: 78 additions & 0 deletions Source/adafruit_circuitplayground/constants.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.


class EXPRESS_STATE:
BUTTON_A = "button_a"
BUTTON_B = "button_b"
ACCELERATION = "acceleration"
BRIGHTNESS = "brightness"
PIXELS = "pixels"
RED_LED = "red_led"
SWITCH = "switch"
TEMPERATURE = "temperature"
LIGHT = "light"
MOTION_X = "motion_x"
MOTION_Y = "motion_y"
MOTION_Z = "motion_z"
TOUCH = "touch"
SHAKE = "shake"
DETECT_TAPS = "detect_taps"


ASSIGN_PIXEL_TYPE_ERROR = (
"The pixel color value type should be tuple, list or hexadecimal."
)

BRIGHTNESS_RANGE_ERROR = "The brightness value should be a number between 0 and 1."

CPX = "CPX"

INDEX_ERROR = (
"The index is not a valid number, you can access the Neopixels from 0 to 9."
)

MAC_OS = "darwin"

NOT_IMPLEMENTED_ERROR = "This method is not implemented by the simulator"

NOT_SUITABLE_FILE_ERROR = (
"Your .wav file is not suitable for the Circuit Playground Express."
)

PIXEL_RANGE_ERROR = (
"The pixel hexadicimal color value should be in range #000000 and #FFFFFF."
)

VALID_PIXEL_ASSIGN_ERROR = "The pixel color value should be a tuple with three values between 0 and 255 or a hexadecimal color between 0x000000 and 0xFFFFFF."

ERROR_SENDING_EVENT = "Error trying to send event to the process : "

TIME_DELAY = 0.03


EVENTS_BUTTON_PRESS = [
EXPRESS_STATE.BUTTON_A,
EXPRESS_STATE.BUTTON_B,
EXPRESS_STATE.SWITCH,
]
EVENTS_SENSOR_CHANGED = [
EXPRESS_STATE.TEMPERATURE,
EXPRESS_STATE.LIGHT,
EXPRESS_STATE.MOTION_X,
EXPRESS_STATE.MOTION_Y,
EXPRESS_STATE.MOTION_Z,
]

ALL_EXPECTED_INPUT_EVENTS = [
EXPRESS_STATE.BUTTON_A,
EXPRESS_STATE.BUTTON_B,
EXPRESS_STATE.SWITCH,
EXPRESS_STATE.TEMPERATURE,
EXPRESS_STATE.LIGHT,
EXPRESS_STATE.SHAKE,
EXPRESS_STATE.MOTION_X,
EXPRESS_STATE.MOTION_Y,
EXPRESS_STATE.MOTION_Z,
EXPRESS_STATE.TOUCH,
]
Loading