Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit adee256

Browse files
authored
Fix packaging regression, add entrypoint (#70)
Fixes #69
1 parent ac68905 commit adee256

2 files changed

Lines changed: 7 additions & 15 deletions

File tree

autotyping/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-
__version__ = "23.3.0"

pyproject.toml

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,8 @@
1-
[build-system]
2-
requires = ["hatchling"]
3-
build-backend = "hatchling.build"
4-
51
[project]
62
name = "autotyping"
7-
dynamic = ["version"]
3+
version = "23.3.0"
84
description = "A tool for autoadding simple type annotations."
95
readme = "README.md"
10-
license = "MIT"
116
requires-python = ">=3.8"
127
authors = [
138
{ name = "Jelle Zijlstra", email = "[email protected]" },
@@ -34,17 +29,16 @@ dependencies = [
3429
"libcst",
3530
]
3631

32+
[project.scripts]
33+
autotyping = "autotyping.__main__:main"
34+
3735
[project.urls]
3836
"Bug Tracker" = "https://github.com/JelleZijlstra/autotyping/issues"
3937
Homepage = "https://github.com/JelleZijlstra/autotyping"
4038

41-
[tool.hatch.version]
42-
path = "autotyping/__init__.py"
43-
44-
[tool.hatch.build.targets.sdist]
45-
include = [
46-
"/autotyping",
47-
]
39+
[build-system]
40+
requires = ["setuptools>=69", "wheel"]
41+
build-backend = "setuptools.build_meta"
4842

4943
[tool.black]
5044
target_version = ['py38', 'py39', 'py310', 'py311', 'py312']
@@ -64,4 +58,3 @@ skip_magic_trailing_comma = true
6458
missing_parameter_annotation = true
6559
missing_return_annotation = true
6660
incompatible_override = true
67-

0 commit comments

Comments
 (0)