prevent importing from package while running setup
This commit is contained in:
parent
1e5af3fd43
commit
5eff290e38
1 changed files with 12 additions and 19 deletions
31
setup.py
31
setup.py
|
@ -1,31 +1,24 @@
|
||||||
from setuptools import setup
|
from setuptools import setup
|
||||||
|
|
||||||
from wakatime.__about__ import (
|
about = {}
|
||||||
__author__,
|
with open('wakatime/__about__.py') as f:
|
||||||
__author_email__,
|
exec(f.read(), about)
|
||||||
__description__,
|
|
||||||
__license__,
|
|
||||||
__title__,
|
|
||||||
__url__,
|
|
||||||
__version__,
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
packages = [
|
packages = [
|
||||||
__title__,
|
about['__title__'],
|
||||||
]
|
]
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name=__title__,
|
name=about['__title__'],
|
||||||
version=__version__,
|
version=about['__version__'],
|
||||||
license=__license__,
|
license=about['__license__'],
|
||||||
description=__description__,
|
description=about['__description__'],
|
||||||
long_description=open('README.rst').read(),
|
long_description=open('README.rst').read(),
|
||||||
author=__author__,
|
author=about['__author__'],
|
||||||
author_email=__author_email__,
|
author_email=about['__author_email__'],
|
||||||
url=__url__,
|
url=about['__url__'],
|
||||||
packages=packages,
|
packages=packages,
|
||||||
package_dir={__title__: __title__},
|
package_dir={about['__title__']: about['__title__']},
|
||||||
include_package_data=True,
|
include_package_data=True,
|
||||||
zip_safe=False,
|
zip_safe=False,
|
||||||
platforms='any',
|
platforms='any',
|
||||||
|
|
Loading…
Reference in a new issue