Skip to content

Commit

Permalink
Merge c975fe7 into f020b55
Browse files Browse the repository at this point in the history
  • Loading branch information
rikroe committed Apr 3, 2020
2 parents f020b55 + c975fe7 commit 348cc74
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 45 deletions.
4 changes: 4 additions & 0 deletions bimmer_connected/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
"""Init file for bimmer_connected."""

import pkg_resources # part of setuptools

__version__ = pkg_resources.get_distribution("bimmer_connected").version
3 changes: 0 additions & 3 deletions bimmer_connected/version.py

This file was deleted.

5 changes: 2 additions & 3 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
# import sys
# sys.path.insert(0, os.path.abspath('.'))

from bimmer_connected import version as const

# -- Project information -----------------------------------------------------

project = 'bimmer_connected'
Expand All @@ -27,7 +25,7 @@
# The short X.Y version
# version = const.__short_version__
# The full version, including alpha/beta/rc tags
release = const.__version__
# release = const.__version__

# -- General configuration ---------------------------------------------------

Expand All @@ -39,6 +37,7 @@
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
'pbr.sphinxext',
'sphinx.ext.autodoc',
'sphinx.ext.doctest',
'sphinx.ext.todo',
Expand Down
1 change: 1 addition & 0 deletions requirements-test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ pylint
flake8
sphinx
sphinx-autobuild
pbr
34 changes: 34 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[metadata]
name = bimmer_connected
author = gerard33
author-email = bietenbak@yahoo.com
summary = Library to read data from the BMW Connected Drive portal
description-file = README.rst
description-content-type = text/x-rst; charset=UTF-8
python_requires = >= 3.5
home-page = https://github.com/bimmerconnected/bimmer_connected
project_urls =
Bug Tracker = https://github.com/bimmerconnected/bimmer_connected/issues
Documentation = https://bimmer-connected.readthedocs.io/en/latest/
Source Code = https://github.com/bimmerconnected/bimmer_connected
license = Apache-2
classifier =
Development Status :: 4 - Beta
Environment :: Console
Intended Audience :: Developers
Programming Language :: Python :: 3
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
keywords =
BMW
Connected Drive
home automation

[files]
packages =
bimmer_connected

[entry_points]
console_scripts =
bimmerconnected = bimmer_connected.cli:main
42 changes: 3 additions & 39 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,43 +1,7 @@
"""Python package description."""
from setuptools import setup, find_packages

from bimmer_connected.version import __version__ as version

def readme():
"""Load the readme file."""
with open('README.rst') as readme_file:
return readme_file.read()
from setuptools import setup

setup(
name="bimmer_connected",
version=version,
author="gerard33",
author_email="bietenbak@yahoo.com",
description="Library to read data from the BMW Connected Drive portal",
long_description=readme(),
long_description_content_type="text/x-rst",
url="https://github.com/bimmerconnected/bimmer_connected",
packages=['bimmer_connected'],
install_requires=[
'requests', 'typing>=3,<4;python_version<"3.5"'
],
keywords='BMW Connected Drive home automation',
zip_safe=False,
extras_require={
'testing': ['pytest']
},
entry_points={
'console_scripts': [
'bimmerconnected=bimmer_connected.cli:main'
],
},
license='Apache 2.0',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
],
setup_requires=['pbr'],
pbr=True,
)

0 comments on commit 348cc74

Please sign in to comment.