From df23235baec1dcb749611a90360dff88b769e2a7 Mon Sep 17 00:00:00 2001 From: Paul F Bugni Date: Mon, 13 Jan 2025 21:12:25 -0800 Subject: [PATCH] Corrected syntax errors in pyproject.toml - building locally now. --- pyproject.toml | 8 +++----- setup.cfg | 55 -------------------------------------------------- 2 files changed, 3 insertions(+), 60 deletions(-) delete mode 100644 setup.cfg diff --git a/pyproject.toml b/pyproject.toml index b8d98b9a..b4fc5bf7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "patientsearch" -version = { attr = "setuptools_scm.get_version" } +dynamic = ["version"] dependencies = [ "flask", "flask-jwt-extended", @@ -25,10 +25,8 @@ dev = [ "pytest-mock", ] -[tool.setuptools.packages.find] -include = ["patientsearch"] -zip-safe = false -include-package-data = true +[tool.setuptools] +packages = ["patientsearch"] [tool.flake8] max-line-length = 100 diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 4a717be5..00000000 --- a/setup.cfg +++ /dev/null @@ -1,55 +0,0 @@ -# pyup: ignore file -# setup.py configuration file -# https://setuptools.readthedocs.io/en/latest/setuptools.html#configuring-setup-using-setup-cfg-files - -[metadata] -name = patientsearch -version = attr: setuptools_scm.get_version - -[options] -packages = patientsearch -zip_safe = False -include_package_data = True -setup_requires = - setuptools_scm - -# abstract requirements; -# concrete requirements belong in requirements.txt -# https://caremad.io/posts/2013/07/setup-vs-requirement/ -install_requires = - flask - flask-jwt-extended - flask-session - gunicorn - requests - redis - redis-dict - jmespath - python-json-logger - -[options.extras_require] -dev = - pytest - pytest-flask - pytest-datadir - pytest-mock - -[flake8] -max-line-length=100 - -[tool:pytest] -addopts = --color yes --verbose -console_output_style = classic -filterwarnings = - # only print each warning once per module - module - - # Ignore testing-specific warning - ignore:^"localhost" is not a valid cookie domain, it must contain a.*:Warning - - # Ignore warnings on specific dependencies (already reported upstream) - ignore::DeprecationWarning:dogpile - ignore::DeprecationWarning:flask_user - - # error on bad assertions - error:.*assertion is always true.*