mirror of
https://fuchsia.googlesource.com/third_party/pigweed.googlesource.com/pigweed/pigweed
synced 2024-09-20 13:51:05 +00:00
01197109b2
Previously, Python tests were executed using setup.py test. There are a few issues with this. First, with the current setup, tests are executed twice for some reason. Occasionally other odd errors occur. Also, setuptools has deprecated the test command for setup.py and states that it will be removed in a future version. This change discovers tests by finding the package directories of affected files and searching for tests with customizable patterns ('*_test.py' by default). This approach is simpler, faster, and no longer relies on setuptools or unittest. Since setup.py test is no longer used, this change removes test suite discovery from Pigweed's setup.py files. Change-Id: I3de6c5d05ea5e38eea27b0e3aca956fe468035be Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/12662 Reviewed-by: Rob Mohr <mohrr@google.com> Commit-Queue: Wyatt Hepler <hepler@google.com>
26 lines
879 B
Python
26 lines
879 B
Python
# Copyright 2019 The Pigweed Authors
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
|
# use this file except in compliance with the License. You may obtain a copy of
|
|
# the License at
|
|
#
|
|
# https://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
# License for the specific language governing permissions and limitations under
|
|
# the License.
|
|
"""The pw_doctor package."""
|
|
|
|
import setuptools
|
|
|
|
setuptools.setup(
|
|
name='pw_doctor',
|
|
version='0.0.1',
|
|
author='Pigweed Authors',
|
|
author_email='pigweed-developers@googlegroups.com',
|
|
description='Environment check script for Pigweed',
|
|
packages=setuptools.find_packages(),
|
|
)
|