kafka_neu-1778570057504.zip-extract/kafka-4.2.0-src/tests/setup.py

Path
kafka_neu-1778570057504.zip-extract/kafka-4.2.0-src/tests/setup.py
Status
application-package
Type
file
Name
setup.py
Extension
.py
Programming language
Python
Mime type
text/x-script.python
File type
Python script, ASCII text executable
Tag

      
    
Rootfs path

      
    
Size
2077 (2.0 KB)
MD5
00c6d3396fe8a879d2f7eb3e69cccd8f
SHA1
09da2f0bcdbec94d674be8171bef0d2665a05ef9
SHA256
0dce4c0f0c82971c48f876dccc20956e635cba6c7d8ea81464a6736dd858e713
SHA512

      
    
SHA1_git
1a88ec5ee0e0315facc4cc1151fe52dd1a472801
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
setup.py | 2.0 KB |

# Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You 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 # # http://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. import re import sys from setuptools import find_packages, setup, Command version = '' with open('kafkatest/__init__.py', 'r') as fd: version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', fd.read(), re.MULTILINE).group(1) class PyTest(Command): user_options = [('pytest-args=', 'a', "Arguments to pass to py.test")] def initialize_options(self): self.pytest_args = [] def finalize_options(self): self.test_args = [] self.test_suite = True def run(self): # import here, cause outside the eggs aren't loaded import pytest print(self.pytest_args) errno = pytest.main(self.pytest_args) sys.exit(errno) # Note: when changing the version of ducktape, also revise tests/docker/Dockerfile # Ensure the 'requests' version here matches the one specified in .github/scripts/requirements.txt setup(name="kafkatest", version=version, description="Apache Kafka System Tests", author="Apache Kafka", platforms=["any"], license="apache2.0", packages=find_packages(), include_package_data=True, install_requires=["ducktape==0.12.0", "requests==2.32.4", "psutil==5.7.2", "pytest==8.3.3", "mock==5.1.0"], cmdclass={'test': PyTest}, zip_safe=False )
Package URL License Primary language
pkg:pypi/kafkatest@4.2.0 apache-2.0 Python
Extra data

      
    
Package data
- md5:
  name: kafkatest
  purl: pkg:pypi/kafkatest@4.2.0
  sha1:
  size:
  type: pypi
  holder:
  sha256:
  sha512:
  parties:
    - url:
      name: Apache Kafka
      role: author
      type: person
      email:
  subpath:
  vcs_url:
  version: 4.2.0
  keywords: []
  copyright:
  namespace:
  extra_data: {}
  is_private: no
  is_virtual: no
  qualifiers: {}
  description: Apache Kafka System Tests
  notice_text:
  api_data_url: https://pypi.org/pypi/kafkatest/4.2.0/json
  dependencies:
    - purl: pkg:pypi/ducktape@0.12.0
      scope: install
      is_direct: yes
      is_pinned: yes
      extra_data: {}
      is_runtime: yes
      is_optional: no
      resolved_package: {}
      extracted_requirement: ==0.12.0
    - purl: pkg:pypi/requests@2.32.4
      scope: install
      is_direct: yes
      is_pinned: yes
      extra_data: {}
      is_runtime: yes
      is_optional: no
      resolved_package: {}
      extracted_requirement: ==2.32.4
    - purl: pkg:pypi/psutil@5.7.2
      scope: install
      is_direct: yes
      is_pinned: yes
      extra_data: {}
      is_runtime: yes
      is_optional: no
      resolved_package: {}
      extracted_requirement: ==5.7.2
    - purl: pkg:pypi/pytest@8.3.3
      scope: install
      is_direct: yes
      is_pinned: yes
      extra_data: {}
      is_runtime: yes
      is_optional: no
      resolved_package: {}
      extracted_requirement: ==8.3.3
    - purl: pkg:pypi/mock@5.1.0
      scope: install
      is_direct: yes
      is_pinned: yes
      extra_data: {}
      is_runtime: yes
      is_optional: no
      resolved_package: {}
      extracted_requirement: ==5.1.0
  download_url:
  homepage_url:
  release_date:
  code_view_url:
  datasource_id: pypi_setup_py
  file_references: []
  source_packages: []
  bug_tracking_url:
  primary_language: Python
  license_detections:
    - matches:
        - score: '100.0'
          matcher: 1-hash
          end_line: 1
          rule_url: https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/apache-2.0_1050.RULE
          from_file:
          start_line: 1
          matched_text: apache2.0
          match_coverage: '100.0'
          matched_length: 2
          rule_relevance: 100
          rule_identifier: apache-2.0_1050.RULE
          license_expression: apache-2.0
          license_expression_spdx: Apache-2.0
      identifier: apache_2_0-d73b8efb-be98-9762-747d-7cfa08a9b743
      license_expression: apache-2.0
      license_expression_spdx: Apache-2.0
  repository_download_url: https://pypi.org/packages/source/k/kafkatest/kafkatest-4.2.0.tar.gz
  repository_homepage_url: https://pypi.org/project/kafkatest
  other_license_detections: []
  other_license_expression:
  declared_license_expression: apache-2.0
  extracted_license_statement: |
    license: apache2.0
  other_license_expression_spdx:
  declared_license_expression_spdx: Apache-2.0