Commit Graph

69 Commits

Author SHA1 Message Date
Enji Cooper
ed5f9363a2 Make installing pytest-runner contingent on running tests
This monkeypatches several changes from [PyCQA/mccabe](https://github.com/PyCQA/mccabe/blob/master/setup.py)
over to the pylint repo, since the pattern was equivalent between
the two projects.

Signed-off-by: Enji Cooper <yaneurabeya@gmail.com>
2019-11-16 21:24:40 +01:00
Enji Cooper
1b15abbc5a Fix pylint reported issues
* Sort imports per PEP8
* Rename globally allocated symbol to avoid variable shadowing issue.
* Remove squelching of W0704, since recent versions of pylint do not support
  the warning, resulting in an error with `pylint -E`.
* Add `pylint: disable=unused-import` to seemingly unused imports which
  actually affect build behavior.

Signed-off-by: Enji Cooper <yaneurabeya@gmail.com>
2019-11-16 21:24:40 +01:00
Hugo van Kemenade
b72c0dd9a3 Remove redundant compatibility code (#3097)
We no longer support Python 2 so we can remove
the compatibility code we had in place for that version.
2019-09-12 06:10:27 -05:00
Ashley Whetter
33b8185a45 Stopped installing tests with package 2019-06-20 10:02:14 +02:00
Claudiu Popa
927db96bbd Dropped support for Python 3.4
It reached EoL a while ago an our typed_ast dependency also stopped working
for 3.4. Ideally just use a more recent Python version, which also helps
us as we don't have to maintain support for multiple minor versions at once.
2019-06-20 09:49:48 +02:00
Claudiu Popa
ebd0e206f0 Replace the modname and distname to the actual name of the package 2019-05-29 12:07:38 +02:00
Pierre Sassoulas
2d525d6824 Style - Re-Apply black following the isort cleanup
Change with isort triggered change with black.
2019-03-20 09:07:35 +01:00
Pierre Sassoulas
5ab140ac3b Style - Apply isort on all apllicable files 2019-03-20 09:07:35 +01:00
Claudiu Popa
3a8635a9ef Update copyright notices 2018-07-15 11:36:36 +02:00
Claudiu Popa
1efb5c83f9 Replace set() calls with set literals 2018-05-09 05:50:56 -04:00
Claudiu Popa
1ce9be8844 Stop advertising python 2 support 2018-01-25 15:49:31 +01:00
Claudiu Popa
9ff44de0ca
Regenerate copyright notices 2017-12-15 12:24:15 +01:00
Hugo
b35166f35b Drop support for EOL Python 3.3 2017-12-11 09:39:49 +01:00
Hugo
bf1aa0c6bb Update classifiers and add python_requires 2017-12-11 09:39:49 +01:00
Claudiu Popa
0f98858231
Remove NO_SETUPTOOLS. Folks could just install setuptools before installing pylint. Close #1571 2017-07-20 10:10:11 +02:00
Claudiu Popa
cacb4566d9 Allow running tests without installing, using pytest and setuptools. Close #1062 2016-12-18 14:50:50 +02:00
Florian Bruhin
17d3cca725 Adjust README path in setup.py (#1102)
This is probably what caused #1100?
2016-09-17 22:29:45 +01:00
Claudiu Popa
ec09cc7578 Even more granular copyrights (thanks to copyrite) 2016-07-23 00:22:28 +03:00
Claudiu Popa
211d81f84f Keep a consistent copyright notice across the board.
This was changed automatically in #894, but apparently
we need to have the copyright notice somewhere.
2016-07-19 17:42:07 +03:00
Claudiu Popa
8aaf6e04f9 Use environment markers for conditional requirements. 2016-07-07 22:02:41 +01:00
Claudiu Popa
c70b281c62 Remove pylint-gui
pylint-gui was removed, because it was deemed unfit for being included
in *pylint*. It had a couple of bugs and misfeatures, its usability was subpar
and since its development was neglected, we decided it is best to move on without it.

Part of #975
2016-07-03 22:29:59 +01:00
Claudiu Popa
8907b6c18b Finish converting tests to work both on Python 2 and 3. Also, drop 2to3 for tests. 2015-03-26 20:21:25 +02:00
Claudiu Popa
7a0d9ae1e5 Use the license from __pkginfo__, not the builtin function. 2015-03-12 14:48:20 +02:00
Ionel Cristian Maries
086391fca6 Remove support for subpackage_of. Use absolute path for readme. Use absolute path for __pkginfo__.py. Graft the tests dir (via MANIFEST.in).
--HG--
branch : support-editable-installs
2015-02-14 19:05:56 +02:00
Claudiu Popa
a2854ec66e Check for easy_install_lib instead of easy_install, the latter might not exist. 2015-01-12 11:52:46 +02:00
Claudiu Popa
77d3616189 Don't compile test files when installing. 2015-01-12 11:02:04 +02:00
Pedro Algarvio
14cc8ada13 Fix typo.
--HG--
branch : hotfix/py26-compat
2014-12-04 14:53:42 +00:00
Pedro Algarvio
fee6265090 New style tuple syntax is only supported on Python >= 2.7
--HG--
branch : hotfix/py26-compat
2014-11-28 19:09:45 +00:00
Claudiu Popa
f51c0928c8 Use a with statement in setup.py 2014-10-26 22:30:46 +02:00
Claudiu Popa
2a585d5de2 Update the list of exclusions from 2to3. 2014-09-30 23:09:00 +03:00
Claudiu Popa
6d7cd0683a Use ignore parameter for shutil.copytree in setup.py. 2014-09-30 21:15:47 +03:00
Claudiu Popa
1aba91f5c1 Use with statement to prevent resource warnings. 2014-09-30 23:54:37 -07:00
Brett Cannon
a09fa4a411 Use absolute imports
--HG--
branch : python_6
2014-08-29 12:26:11 -04:00
Brett Cannon
29bb89fe46 Modernize to the point of working for Python 2.7 still
--HG--
branch : python_6
2014-08-29 11:16:29 -04:00
Torsten Marek
5ef2d87f2c More test cases moved to the new test framework. 2014-07-27 23:25:44 +02:00
Sylvain Thénault
e170624e0f linting pylint 2014-07-25 17:23:37 +02:00
Sylvain Thénault
1a30dacbdc oops, drop unintentionnaly commited print, breaking py3 install 2014-04-18 15:28:55 +02:00
Sylvain Thénault
d9d1e91c50 [packaging] attempt to skip byte-compilation for tests files
This doesn't occurs when using bare distutils but does when using setuptools (eg
from easy_install/pip). As setuptools seems broken on my box, I've not been able
to test that.

(Hopefuly) closes #171
2014-04-18 14:57:46 +02:00
Ricardo Gemignani
486aa114d5 code commented and import moved so it won't run when python>2.5 2014-03-06 22:08:08 -03:00
Ricardo Gemignani
9383d144f8 except as replaced by commas, one with_statement future import added and StringFormat used to replace string.format when python < 2.6 2014-03-06 03:08:25 -03:00
Sylvain Thénault
13ee941dad give trove classifiers to distutils. Closes #152 2014-02-26 09:23:42 +01:00
Sylvain Thénault
99196f2305 various pylint fixes 2013-12-22 23:41:57 +01:00
Benedikt Morbach
1dfc495f5c setup.py: don't call 2to3 directly 2013-10-03 20:45:00 +02:00
T.Rzepka
0380c5aa29 #51: Building pylint Windows installer for Python3 fails 2013-09-21 22:51:43 +02:00
Julien Cristau
c6ba5d0384 [pkg] install tests and run 2to3 on them
Don't run 2to3 on a file with syntax errors in it.
2013-06-19 16:43:48 +02:00
Sylvain Thénault
4b316ba0b5 create a console_scripts entry point to be used by easy_install, buildout and pip. Closes #103949
uniformize run interface and update licensing on the way
2012-09-14 13:25:22 +02:00
FELD Boris
6d1252aaa9 Do not include tests files for installation in setup.py. Clean setup.py for python3. Closes #72022. Closes #82417. Closes #76910. 2012-07-26 10:37:55 +01:00
Emile Anclin
a67fa6cdbe py3k packaging: remove removed files from P3K_FILES_TO_IGNORE 2010-12-16 11:27:56 +01:00
Emile Anclin
e048044705 fix #51228: script shortcuts on Windows 2010-12-09 13:42:10 +01:00
Julien Jehannet
f338645e49 [debian] py3k: override build_py command with filtering some test files 2010-12-06 13:29:56 +01:00