Skip to content

Commit 8c78b0c

Browse files
committed
Move a bunch of options from setup.py to setup.cfg
1 parent 0c36d1b commit 8c78b0c

File tree

2 files changed

+32
-28
lines changed

2 files changed

+32
-28
lines changed

setup.cfg

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,6 @@ parentdir_prefix = mock_vws
5353
[bdist_wheel]
5454
universal = 1
5555

56-
[metadata]
57-
license_file = LICENSE
58-
5956
[pydocstyle]
6057
# No summary lines
6158
# - D200
@@ -123,3 +120,34 @@ omit =
123120
[yapf]
124121
DEDENT_CLOSING_BRACKETS = true
125122
BLANK_LINE_BEFORE_NESTED_CLASS_OR_DEF = true
123+
124+
[metadata]
125+
name = VWS Python Mock
126+
description = 'A mock for the Vuforia Web Services (VWS) API.'
127+
long_description = file: README.rst
128+
keywords = vuforia mock fake client
129+
license = MIT License
130+
license_file = LICENSE
131+
classifiers =
132+
Operating System :: POSIX
133+
Environment :: Web Environment
134+
Programming Language :: Python :: 3.8
135+
License :: OSI Approved :: MIT License
136+
Development Status :: 5 - Production/Stable
137+
url = 'https://vws-python-mock.readthedocs.io'
138+
author = Adam Dangoor
139+
author_email = [email protected]
140+
141+
[options]
142+
zip_safe = False
143+
include_package_data = True
144+
# Avoid dependency links because they are not supported by Read The Docs.
145+
#
146+
# Also, they require users to use ``--process-dependency-links``.
147+
dependency_links =
148+
package_dir=
149+
=src
150+
packages=find:
151+
152+
[options.packages.find]
153+
where=src

setup.py

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -14,33 +14,9 @@
1414
with open('dev-requirements.txt') as dev_requirements:
1515
DEV_REQUIRES = dev_requirements.readlines()
1616

17-
with open('README.rst') as f:
18-
LONG_DESCRIPTION = f.read()
19-
2017
setup(
21-
name='VWS Python Mock',
2218
version=versioneer.get_version(), # type: ignore
2319
cmdclass=versioneer.get_cmdclass(), # type: ignore
24-
author='Adam Dangoor',
25-
author_email='[email protected]',
26-
description='A mock for the Vuforia Web Services (VWS) API.',
27-
long_description=LONG_DESCRIPTION,
28-
license='MIT',
29-
packages=find_packages(where='src'),
30-
zip_safe=False,
31-
url='https://vws-python-mock.readthedocs.io',
32-
keywords='vuforia mock fake client',
33-
package_dir={'': 'src'},
3420
install_requires=INSTALL_REQUIRES,
35-
extras_require={
36-
'dev': DEV_REQUIRES,
37-
},
38-
include_package_data=True,
39-
classifiers=[
40-
'Operating System :: POSIX',
41-
'Environment :: Web Environment',
42-
'License :: OSI Approved :: MIT License',
43-
'Programming Language :: Python :: 3.8',
44-
'Development Status :: 5 - Production/Stable',
45-
],
21+
extras_require={'dev': DEV_REQUIRES},
4622
)

0 commit comments

Comments
 (0)