Skip to content

Commit

Permalink
Use "whey" as the build backend.
Browse files Browse the repository at this point in the history
  • Loading branch information
domdfcoding committed Mar 10, 2021
1 parent 0a44e41 commit 1759c67
Show file tree
Hide file tree
Showing 6 changed files with 55 additions and 34 deletions.
2 changes: 2 additions & 0 deletions .bumpversion.cfg
Expand Up @@ -14,3 +14,5 @@ tag = True
[bumpversion:file:doc-source/usage.rst]

[bumpversion:file:formate/__init__.py]

[bumpversion:file:pyproject.toml]
6 changes: 0 additions & 6 deletions MANIFEST.in

This file was deleted.

49 changes: 47 additions & 2 deletions pyproject.toml
@@ -1,3 +1,48 @@
[build-system]
requires = [ "setuptools>=40.6.0", "wheel>=0.34.2",]
build-backend = "setuptools.build_meta"
requires = [ "whey",]
build-backend = "whey"

[project]
name = "formate"
version = "0.4.2"
description = "Python formatting mate."
readme = "README.rst"
keywords = [ "formatting", "linting",]
dynamic = [ "requires-python", "classifiers", "dependencies",]
[[project.authors]]
email = "dominic@davis-foster.co.uk"
name = "Dominic Davis-Foster"

[project.license]
file = "LICENSE"

[project.urls]
Homepage = "https://github.com/repo-helper/formate"
"Issue Tracker" = "https://github.com/repo-helper/formate/issues"
"Source Code" = "https://github.com/repo-helper/formate"
Documentation = "https://formate.readthedocs.io/en/latest"

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

[tool.whey]
base-classifiers = [
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: Developers",
"Typing :: Typed",
]
python-versions = [ "3.6", "3.7", "3.8", "3.9",]
python-implementations = [ "CPython", "PyPy",]
platforms = [ "Windows", "macOS", "Linux",]
license-key = "MIT"

[project.entry-points.formate_hooks]
reformat-generics = "formate.reformat_generics:reformat_generics"
dynamic_quotes = "formate.dynamic_quotes:dynamic_quotes"
noqa_reformat = "formate.mini_hooks:noqa_reformat"
squish_stubs = "formate.mini_hooks:squish_stubs"
ellipsis_reformat = "formate.ellipses:ellipsis_reformat"
collections-import-rewrite = "formate.imports:rewrite_collections_abc_imports"
isort = "formate:isort_hook"
yapf = "formate:yapf_hook"
4 changes: 2 additions & 2 deletions repo_helper.yml
Expand Up @@ -11,6 +11,8 @@ license: 'MIT'
short_desc: 'Python formatting mate.'

enable_conda: false
use_whey: true
min_coverage: 95

python_versions:
- '3.6'
Expand Down Expand Up @@ -49,8 +51,6 @@ extra_sphinx_extensions:
- sphinx_click
- sphinx_toolbox.pre_commit

min_coverage: 95

sphinx_conf_epilogue:
- html_logo = "../formate.png"

Expand Down
21 changes: 0 additions & 21 deletions setup.py

This file was deleted.

7 changes: 4 additions & 3 deletions tox.ini
Expand Up @@ -48,11 +48,12 @@ commands = sphinx-build -M html . ./build {posargs}
skip_install = True
changedir = {toxinidir}
deps =
twine>=3.2.0
pep517>=0.9.1
virtualenv
git+https://github.com/pypa/build
check-wheel-contents>=0.1.0
twine>=3.2.0
commands =
python -m pep517.build --source --binary "{toxinidir}"
python -m build --sdist --wheel "{toxinidir}"
twine check dist/*.tar.gz dist/*.whl
check-wheel-contents dist/

Expand Down

0 comments on commit 1759c67

Please sign in to comment.