-
Notifications
You must be signed in to change notification settings - Fork 3
chore/python/bump #128
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
Merged
Merged
chore/python/bump #128
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
1a8862f
chore(python): upgrade python version
prousso a83ea37
chore(deps): migrate to uv
prousso ff0b45f
chore(deps): migrate to pyproject.toml
prousso c287b9a
chore(pre-commit): bump hooks
prousso f1cba19
chore(ci): clean workflow
prousso ea5434d
chore(python): keep python3.10 support
prousso File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| python 3.9.16 3.10.9 3.11.1 | ||
| python 3.10.19 3.11.1 3.12.3 3.13.5 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,38 +1,31 @@ | ||
| PYTHON?=venv/bin/python3 | ||
| PIP_COMPILE?=$(PYTHON) -m uv pip compile --quiet --generate-hashes --strip-extras --python-platform=linux | ||
| PIP_SYNC?=$(PYTHON) -m uv pip sync | ||
|
|
||
| # Initialize the development environment, e.g. the Python dependencies | ||
| init: venv dev-requirements.txt | ||
| source venv/bin/activate && \ | ||
| pip-sync \ | ||
| --quiet \ | ||
| $(PIP_SYNC) \ | ||
| dev-requirements.txt | ||
| source venv/bin/activate && \ | ||
| pre-commit install | ||
|
|
||
| # Make sure the virtualenv exists | ||
| venv: | ||
| $(PYTHON_EXEC) -m venv venv | ||
| source venv/bin/activate && \ | ||
| pip install --quiet --upgrade pip | ||
| source venv/bin/activate && \ | ||
| pip install --quiet pip-tools | ||
| pip install --quiet --upgrade pip uv | ||
|
|
||
| update_requirements: | ||
| # Remove the virtualenv and the requirements lock files | ||
| rm -rf venv requirements.txt dev-requirements.txt | ||
| # Recrete the virtualenv | ||
| $(MAKE) venv | ||
| # Generate the lock file for production requirements | ||
| source venv/bin/activate && \ | ||
| pip-compile \ | ||
| --quiet \ | ||
| --generate-hashes \ | ||
| --output-file requirements.txt | ||
| $(PIP_COMPILE) \ | ||
| --output-file requirements.txt \ | ||
| pyproject.toml | ||
| # Generate the lock file for development requirements | ||
| source venv/bin/activate && \ | ||
| pip-compile \ | ||
| --quiet \ | ||
| --generate-hashes \ | ||
| $(PIP_COMPILE) \ | ||
| --output-file dev-requirements.txt \ | ||
| setup.py \ | ||
| pyproject.toml \ | ||
| dev-requirements.in | ||
| # Install all the requirements in the virtualenv | ||
| $(MAKE) init |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,60 @@ | ||
| [build-system] | ||
| requires = ["setuptools"] | ||
| build-backend = "setuptools.build_meta" | ||
|
|
||
| [project] | ||
| name = "dep_check" | ||
| dynamic = ["version"] | ||
| description = "Python Dependency Check Tool" | ||
| readme = "README.md" | ||
| requires-python = ">=3.9" | ||
| license = {text = "MIT License"} | ||
| authors = [ | ||
| {name = "LumApps", email = "core-devs@lumapps.com"} | ||
| ] | ||
| keywords = ["python", "Dependency", "linter", "architecture", "quality", "dep-check", "dep_check"] | ||
| classifiers = [ | ||
| "Development Status :: 2 - Pre-Alpha", | ||
| "Intended Audience :: Developers", | ||
| "License :: OSI Approved :: MIT License", | ||
| "Natural Language :: English", | ||
| "Programming Language :: Python :: 3.9", | ||
| "Programming Language :: Python :: 3.10", | ||
| "Programming Language :: Python :: 3.11", | ||
| ] | ||
| dependencies = [ | ||
| "Click", | ||
| "PyYAML", | ||
| "Jinja2", | ||
| "ordered-set", | ||
| ] | ||
|
|
||
| [project.urls] | ||
| Homepage = "https://github.com/lumapps/dep-check" | ||
| Download = "https://github.com/lumapps/dep-check/tarball/master" | ||
|
|
||
| [project.scripts] | ||
| dep_check = "dep_check.main:main" | ||
|
|
||
| [tool.setuptools] | ||
| zip-safe = false | ||
| include-package-data = true | ||
|
|
||
| [tool.setuptools.packages.find] | ||
| exclude = ["doc", "tests", "tests.*"] | ||
|
|
||
| [tool.setuptools.dynamic] | ||
| version = {attr = "dep_check.__version__"} | ||
|
|
||
| [tool.isort] | ||
| # Apply the isort configuration proposed by black | ||
| force_grid_wrap = 0 | ||
| include_trailing_comma = true | ||
| line_length = 88 | ||
| multi_line_output = 3 | ||
| use_parentheses = true | ||
|
|
||
| [tool.mypy] | ||
| [[tool.mypy.overrides]] | ||
| module = "dep_check.infra.lib" | ||
| ignore_missing_imports = true |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.