Repository navigation
Packaging lesson using uv instead of flit #345
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
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
062f619
Add uv to dependencies
rantahar 2276e5d
one replacement for UCV before pulling existing PR
rantahar 470e183
Merge branch 'modern-packaging' of github.com:ashwinvis/python-for-sc…
rantahar 400f2e5
add lice2 for licenses
rantahar c180af5
Update packaging to use uv
rantahar 3beec49
Merge github.com:AaltoSciComp/python-for-scicomp
rantahar 146fc6f
Fix package name and file structure
rantahar 8c0da3e
Update year
rantahar d1a2ffc
use uv for exercise environment
rantahar d6740da
use uv to build package
rantahar 6394ce8
use uv instead of twine
rantahar 3c90784
Merge branch 'master' of github.com:rantahar/python-for-scicomp
rantahar 853cd71
Use the init file uv created
rantahar b9b266a
windows which -> where
rantahar 29f155a
replace venv sections with uv init --bare
rantahar 06364c1
Add pixi and uv to the dependencies section and add pixi to the envir…
rantahar e0ca8ea
Rename the package folder
rantahar 6fbba24
fix incorrect tab taf
rantahar 6f5d54f
Fix indentation
rantahar 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,20 +1,22 @@ | ||
| [build-system] | ||
| requires = ["flit_core >=3.11,<4"] | ||
| build-backend = "flit_core.buildapi" | ||
|
|
||
| [project] | ||
| name = "calculator_myname" | ||
| authors = [{name = "Firstname Lastname", email = "firstname.lastname@example.org"}] | ||
| version = "0.1.0" | ||
| description = "Great calculator with amazing mathematics functions" | ||
| readme = "README.md" | ||
| authors = [ | ||
| {name = "Firstname Lastname", email = "firstname.lastname@example.org"} | ||
| ] | ||
| requires-python = ">=3.12" | ||
| license = "MIT" | ||
| license-files = ["LICENSE"] | ||
| dynamic = ["version", "description"] | ||
| dependencies = [ | ||
| "scipy" | ||
| "scipy>=1.18.1", | ||
| ] | ||
|
|
||
| [project.urls] | ||
| Home = "http://www.example.org" | ||
| [build-system] | ||
| requires = ["uv_build>=0.13.9,<0.14.0"] | ||
| build-backend = "uv_build" | ||
|
|
||
| [tool.uv.build-backend] | ||
| module-name = "calculator" | ||
|
|
||
| [tool.flit.module] | ||
| name = "calculator" | ||
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,14 +1,14 @@ | ||
| [build-system] | ||
| requires = ["flit_core >=3.11,<4"] | ||
| build-backend = "flit_core.buildapi" | ||
|
|
||
| [project] | ||
| name = "calculator_myname" | ||
| authors = [{name = "Firstname Lastname", email = "firstname.lastname@example.org"}] | ||
| version = "0.1.0" | ||
| description = "Add your description here" | ||
| readme = "README.md" | ||
| license = "MIT" | ||
| license-files = ["LICENSE"] | ||
| dynamic = ["version", "description"] | ||
| authors = [ | ||
| {name = "Firstname Lastname", email = "firstname.lastname@example.org"} | ||
| ] | ||
| requires-python = ">=3.12" | ||
|
|
||
| [project.urls] | ||
| Home = "http://www.example.org" | ||
|
|
||
| [build-system] | ||
| requires = ["uv_build>=0.13.9,<0.14.0"] | ||
| build-backend = "uv_build" |
Oops, something went wrong.
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.