-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Direct usage of `setup.py` (that is, calling `python setup.py some_command` to do builds and such) was deprecated and has not been supported for quite a while! This moves everything to `pyproject.toml` (the new format for declaring package metadata). It *seems* like `pyproject.toml` supports all the nice things now, so we can also drop `setup.cfg`. (This seems like a good time to do this, since there are some other semi-breaking changes on tap, like [rethinking how rate limit errors are handled](#137 (comment)).) --------- Co-authored-by: Dan Allan <[email protected]>
- Loading branch information
1 parent
2220fc2
commit 790ad74
Showing
17 changed files
with
106 additions
and
3,129 deletions.
There are no files selected for viewing
This file contains 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 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,4 @@ | ||
node: $Format:%H$ | ||
node-date: $Format:%cI$ | ||
describe-name: $Format:%(describe:tags=true,match=*[0-9]*)$ | ||
ref-names: $Format:%D$ |
This file contains 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,2 +1,2 @@ | ||
wayback/_version.py export-subst | ||
.git_archival.txt export-subst | ||
*.py diff=python |
This file contains 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 |
---|---|---|
|
@@ -81,3 +81,6 @@ target/ | |
|
||
#Ipython Notebook | ||
.ipynb_checkpoints | ||
|
||
# generated by hatch-vcs | ||
wayback/_version.py |
This file contains 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 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 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,82 @@ | ||
[project] | ||
name = "wayback" | ||
# version = "0.0.1" | ||
dynamic=["version"] | ||
description = "Python API to Internet Archive Wayback Machine" | ||
readme = "README.rst" | ||
maintainers = [ | ||
{ name = "Rob Brackett", email = "[email protected]" }, | ||
{ name="Environmental Data Governance Initiative", email="[email protected]" }, | ||
] | ||
# TODO: put contributors in `authors` field? | ||
# authors = [ { name="XYZ" }, ... ] | ||
license = {text = "BSD (3-clause)"} | ||
requires-python = ">=3.8" | ||
classifiers = [ | ||
"Development Status :: 3 - Alpha", | ||
"Programming Language :: Python :: 3", | ||
"Operating System :: OS Independent", | ||
# It would be nice to have a license classifier here, but there isn't one: | ||
# https://github.com/pypa/trove-classifiers/issues/70 | ||
] | ||
dependencies = [ | ||
"requests", | ||
"urllib3>=1.20", | ||
] | ||
|
||
[project.optional-dependencies] | ||
# For developing the package (running tests, packaging, etc.) but not needed | ||
# for _using_ it. Some tooling requires newer Python versions than the package | ||
# itself (>=3.8). This depends on the `test` extra, which _does_ work on the | ||
# same Python versions as the main package source. | ||
dev = [ | ||
"build ~=1.0.3", | ||
"check-wheel-contents ~=0.6.0", | ||
"flake8 ~=6.1.0", | ||
"twine ~=4.0.2", | ||
"wayback[test]" | ||
] | ||
# For building documentation. These are separated from dev because there are a | ||
# a variety of compatibility issues with our other dev dependencies on Python | ||
# versions < 3.10 (which we support), so you have to install them in a separate | ||
# environment from the other dev dependencies. | ||
docs = [ | ||
"sphinx ~=7.2.6", | ||
"ipython ~=8.16.1", | ||
"numpydoc ~=1.6.0", | ||
"sphinx-copybutton ~=0.5.2", | ||
"sphinx_rtd_theme ~=1.3.0", | ||
] | ||
# For running tests. | ||
test = [ | ||
"codecov", | ||
"coverage", | ||
"requests-mock", | ||
"pytest", | ||
"vcrpy", | ||
] | ||
|
||
[project.urls] | ||
"Homepage" = "https://github.com/edgi-govdata-archiving/wayback" | ||
"Documentation" = "https://wayback.readthedocs.io/en/stable/" | ||
"Changelog" = "https://wayback.readthedocs.io/en/stable/release-history.html" | ||
"Source code" = "https://github.com/edgi-govdata-archiving/wayback" | ||
"Issues" = "https://github.com/edgi-govdata-archiving/wayback/issues" | ||
|
||
[build-system] | ||
requires = ["hatchling ~=1.19", "hatch-vcs ~=0.4"] | ||
build-backend = "hatchling.build" | ||
|
||
[tool.hatch] | ||
version.source = "vcs" | ||
build.hooks.vcs.version-file = "wayback/_version.py" | ||
|
||
[tool.hatch.build.targets.sdist] | ||
exclude = [".git_archival.txt"] | ||
|
||
[tool.hatch.build.targets.wheel] | ||
packages = ["wayback"] | ||
exclude = ["wayback/tests/*"] | ||
|
||
[tool.check-wheel-contents] | ||
toplevel = "wayback" |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.