diff options
| author | hippo91 <guillaume.peillex@gmail.com> | 2019-06-01 11:06:08 +0200 |
|---|---|---|
| committer | hippo91 <guillaume.peillex@gmail.com> | 2019-06-01 11:06:08 +0200 |
| commit | 40a7ee9b3882f25d8f0098dbb430ee8f97ea36b0 (patch) | |
| tree | cef315cf2ebec21d13b085a109b4dd7ff05cd29f | |
| parent | f8d12d275c18579615f7e63d701ce0b421facb27 (diff) | |
| parent | a1a2655504ae023177444a15da500b7e4fa340cd (diff) | |
| download | astroid-git-40a7ee9b3882f25d8f0098dbb430ee8f97ea36b0.tar.gz | |
Merge branch 'master' into bug_pylint_2721
| -rw-r--r-- | astroid/__pkginfo__.py | 4 | ||||
| -rw-r--r-- | setup.py | 49 |
2 files changed, 25 insertions, 28 deletions
diff --git a/astroid/__pkginfo__.py b/astroid/__pkginfo__.py index ea870840..55e89629 100644 --- a/astroid/__pkginfo__.py +++ b/astroid/__pkginfo__.py @@ -17,10 +17,6 @@ """astroid packaging information""" -distname = "astroid" - -modname = "astroid" - version = "2.3.0" numversion = tuple(int(elem) for elem in version.split(".") if elem.isdigit()) @@ -19,34 +19,35 @@ from setuptools.command import install_lib real_path = os.path.realpath(__file__) astroid_dir = os.path.dirname(real_path) -pkginfo = os.path.join(astroid_dir, 'astroid', '__pkginfo__.py') +pkginfo = os.path.join(astroid_dir, "astroid", "__pkginfo__.py") -with open(pkginfo, 'rb') as fobj: - exec(compile(fobj.read(), pkginfo, 'exec'), locals()) +with open(pkginfo, "rb") as fobj: + exec(compile(fobj.read(), pkginfo, "exec"), locals()) -with open(os.path.join(astroid_dir, 'README.rst')) as fobj: +with open(os.path.join(astroid_dir, "README.rst")) as fobj: long_description = fobj.read() def install(): - return setup(name = distname, - version = version, - license = license, - description = description, - long_description = long_description, - classifiers = classifiers, - author = author, - author_email = author_email, - url = web, - python_requires='>=3.4.*', - install_requires = install_requires, - extras_require=extras_require, - packages=find_packages(exclude=['astroid.tests']) + ['astroid.brain'], - setup_requires=['pytest-runner'], - test_suite='test', - tests_require=['pytest'], - ) - - -if __name__ == '__main__' : + return setup( + name="astroid", + version=version, + license=license, + description=description, + long_description=long_description, + classifiers=classifiers, + author=author, + author_email=author_email, + url=web, + python_requires=">=3.4.*", + install_requires=install_requires, + extras_require=extras_require, + packages=find_packages(exclude=["astroid.tests"]) + ["astroid.brain"], + setup_requires=["pytest-runner"], + test_suite="test", + tests_require=["pytest"], + ) + + +if __name__ == "__main__": install() |
