Skip to content

Commit

Permalink
Migrate build to hatch
Browse files Browse the repository at this point in the history
  • Loading branch information
fsouza committed Oct 15, 2022
1 parent 1102bd2 commit 1dfdc93
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 23 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/upload-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ jobs:
with:
python-version: 3.x

- run: pip install build twine wheel

- run: pip install -e .
- run: pip install build twine

- run: python -m build --wheel --sdist

Expand Down
7 changes: 0 additions & 7 deletions MANIFEST.in

This file was deleted.

22 changes: 9 additions & 13 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[build-system]
requires = ["setuptools>=61.2"]
build-backend = "setuptools.build_meta"
requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "autoflake"
Expand All @@ -27,16 +27,12 @@ content-type = "text/markdown"
[project.scripts]
autoflake = "autoflake:main"

[tool.setuptools]
py-modules = ["autoflake"]
license-files = ["LICENSE"]
include-package-data = false
[tool.hatch.version]
path = "autoflake.py"

[tool.setuptools.packages]
find = { namespaces = false }
[tool.hatch.build.targets.sdist]
exclude = ["/.github"]

[tool.setuptools.dynamic]
version = { attr = "autoflake.__version__" }

[tool.distutils.bdist_wheel]
universal = 1
[tool.hatch.build]
include = ["/autoflake.py", "/test_autoflake.py", "/LICENSE", "/README.md"]
exclude = ["/.gitignore"]

0 comments on commit 1dfdc93

Please sign in to comment.