Skip to content

Commit 410ff94

Browse files
committed
Switch to Hatch
1 parent eca81b8 commit 410ff94

File tree

7 files changed

+106
-98
lines changed

7 files changed

+106
-98
lines changed

.github/dependabot.yml

+10
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
version: 2
22
updates:
3+
- package-ecosystem: pip
4+
directory: /
5+
schedule:
6+
interval: weekly
7+
commit-message:
8+
prefix: "[python]"
9+
labels:
10+
- dependencies
11+
- d:python
12+
313
- package-ecosystem: github-actions
414
directory: /
515
schedule:

.gitignore

-8
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,6 @@
1-
*.egg
2-
*.egg-info/
3-
*.pyc
4-
.cache/
51
.coverage
6-
.eggs/
72
.mypy_cache/
8-
.pytest_cache/
93
.tox/
104
__pycache__/
11-
build/
125
dist/
136
docs/_build/
14-
venv/

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
v1.5.0 (in development)
22
-----------------------
3+
- Migrated from setuptools to hatch
34

45
v1.4.0 (2023-11-01)
56
-------------------

MANIFEST.in

-6
This file was deleted.

docs/changelog.rst

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Changelog
55

66
v1.5.0 (in development)
77
-----------------------
8+
- Migrated from setuptools to hatch
89

910

1011
v1.4.0 (2023-11-01)

pyproject.toml

+94-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,95 @@
11
[build-system]
2-
requires = ["setuptools >= 46.4.0"]
3-
build-backend = "setuptools.build_meta"
2+
requires = ["hatchling"]
3+
build-backend = "hatchling.build"
4+
5+
[project]
6+
name = "pypi-simple"
7+
dynamic = ["version"]
8+
description = "PyPI Simple Repository API client library"
9+
readme = "README.rst"
10+
requires-python = ">=3.7"
11+
license = "MIT"
12+
license-files = { paths = ["LICENSE"] }
13+
authors = [
14+
{ name = "John Thorvald Wodder II", email = "[email protected]" }
15+
]
16+
17+
keywords = [
18+
"pypi",
19+
"pep503",
20+
"simple repository api",
21+
"packages",
22+
"pip",
23+
]
24+
25+
classifiers = [
26+
"Development Status :: 5 - Production/Stable",
27+
"Programming Language :: Python :: 3",
28+
"Programming Language :: Python :: 3 :: Only",
29+
"Programming Language :: Python :: 3.7",
30+
"Programming Language :: Python :: 3.8",
31+
"Programming Language :: Python :: 3.9",
32+
"Programming Language :: Python :: 3.10",
33+
"Programming Language :: Python :: 3.11",
34+
"Programming Language :: Python :: 3.12",
35+
"Programming Language :: Python :: Implementation :: CPython",
36+
"Programming Language :: Python :: Implementation :: PyPy",
37+
"License :: OSI Approved :: MIT License",
38+
"Topic :: Software Development :: Libraries :: Python Modules",
39+
"Topic :: System :: Software Distribution",
40+
"Topic :: Text Processing :: Markup :: HTML",
41+
"Typing :: Typed",
42+
]
43+
44+
dependencies = [
45+
"beautifulsoup4 ~= 4.5",
46+
"mailbits ~= 0.2",
47+
"packaging >= 20",
48+
"pydantic ~= 2.0",
49+
"requests ~= 2.20",
50+
"typing_extensions; python_version < '3.8'",
51+
]
52+
53+
[project.optional-dependencies]
54+
tqdm = ["tqdm"]
55+
56+
[project.urls]
57+
"Source Code" = "https://github.com/jwodder/pypi-simple"
58+
"Bug Tracker" = "https://github.com/jwodder/pypi-simple/issues"
59+
60+
[tool.hatch.version]
61+
path = "src/pypi_simple/__init__.py"
62+
63+
[tool.hatch.build.targets.sdist]
64+
include = [
65+
"/docs",
66+
"/src",
67+
"/test",
68+
"CHANGELOG.*",
69+
"CONTRIBUTORS.*",
70+
"tox.ini",
71+
]
72+
73+
[tool.hatch.envs.default]
74+
python = "3"
75+
76+
[tool.mypy]
77+
allow_incomplete_defs = false
78+
allow_untyped_defs = false
79+
ignore_missing_imports = false
80+
# <https://github.com/python/mypy/issues/7773>:
81+
no_implicit_optional = true
82+
implicit_reexport = false
83+
local_partial_types = true
84+
pretty = true
85+
show_error_codes = true
86+
show_traceback = true
87+
strict_equality = true
88+
warn_redundant_casts = true
89+
warn_return_any = true
90+
warn_unreachable = true
91+
plugins = ["pydantic.mypy"]
92+
93+
[tool.pydantic-mypy]
94+
init_forbid_extra = true
95+
warn_required_dynamic_aliases = true

setup.cfg

-82
This file was deleted.

0 commit comments

Comments
 (0)