From c5e9d21e5c514c0aff595aba357a8429d9dd9b81 Mon Sep 17 00:00:00 2001 From: Rex P Date: Wed, 27 Nov 2024 13:59:12 +1100 Subject: [PATCH] chore: Remove deprecated setup.py and fix license --- pyproject.toml | 2 +- setup.py | 56 -------------------------------------------------- 2 files changed, 1 insertion(+), 57 deletions(-) delete mode 100644 setup.py diff --git a/pyproject.toml b/pyproject.toml index 49244575328..d3594b56f32 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ name = "osv" version = "0.0.22" description = "Open Source Vulnerabilities library" authors = ["OSV Authors "] -license = "MIT" +license = "Apache-2.0" readme = "README.md" packages = [{ include = "osv" }] package-mode = true diff --git a/setup.py b/setup.py deleted file mode 100644 index 52e54aa8016..00000000000 --- a/setup.py +++ /dev/null @@ -1,56 +0,0 @@ -# Copyright 2021 Google LLC -# -# 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 -# -# 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. -"""setup.py for OSV.""" -import setuptools - -with open('README.md', 'r') as fh: - long_description = fh.read() - -setuptools.setup( - name='osv', - version='0.0.22', - author='OSV authors', - author_email='osv-discuss@googlegroups.com', - description='Open Source Vulnerabilities library', - long_description=long_description, - long_description_content_type='text/markdown', - url='https://github.com/google/osv', - packages=setuptools.find_packages(), - classifiers=[ - 'Programming Language :: Python :: 3', - 'License :: OSI Approved :: Apache Software License', - 'Operating System :: OS Independent', - ], - install_requires=[ - # TODO(rexpan): Migrate to using pyproject.toml directly. - 'google-cloud-ndb', - 'google-cloud-logging', - 'pygit2>=1.14.0', - 'PyYAML', - 'semver>=3.0.0', - 'attrs', - 'jsonschema', - 'grpcio', - 'packaging<22.0', - ], - package_dir={ - '': '.', - }, - package_data={ - # Include any JSON schemas. - '': ['*.json'], - }, - python_requires='>=3.11', - zip_safe=False, -)