-
Notifications
You must be signed in to change notification settings - Fork 7
feat(package): Migrating to uv #22
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
fccoelho
wants to merge
11
commits into
main
Choose a base branch
from
migrating-to-uv
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
052d104
started migrating to uv for package management
fccoelho c388e3c
modified building script
fccoelho a6f0c30
bumped version to 1.2.0
fccoelho e6651ec
passing tests and updated pyproject to complete compilation of sources.
fccoelho 3f8d560
removed last reference of poetry from build.yaml
fccoelho 440e62c
Fixed syntax on build.yaml
fccoelho d65a57b
updated minconda version
fccoelho ca59235
added uv to conda dependencies
fccoelho cf8f6da
fixed syntax of build.yaml
fccoelho d58be8a
fixed syntax of build.yaml
fccoelho d28ddf3
minor adjustments
fccoelho 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,4 +6,5 @@ dependencies: | |
| - cffi | ||
| - gcc | ||
| - pip | ||
| - uv | ||
| - poetry | ||
This file was deleted.
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,64 +1,58 @@ | ||
| [build-system] | ||
| requires = [ | ||
| "poetry-core>=1.0.0", "setuptools>=41.0.0", "wheel", "cffi"] | ||
| build-backend = "poetry.core.masonry.api" | ||
|
|
||
| [tool.poetry.build] | ||
| script = "pyreaddbc/_build_readdbc.py" | ||
| generate-setup-file = false | ||
|
|
||
| [tool.poetry.group.dev.dependencies] | ||
| pandas = "^2.1.0" | ||
|
|
||
| [tool.poetry] | ||
| [project] | ||
| authors = [ | ||
| { name = "Flavio Codeco Coelho", email = "fccoelho@gmail.com" }, | ||
| { name = "Sandro Loch", email = "es.loch@gmail.com" }, | ||
| ] | ||
| license = { text = "AGPL-3.0" } | ||
| requires-python = "<4,>=3.9" | ||
| dependencies = [ | ||
| "dbfread<3,>=2.0.7", | ||
| "tqdm<5,>=4.64.0", | ||
| "cffi<2,>=1.15.1", | ||
| "pyyaml>=6", | ||
| "setuptools>=75.6.0", | ||
| ] | ||
| name = "pyreaddbc" | ||
| version = "1.1.0" # changed by semantic-release | ||
|
fccoelho marked this conversation as resolved.
|
||
| version = "1.1.0" # changed by semantic-release | ||
| description = "pyreaddbc package" | ||
| readme = "README.md" | ||
| authors = ["Flavio Codeco Coelho <fccoelho@gmail.com>", "Sandro Loch <es.loch@gmail.com>"] | ||
| license = "AGPL-3.0" | ||
| repository = "https://github.com/osl-incubator/pyreaddbc" | ||
| homepage = "https://github.com/osl-incubator/pyreaddbc" | ||
|
|
||
| # Pypi classifiers: https://pypi.org/classifiers/ | ||
| classifiers = [ #! Update me | ||
| "Development Status :: 3 - Alpha", | ||
| "Intended Audience :: Developers", | ||
| "Operating System :: OS Independent", | ||
| "Topic :: Software Development :: Libraries :: Python Modules", | ||
| "License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)", | ||
| "Programming Language :: Python :: 3", | ||
| "Programming Language :: Python :: 3.9", | ||
| "Programming Language :: Python :: 3.10", | ||
| "Programming Language :: Python :: 3.11", | ||
| classifiers = [ | ||
| "Development Status :: 3 - Alpha", | ||
| "Intended Audience :: Developers", | ||
| "Operating System :: OS Independent", | ||
| "Topic :: Software Development :: Libraries :: Python Modules", | ||
| "License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)", | ||
| "Programming Language :: Python :: 3", | ||
| "Programming Language :: Python :: 3.9", | ||
| "Programming Language :: Python :: 3.10", | ||
| "Programming Language :: Python :: 3.11", | ||
| ] | ||
|
|
||
| include = [ | ||
| {path = "pyreaddbc/_readdbc.so"} | ||
| [tool.setuptools] | ||
| py-modules = ["pyreaddbc"] | ||
| ext-modules = [ | ||
| {name = "pyreaddbc._readdbc", sources = ["pyreaddbc/_readdbc.c", "pyreaddbc/c-src/blast.c"], include-dirs = ["pyreaddbc", "pyreaddbc/c-src"]}#, libraries = ["readdbc"], library-dirs = ["pyreaddbc"]}, | ||
| ] | ||
|
|
||
| packages = [ | ||
| { include = "pyreaddbc" }, | ||
| ] | ||
|
|
||
| [tool.poetry.dependencies] | ||
| python = ">=3.9,<4" | ||
| dbfread = ">=2.0.7,<3" | ||
| tqdm = ">=4.64.0,<5" | ||
| cffi = ">=1.15.1,<2" | ||
| pyyaml = ">=6" | ||
| [build-system] | ||
| requires = ["setuptools>=61", "cffi"] | ||
| build-backend = "setuptools.build_meta" | ||
|
|
||
| [tool.poetry.dev-dependencies] | ||
| black = ">=22.6.0" | ||
| isort = ">=5.10.1" | ||
| flake8 = ">=5.0.4" | ||
| pre-commit = ">=2.20.0" | ||
| pytest = ">=7.1.2" | ||
| commitizen = ">=2.32.2" | ||
| chardet = ">=5.2.0" | ||
| [build] | ||
| default = ["python", "-m", "./pyreaddbc/_build_readdbc.py"] | ||
|
|
||
| [tool.black] | ||
| line-length = 79 | ||
| skip-string-normalization = true | ||
| target-version = ["py39", "py310", "py311"] | ||
| target-version = ["py39", "py310", "py311", "py312"] | ||
| exclude = "docs/" | ||
|
|
||
| [project.optional-dependencies] | ||
| dev = [ | ||
| "pytest<9.0.0,>=8.1.1", | ||
| "pandas<3.0.0,>=2.1.0", | ||
| ] | ||
|
|
||
| [project.urls] | ||
| Repository = "https://github.com/AlertaDengue/pyreaddbc" | ||
|
|
||
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This
|character is needed so the CI can identify the next lines are related to theruncommandThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nasty syntax!