Skip to content

Commit

Permalink
chore: migrasi ke uv untuk manajemen package python (#326)
Browse files Browse the repository at this point in the history
* chore: migrasi ke uv untuk manajemen package python

Signed-off-by: slowy07 <[email protected]>

* fix: mengganti versi setup action

Signed-off-by: slowy07 <[email protected]>

* chore: test uv github action

Signed-off-by: slowy07 <[email protected]>

* fix: mengganti nama actions

Signed-off-by: slowy07 <[email protected]>

* fix: adding installation for flake

- change to deprecated on pythonapp.yml
- remove build.yml.deprecated

Signed-off-by: slowy07 <[email protected]>

* chore: test menggunakan pre-commit

Signed-off-by: slowy07 <[email protected]>

* fix: missing `run` argument

Signed-off-by: slowy07 <[email protected]>

---------

Signed-off-by: slowy07 <[email protected]>
  • Loading branch information
slowy07 authored Mar 4, 2025
1 parent 5aeb2d1 commit 9d43397
Show file tree
Hide file tree
Showing 8 changed files with 1,395 additions and 33 deletions.
2 changes: 1 addition & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
github: [slowy07, athallahmaajid, KelvinMulyawan]
github: [slowy07, athallahmaajid]
custom: ["https://saweria.co/bellshade"]
25 changes: 0 additions & 25 deletions .github/workflows/build.yml.deprecated

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/directory.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-python@v2
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: Write DIRECTORY.md
run: |
chmod +x scripts/build_directory_md.py
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ jobs:

steps:
- name: Checkout Code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setting python versi 3.11
uses: actions/setup-python@v4
- name: Setting python versi 3.12
uses: actions/setup-python@v5
with:
python-version: "3.11"
python-version: "3.12"

- name: Cache pip dependecies
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt')}}
Expand Down
36 changes: 36 additions & 0 deletions .github/workflows/uv_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: uv python test

on:
pull_request:
branches: [main]

jobs:
build:
# menjalankan testing dengan 3 os yaitu
# linux (ubuntu), windows, dan macOS
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]

steps:
- name: Checkout Code
uses: actions/checkout@v4

- name: Install uv
uses: astral-sh/setup-uv@v5

- name: Setting python
uses: actions/setup-python@v5
with:
python-version-file: ".python-version"

- name: install depedencies
run: uv add -r dev-requirements.txt

- name: run testing
run: |
uv add pre-commit
uv run pre-commit install
uv run pre-commit run --all-files
1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.12
27 changes: 27 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
[project]
name = "python-bellshade"
version = "1.0.0"
description = "Repositori untuk belajar pemograman dalam bahasa indonesia"
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
"beautifulsoup4",
"fake_useragent",
"keras",
"lxml",
"matplotlib",
"numpy",
"opencv-python",
"pandas",
"pillow",
"projectq",
"qiskit",
"requests",
"scikit-fuzzy",
"scikit-learn",
"statsmodels",
"sympy",
"tensorflow",
"types-requests",
"xgboost",
]
1,323 changes: 1,323 additions & 0 deletions uv.lock

Large diffs are not rendered by default.

0 comments on commit 9d43397

Please sign in to comment.