From c9f0c5961cdccf1ca2325829c6e8fb1ce887e658 Mon Sep 17 00:00:00 2001 From: Jerome Kelleher Date: Tue, 1 Mar 2022 16:56:31 +0000 Subject: [PATCH] Check distribution builds --- .github/workflows/ci.yml | 6 +++++- pyproject.toml | 9 --------- setup.cfg | 3 ++- 3 files changed, 7 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cdd49e4..f85a99f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,13 +25,17 @@ jobs: - name: Install development tools run: | pip install -r requirements.dev.txt - pip install nox + pip install build twine nox - name: Check formatting run: nox -s format - name: Check for lint run: nox -s lint - name: Run tests run: nox -s test + - name: Check distribution build + run: | + python3 -m build + python3 -m twine check dist/* # Disabling for now. # docs: diff --git a/pyproject.toml b/pyproject.toml index a94d90c..9ea1ed9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,15 +8,6 @@ build-backend = "setuptools.build_meta" [tool.isort] profile = "black" -[tool.pydocstyle] -convention = "pep257" -match = ".*\\.py" -add_ignore = [ - "D104", # Do not require docstrings for packages (in __init__.py). - "D105", # Ignore missing docstring for magic methods. - "D107", # Ignore missing docstring for __init__ methods. Parameters may be documented in the class docstring. -] - [tool.pylint.messages_control] disable = [ # Ignore refactor and convention categories diff --git a/setup.cfg b/setup.cfg index 0be5f0b..95f12c9 100644 --- a/setup.cfg +++ b/setup.cfg @@ -7,6 +7,7 @@ license = MIT license_file = LICENSE classifiers = Topic :: Scientific/Engineering :: Bio-Informatics + Development Status :: 2 - Pre-Alpha Intended Audience :: Science/Research License :: OSI Approved :: MIT License Programming Language :: Python :: 3 @@ -17,7 +18,7 @@ package_dir = packages = find: install_requires = numba -python_requires = >=3.6 +python_requires = >=3.7 include_package_data = True [options.packages.find]