Commit Graph

91 Commits

Author SHA1 Message Date
Pierre Sassoulas
29bc551a94 Move informations that never change in the setup.py 2021-04-05 15:08:27 +02:00
Pierre Sassoulas
95b20ce7cc Add a dev extra require 2021-04-05 15:08:27 +02:00
Pierre Sassoulas
118b6e58bb Remove duplication in doc dependencies 2021-04-05 15:08:27 +02:00
Pierre Sassoulas
e8b44339a2 Upgrade setup.py: move from distutil to setuptools
Move from os.path to pathlib.Path and use setuptools.find_packages(),
remove pytest-runner from the setup (see https://pypi.org/project/pytest-runner/)
remove the bin directory and scripts variable in pkginfo as entrypoint+setuptools
does  the job, remove cmd_class as it's a deprecated distutils features. Remove
dependency links as we do not have any non public dependencies.
2021-04-05 15:08:27 +02:00
Pierre Sassoulas
da599c68b0 Fix Import of 'install_lib' is not used 2021-03-31 00:01:42 +02:00
Pierre Sassoulas
391c8aa96c Update copyright notice with copyrite 2021-02-28 22:33:34 +01:00
Pierre Sassoulas
ac85223e5b Apply copyrite --contribution-threshold 2021-02-21 16:56:19 +01:00
Pierre Sassoulas
5bed07eba9 Move from % string formatting syntax to f-string or .format() 2021-02-21 15:36:16 +01:00
Pierre Sassoulas
493885f173 Ignore F401 'distutils.command.install_lib' imported but unused
Do we even want to use distutil anyway ?
2021-02-15 21:14:28 +01:00
Marc Mueller
005cf2f317 Drop support for Python 3.5 to fix typing
* Variable annotation (PEP 526) requires Python 3.6
2021-02-15 14:34:46 +01:00
Pierre Sassoulas
a7d776765f Fix Need type annotation for '__pkginfo__' 2021-02-07 10:28:18 +01:00
Pierre Sassoulas
164dd5c8c2 Fix pylint warning in bin/ and setup.py 2020-12-14 16:09:19 +01:00
frostming
c2a90a62ed change specifier to ~= 2020-09-08 19:08:42 +02:00
Frost Ming
a628d6908c Fix the ambiguous python version specifier
`>=3.5.*` can make some packaging tools confused.
2020-09-08 19:08:42 +02:00
hippo91
1f7c29c0b6 Sets up copyright 2020-08-20 18:40:19 +02:00
Damien Baty
89f1a6fa3a Switch to isort 5 for pylint's own code 2020-08-18 09:12:33 +02:00
Bryce Guinta
707fc4603b Add missing test dependency pytest-benchmark to setup.py
Without this dependency the test suite fails
2020-07-16 12:15:31 -04:00
Ville Skyttä
4756b3c611 Add What's New project URL
Background info at https://github.com/pypa/warehouse/pull/7882
2020-05-06 19:50:43 +02:00
Claudiu Popa
369d952c7e Add missing copyright annotations for the past releases 2020-04-27 11:04:14 +02:00
Anthony Sottile
8a89edf3bf also lint setup.py 2020-03-24 10:27:21 +01:00
Anthony Sottile
a45505143f pyupgrade: automated removal of python2 constructs
using configuration:

```yaml
-   repo: https://github.com/asottile/pyupgrade
    rev: v2.1.0
    hooks:
    -   id: pyupgrade
        args: [--py3-plus, --keep-percent-format]
        exclude: ^tests/(extensions/data/|functional/|input/|regrtest_data/)
```
2020-03-24 10:27:21 +01:00
Anthony Sottile
1906ba0b41 Fix installation of pylint from source with no locale 2020-03-24 10:15:05 +01:00
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