diff options
author | Claudiu Popa <pcmanticore@gmail.com> | 2019-05-29 12:08:43 +0200 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2019-05-29 12:08:43 +0200 |
commit | a1a2655504ae023177444a15da500b7e4fa340cd (patch) | |
tree | 5a8bfa1c0406aa28ebdb5ad710919ca1672681db /setup.py | |
parent | 6ca01e0e1c691f08fbed9fab6c76339751c83b0b (diff) | |
download | astroid-git-a1a2655504ae023177444a15da500b7e4fa340cd.tar.gz |
Replace the modname and distname with the actual name of the package
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 49 |
1 files changed, 25 insertions, 24 deletions
@@ -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() |