From ecee2d3522e5ee99953035f85607fb1065290f5c Mon Sep 17 00:00:00 2001 From: Saugat Pachhai Date: Sat, 2 Oct 2021 18:53:30 +0545 Subject: [PATCH] Move static metadata to setup.cfg (#6581) --- setup.cfg | 39 +++++++++++++++++++++++++++++++++++++++ setup.py | 27 +-------------------------- 2 files changed, 40 insertions(+), 26 deletions(-) diff --git a/setup.cfg b/setup.cfg index bb18b8cb2..726608377 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,3 +1,42 @@ +[metadata] +description = Git for data scientists - manage your code and data together +name = dvc +long_description = file: README.rst +long_description_content_type = text/rst +license = Apache License 2.0 +license_file = LICENSE +url = http://dvc.org +project_urls = + Documentation = https://dvc.org/doc + Source = https://github.com/iterative/dvc +download_url = https://github.com/iterative/dvc +author = Dmitry Petrov +author_email = dmitry@dvc.org +maintainer = Iterative +maintainer_email = support@dvc.org +keywords = data-science, data-version-control, machine-learning, git + developer-tools, reproducibility, collaboration, ai +classifiers = + Development Status :: 4 - Beta + Programming Language :: Python :: 3 + Programming Language :: Python :: 3.6 + Programming Language :: Python :: 3.7 + Programming Language :: Python :: 3.8 + Programming Language :: Python :: 3.9 + +[options] +python_requires = >=3.6 +zip_safe = False +packages = find: +include_package_data = True + +[options.packages.find] +exclude = tests + +[options.entry_points] +console_scripts = + dvc = dvc.main:main + [flake8] ignore= E203, # Whitespace before ':' diff --git a/setup.py b/setup.py index 12a70d4c8..cb676e439 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ import os from pathlib import Path from textwrap import dedent -from setuptools import find_packages, setup +from setuptools import setup from setuptools.command.build_py import build_py as _build_py # Prevents pkg_resources import in entry point script, @@ -74,33 +74,8 @@ requirements["tests"] += requirements["terraform"] requirements["dev"] = requirements["all"] + requirements["tests"] setup( - name="dvc", version=version, - description="Git for data scientists - manage your code and data together", - long_description=open("README.rst", encoding="UTF-8").read(), - author="Dmitry Petrov", - author_email="dmitry@dvc.org", - maintainer="Iterative", - maintainer_email="support@dvc.org", - download_url="https://github.com/iterative/dvc", - license="Apache License 2.0", install_requires=install_requires, extras_require=requirements, - keywords="data-science data-version-control machine-learning git" - " developer-tools reproducibility collaboration ai", - python_requires=">=3.6", - classifiers=[ - "Development Status :: 4 - Beta", - "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.6", - "Programming Language :: Python :: 3.7", - "Programming Language :: Python :: 3.8", - "Programming Language :: Python :: 3.9", - ], - packages=find_packages(exclude=["tests"]), - include_package_data=True, - url="http://dvc.org", - entry_points={"console_scripts": ["dvc = dvc.main:main"]}, cmdclass={"build_py": build_py}, - zip_safe=False, )