Browse Source

Add a setup.cfg file.

Jelmer Vernooij 6 years ago
parent
commit
a658872e7e
2 changed files with 22 additions and 34 deletions
  1. 22 0
      setup.cfg
  2. 0 34
      setup.py

+ 22 - 0
setup.cfg

@@ -1 +1,23 @@
+[metadata]
+name = dulwich
+author = Jelmer Vernooij
+author_email = jelmer@jelmer.uk
+home-page = https://www.dulwich.io/
+description-file = README.md
+summary = Python Git Library
+classifiers =
+    Development Status :: 4 - Beta
+    License :: OSI Approved :: Apache Software License
+    Programming Language :: Python :: 2.7
+    Programming Language :: Python :: 3.3
+    Programming Language :: Python :: 3.4
+    Programming Language :: Python :: 3.5
+    Programming Language :: Python :: 3.6
+    Programming Language :: Python :: Implementation :: CPython
+    Programming Language :: Python :: Implementation :: PyPy
+    Operating System :: POSIX
+    Operating System :: Microsoft :: Windows
+    Topic :: Software Development :: Version Control
+keyword = git, vcs
+
 [build_ext]

+ 0 - 34
setup.py

@@ -84,47 +84,13 @@ if has_setuptools:
     setup_kwargs['tests_require'] = tests_require
 
 
-if sys.platform == 'win32':
-    # Win32 setup breaks with non-ascii characters.
-    author = "Jelmer Vernooij"
-else:
-    author = "Jelmer Vernooij"
-
 setup(name='dulwich',
-      description='Python Git Library',
-      keywords='git',
       version=dulwich_version_string,
-      url='https://www.dulwich.io/',
       license='Apachev2 or later or GPLv2',
-      author_email='jelmer@jelmer.uk',
-      long_description="""
-      Python implementation of the Git file formats and protocols,
-      without the need to have git installed.
-
-      All functionality is available in pure Python. Optional
-      C extensions can be built for improved performance.
-
-      The project is named after the part of London that Mr. and Mrs. Git live
-      in in the particular Monty Python sketch.
-      """,
       packages=['dulwich', 'dulwich.tests', 'dulwich.tests.compat',
                 'dulwich.contrib'],
       package_data={'': ['../docs/tutorial/*.txt']},
       scripts=['bin/dulwich', 'bin/dul-receive-pack', 'bin/dul-upload-pack'],
-      classifiers=[
-          'Development Status :: 4 - Beta',
-          'License :: OSI Approved :: Apache Software License',
-          'Programming Language :: Python :: 2.7',
-          'Programming Language :: Python :: 3.3',
-          'Programming Language :: Python :: 3.4',
-          'Programming Language :: Python :: 3.5',
-          'Programming Language :: Python :: 3.6',
-          'Programming Language :: Python :: Implementation :: CPython',
-          'Programming Language :: Python :: Implementation :: PyPy',
-          'Operating System :: POSIX',
-          'Operating System :: Microsoft :: Windows',
-          'Topic :: Software Development :: Version Control',
-      ],
       ext_modules=ext_modules,
       distclass=DulwichDistribution,
       **setup_kwargs