Skip to content

Commit b46e2cf

Browse files
committed
Update MANIFEST.in and setup.py
- setup.py: move all the values directly as parameters to setup() to make it more readable and avoid scrolling back and forth to figure out what comes from where - MANIFEST.in: add Markdown files to the list of included files, e.g. CHANGELOG, CONTRIBUTORS, README; adjust how we include the supplementary files for tests
1 parent de8ebdd commit b46e2cf

File tree

2 files changed

+20
-41
lines changed

2 files changed

+20
-41
lines changed

MANIFEST.in

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
include *.md
12
include LICENSE
2-
include pylint_django/transforms/transforms/*
3-
include test/input/*.txt test/input/*.rc
3+
include pylint_django/transforms/transforms/*.py
4+
recursive-include pylint_django/tests/ *.py *.rc *.txt

setup.py

Lines changed: 17 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -5,52 +5,30 @@
55
import os
66
from setuptools import setup, find_packages
77

8-
VERSION = '0.9.1'
9-
PACKAGES = find_packages(exclude=[
10-
'*.tests',
11-
'*.tests.*',
12-
'tests.*',
13-
'tests',
14-
])
15-
16-
SHORT_DESCRIPTION = 'A Pylint plugin to help Pylint understand the Django web framework'
17-
18-
TRANSFORM_DIR = 'pylint_django/transforms/transforms'
19-
PACKAGE_DATA = {
20-
'pylint_django': [
21-
os.path.join('transforms/transforms', name) for name in os.listdir(TRANSFORM_DIR)
22-
]
23-
}
24-
25-
CLASSIFIERS = (
26-
'Development Status :: 4 - Beta',
27-
'Environment :: Console',
28-
'Intended Audience :: Developers',
29-
'Operating System :: Unix',
30-
'Topic :: Software Development :: Quality Assurance',
31-
'Programming Language :: Python :: 3',
32-
'Programming Language :: Python :: 3.5',
33-
'Programming Language :: Python :: 3.6',
34-
)
35-
36-
INSTALL_REQUIRES = [
37-
'pylint-plugin-utils>=0.2.1',
38-
'pylint>=1.8.2',
39-
]
40-
418

429
setup(
4310
name='pylint-django',
4411
url='https://github.com/PyCQA/pylint-django',
4512
author='landscape.io',
4613
author_email='[email protected]',
47-
description=SHORT_DESCRIPTION,
48-
version=VERSION,
49-
packages=PACKAGES,
50-
package_data=PACKAGE_DATA,
51-
install_requires=INSTALL_REQUIRES,
14+
description='A Pylint plugin to help Pylint understand the Django web framework',
15+
version='0.9.2',
16+
packages=find_packages(),
17+
install_requires=[
18+
'pylint-plugin-utils>=0.2.1',
19+
'pylint>=1.8.2',
20+
],
5221
license='GPLv2',
53-
classifiers=CLASSIFIERS,
22+
classifiers=[
23+
'Development Status :: 4 - Beta',
24+
'Environment :: Console',
25+
'Intended Audience :: Developers',
26+
'Operating System :: Unix',
27+
'Topic :: Software Development :: Quality Assurance',
28+
'Programming Language :: Python :: 3',
29+
'Programming Language :: Python :: 3.5',
30+
'Programming Language :: Python :: 3.6',
31+
],
5432
keywords=['pylint', 'django', 'plugin'],
5533
zip_safe=False,
5634
)

0 commit comments

Comments
 (0)