diff --git a/MANIFEST.in b/MANIFEST.in deleted file mode 100644 index e9f8b67..0000000 --- a/MANIFEST.in +++ /dev/null @@ -1,6 +0,0 @@ -include __pkginfo__.py -include LICENSE -include requirements.txt -prune **/__pycache__ -recursive-include mh_utils *.pyi -include mh_utils/py.typed diff --git a/pyproject.toml b/pyproject.toml index 11dcb18..3bf54ed 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [build-system] -requires = [ "setuptools>=40.6.0", "wheel>=0.34.2",] -build-backend = "setuptools.build_meta" +requires = [ "whey",] +build-backend = "whey" [project] name = "mh_utils" @@ -21,3 +21,14 @@ Homepage = "https://github.com/domdfcoding/mh_utils" "Issue Tracker" = "https://github.com/domdfcoding/mh_utils/issues" "Source Code" = "https://github.com/domdfcoding/mh_utils" Documentation = "https://mh_utils.readthedocs.io/en/latest" + +[tool.whey] +base-classifiers = [ + "Intended Audience :: Developers", + "Topic :: Software Development :: Libraries :: Python Modules", + "Typing :: Typed", +] +python-versions = [ "3.6", "3.7", "3.8", "3.9",] +python-implementations = [ "CPython",] +platforms = [ "Windows", "macOS", "Linux",] +license-key = "LGPL-3.0-or-later" diff --git a/repo_helper.yml b/repo_helper.yml index 61dcbd2..ef2b699 100644 --- a/repo_helper.yml +++ b/repo_helper.yml @@ -9,6 +9,10 @@ version: '0.2.1' license: 'LGPLv3+' short_desc: 'Utilities for handing ancillary files produced by MassHunter.' +use_whey: true +min_coverage: 85 +pre_commit_exclude: ^tests/test_xml/.*\.xml$ + conda_channels: - conda-forge @@ -26,8 +30,6 @@ extra_sphinx_extensions: mypy_plugins: - attr_utils.mypy_plugin -pre_commit_exclude: ^tests/test_xml/.*\.xml$ - classifiers: - 'Intended Audience :: Developers' - 'Topic :: Software Development :: Libraries :: Python Modules' @@ -36,5 +38,3 @@ keywords: - chemistry - mass-spectrometry - chromatography - -min_coverage: 85 diff --git a/setup.py b/setup.py deleted file mode 100644 index f5cd633..0000000 --- a/setup.py +++ /dev/null @@ -1,24 +0,0 @@ -#!/usr/bin/env python -# This file is managed by 'repo_helper'. Don't edit it directly. - -# stdlib -import shutil -import sys - -# 3rd party -from setuptools import setup - -sys.path.append('.') - -# this package -from __pkginfo__ import * # pylint: disable=wildcard-import - -setup( - description="Utilities for handing ancillary files produced by MassHunter.", - extras_require=extras_require, - install_requires=install_requires, - py_modules=[], - version=__version__, - ) - -shutil.rmtree("mh_utils.egg-info", ignore_errors=True)