Skip to content
This repository has been archived by the owner on Dec 12, 2023. It is now read-only.

Commit

Permalink
Switch to Hatch
Browse files Browse the repository at this point in the history
  • Loading branch information
jwodder committed Nov 19, 2023
1 parent d71345e commit abb75a4
Show file tree
Hide file tree
Showing 6 changed files with 106 additions and 100 deletions.
10 changes: 10 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
version: 2
updates:
- package-ecosystem: pip
directory: /
schedule:
interval: weekly
commit-message:
prefix: "[python]"
labels:
- dependencies
- d:python

- package-ecosystem: github-actions
directory: /
schedule:
Expand Down
9 changes: 0 additions & 9 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,16 +1,7 @@
*.egg
*.egg-info/
*.pyc
.cache/
.coverage*
.eggs/
.mypy_cache/
.nox/
.pytest_cache/
.tox/
__pycache__/
build/
dist/
docs/.doctrees/
docs/_build/
venv/
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
v0.5.0 (in development)
-----------------------
- Migrated from setuptools to hatch

v0.4.0 (2022-10-29)
-------------------
Expand Down
6 changes: 0 additions & 6 deletions MANIFEST.in

This file was deleted.

97 changes: 95 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,96 @@
[build-system]
requires = ["setuptools >= 46.4.0"]
build-backend = "setuptools.build_meta"
requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "gamdam"
dynamic = ["version"]
description = "Git-Annex Mass Downloader and Metadata-er"
readme = "README.rst"
requires-python = ">=3.8"
license = "MIT"
license-files = { paths = ["LICENSE"] }
authors = [
{ name = "John Thorvald Wodder II", email = "[email protected]" }
]

keywords = [
"anyio",
"async",
"download",
"git-annex",
]

classifiers = [
"Development Status :: 7 - Inactive",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"License :: OSI Approved :: MIT License",
"Environment :: Console",
"Framework :: AnyIO",
"Intended Audience :: End Users/Desktop",
"Topic :: Communications :: File Sharing",
"Topic :: Internet",
"Topic :: Internet :: File Transfer Protocol (FTP)",
"Topic :: Internet :: WWW/HTTP",
"Typing :: Typed",
]

dependencies = [
"anyio ~= 3.6",
"async_generator ~= 1.10; python_version < '3.10'",
"click >= 8.0",
"click-loglevel ~= 0.5",
"linesep ~= 0.4",
"pydantic ~= 1.7",
]

[project.scripts]
gamdam = "gamdam.__main__:main"

[project.urls]
"Source Code" = "https://github.com/jwodder/gamdam"
"Bug Tracker" = "https://github.com/jwodder/gamdam/issues"

[tool.hatch.version]
path = "src/gamdam/__init__.py"

[tool.hatch.build.targets.sdist]
include = [
"/docs",
"/src",
"/test",
"CHANGELOG.*",
"CONTRIBUTORS.*",
"tox.ini",
]

[tool.hatch.envs.default]
python = "3"

[tool.mypy]
allow_incomplete_defs = false
allow_untyped_defs = false
ignore_missing_imports = false
# <https://github.com/python/mypy/issues/7773>:
no_implicit_optional = true
implicit_reexport = false
local_partial_types = true
pretty = true
show_error_codes = true
show_traceback = true
strict_equality = true
warn_redundant_casts = true
warn_return_any = true
warn_unreachable = true
plugins = ["pydantic.mypy"]

[tool.pydantic-mypy]
init_forbid_extra = true
warn_untypes_fields = true
83 changes: 0 additions & 83 deletions setup.cfg

This file was deleted.

0 comments on commit abb75a4

Please sign in to comment.