Skip to content

Commit

Permalink
More changes to fix the build
Browse files Browse the repository at this point in the history
  • Loading branch information
manzanotti committed Dec 10, 2022
1 parent 8114747 commit 1da18e8
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 22 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# CircleCI 2.1 configuration file for https://github.com/zxdavb/geniushub-client
# CircleCI 2.1 configuration file for https://github.com/manzanotti/geniushub-client
# Check https://circleci.com/docs/2.0/language-python/ for more details

version: 2.1
Expand Down
2 changes: 0 additions & 2 deletions CHANGELOG.md

This file was deleted.

2 changes: 2 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,7 @@ include LICENSE
include *.md

prune .circleci
prune .github
prune tests
exclude *.txt
exclude .flake8 .pre-commit-config.yaml
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![CircleCI](https://circleci.com/gh/zxdavb/geniushub-client.svg?style=svg)](https://circleci.com/gh/zxdavb/geniushub-client) [![Join the chat at https://gitter.im/geniushub-client/community](https://badges.gitter.im/geniushub-client/community.svg)](https://gitter.im/geniushub-client/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/geniushub-client)
[![CircleCI](https://circleci.com/gh/manzanotti/geniushub-client.svg?style=svg)](https://circleci.com/gh/manzanotti/geniushub-client) [![Join the chat at https://gitter.im/geniushub-client/community](https://badges.gitter.im/geniushub-client/community.svg)](https://gitter.im/geniushub-client/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/geniushub-client)

# geniushub-client
This is a Python library to provide access to a **Genius Hub** by abstracting its [RESTful API](https://my.geniushub.co.uk/docs). It uses **aiohttp** and is therefore async-friendly.
Expand All @@ -9,7 +9,7 @@ If you use the v3 API, you can interrogate the hub directly, rather than via Hea

It is a WIP, and may be missing some functionality. In addition, there are some other limitations (see below).

It is based upon work by [@GeoffAtHome](https://github.com/zxdavb/geniushub-client/commits?author=GeoffAtHome) - thanks!
It is based upon work by [@GeoffAtHome](https://github.com/manzanotti/geniushub-client/commits?author=GeoffAtHome) and [@zxdavb]](https://github.com/manzanotti/geniushub-client/commits?author=zxdavb) - thanks!

## Current limitations
Current limitations & to-dos include:
Expand Down
21 changes: 4 additions & 17 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@
#
"""The setup.py file."""

import os
import sys

from setuptools import find_packages, setup
from setuptools.command.install import install

with open("geniushubclient/__init__.py") as fh:
for line in fh:
Expand All @@ -21,16 +17,6 @@
LONG_DESCRIPTION = fh.read()


class VerifyVersionCommand(install):
"""Custom command to verify that the git tag matches our VERSION."""

def run(self):
tag = os.getenv("CIRCLE_TAG")
if tag != VERSION:
info = "Git tag: {tag} does not match the version of this pkg: {VERSION}"
sys.exit(info)


setup(
name="geniushub-client",
description="A aiohttp-based client for Genius Hub systems",
Expand All @@ -39,7 +25,7 @@ def run(self):
author_email="manzo@gorilla-tactics.com",
url=URL,
download_url=f"{URL}/archive/{VERSION}.tar.gz",
install_requires=[list(val.strip() for val in open("requirements.txt"))],
install_requires=["aiohttp"],
long_description=LONG_DESCRIPTION,
long_description_content_type="text/markdown",
packages=find_packages(exclude=["test", "docs"]),
Expand All @@ -53,7 +39,8 @@ def run(self):
"Programming Language :: Python :: 3.7",
"Topic :: Home Automation",
],
cmdclass={
"verify": VerifyVersionCommand,
project_urls={ # Optional
"Bug Reports": "https://github.com/manzanotti/geniushub-client/issues",
"Source": "https://github.com/manzanotti/geniushub-client/",
},
)

0 comments on commit 1da18e8

Please sign in to comment.