Repository navigation
Use pyproject and remove setup.py #188
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
5 commits
Select commit
Hold shift + click to select a range
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 |
|---|---|---|
|
|
@@ -5,3 +5,5 @@ dist | |
| MANIFEST | ||
| bagit.egg-info | ||
| .idea | ||
| uv.lock | ||
| *.log | ||
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 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
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,14 +1,15 @@ | ||
| [build-system] | ||
| requires = ["setuptools>=64", "setuptools-scm>=8"] | ||
| build-backend = "setuptools.build_meta" | ||
| requires = ["hatchling", "hatch-vcs"] | ||
| build-backend = "hatchling.build" | ||
|
|
||
| [project] | ||
| name = "bagit" | ||
| dynamic = ["version"] | ||
| description = "Create and validate BagIt packages" | ||
| readme = {file = "README.rst", content-type = "text/x-rst"} | ||
| authors = [ | ||
| { name = "Ed Summers", email = "[email protected]" }, | ||
|
acdha marked this conversation as resolved.
Resolved
|
||
| { name = "Chris Adams", email = "[email protected]" }, | ||
| { name = "Ed Summers", email = "[email protected]" } | ||
| ] | ||
| classifiers = [ | ||
| "Intended Audience :: Developers", | ||
|
|
@@ -18,6 +19,10 @@ classifiers = [ | |
| "Topic :: Software Development :: Libraries :: Python Modules", | ||
| "Topic :: System :: Filesystems", | ||
| ] | ||
| requires-python = ">= 3.9" | ||
|
|
||
| [project.scripts] | ||
| "bagit" = "bagit:main" | ||
|
|
||
| [project.urls] | ||
| Homepage = "https://libraryofcongress.github.io/bagit-python/" | ||
|
|
@@ -27,14 +32,34 @@ Homepage = "https://libraryofcongress.github.io/bagit-python/" | |
| [tool.ruff] | ||
| target-version = "py38" | ||
|
|
||
|
|
||
|
acdha marked this conversation as resolved.
Resolved
|
||
| [tool.setuptools_scm] | ||
|
|
||
| [tool.isort] | ||
| line_length = 110 | ||
| default_section = "THIRDPARTY" | ||
| known_first_party = "bagit" | ||
|
|
||
|
acdha marked this conversation as resolved.
Resolved
|
||
| [tool.pytest.ini_options] | ||
| testpaths = ["test.py"] | ||
| addopts = "-v" | ||
|
|
||
| [tool.coverage.run] | ||
| branch = true | ||
| include = "bagit.py" | ||
| include = "src" | ||
|
|
||
| [tool.hatch.version] | ||
| source = "vcs" | ||
|
|
||
| [tool.hatch.build.targets.sdist] | ||
| packages = ["src/bagit"] | ||
| include = [ | ||
| "src/bagit/*.py", | ||
| "src/bagit/locale/*.po", | ||
| "src/bagit/locale/*.mo", | ||
| ] | ||
|
|
||
|
|
||
|
acdha marked this conversation as resolved.
Resolved
|
||
| [dependency-groups] | ||
| dev = [ | ||
| "coverage>=7.8.2", | ||
| "pytest>=8.4.0", | ||
| "ruff>=0.11.12", | ||
| ] | ||
This file was deleted.
Oops, something went wrong.
|
acdha marked this conversation as resolved.
Resolved
|
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 |
|---|---|---|
|
|
@@ -8,7 +8,7 @@ msgid "" | |
| msgstr "" | ||
| "Project-Id-Version: PACKAGE VERSION\n" | ||
| "Report-Msgid-Bugs-To: \n" | ||
| "POT-Creation-Date: 2018-06-26 10:28-0400\n" | ||
| "POT-Creation-Date: 2025-06-05 12:14-0400\n" | ||
| "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" | ||
| "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | ||
| "Language-Team: LANGUAGE <[email protected]>\n" | ||
|
|
@@ -226,20 +226,23 @@ msgid "" | |
| "%(found_byte_count)d bytes" | ||
| msgstr "" | ||
|
|
||
| msgid "Bag validation failed" | ||
| msgid "Bag is incomplete" | ||
| msgstr "" | ||
|
|
||
| #, python-format | ||
| msgid "Unable to calculate file hashes for %s" | ||
| msgstr "" | ||
|
|
||
| msgid "Bag validation failed" | ||
| msgstr "" | ||
|
|
||
| msgid "bagit.txt must not contain a byte-order mark" | ||
| msgstr "" | ||
|
|
||
| #, python-format | ||
| msgid "" | ||
| "%(path)s %(algorithm)s validation failed: expected=\"%(expected)s\" found=" | ||
| "\"%(found)s\"" | ||
| "%(path)s %(algorithm)s validation failed: expected=\"%(expected)s\" " | ||
| "found=\"%(found)s\"" | ||
| msgstr "" | ||
|
|
||
| #, python-format | ||
|
|
@@ -345,16 +348,23 @@ msgstr "" | |
| msgid "bagit-python version %s" | ||
| msgstr "" | ||
|
|
||
| msgid "The number of processes must be 0 or greater" | ||
| msgid "The number of processes must be greater than 0" | ||
| msgstr "" | ||
|
|
||
| msgid "--fast is only allowed as an option for --validate!" | ||
| msgstr "" | ||
|
|
||
| msgid "--completeness-only is only allowed as an option for --validate!" | ||
| msgstr "" | ||
|
|
||
| #, python-format | ||
| msgid "%s valid according to Payload-Oxum" | ||
| msgstr "" | ||
|
|
||
| #, python-format | ||
| msgid "%s is complete and valid according to Payload-Oxum" | ||
| msgstr "" | ||
|
|
||
| #, python-format | ||
| msgid "%s is valid" | ||
| msgstr "" | ||
|
|
||
File renamed without changes.
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.