This repository has been archived by the owner on Sep 4, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Combination of @sean6541 setup.py and one of my templates.
- Loading branch information
Showing
1 changed file
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
import codecs | ||
import os | ||
import sys | ||
try: | ||
from setuptools import setup | ||
except ImportError: | ||
from distutils.core import setup | ||
|
||
import pytuya | ||
|
||
|
||
if len(sys.argv) <= 1: | ||
print(""" | ||
Suggested setup.py parameters: | ||
* build | ||
* install | ||
* sdist --formats=zip | ||
* sdist # NOTE requires tar/gzip commands | ||
""") | ||
|
||
here = os.path.abspath(os.path.dirname(__file__)) | ||
|
||
with codecs.open(os.path.join(here, 'README.md'), encoding='utf-8') as f: | ||
long_description = f.read() | ||
|
||
setup( | ||
name='pytuya', | ||
author=pytuya.__author__, | ||
version=pytuya.__version__, | ||
description='Python interface to ESP8266MOD WiFi smart devices from Shenzhen Xenon', | ||
long_description=long_description, | ||
long_description_content_type='text/markdown', | ||
url='https://github.com/clach04/python-tuya', | ||
author_email='', | ||
license='MIT', | ||
classifiers=[ | ||
'Development Status :: 4 - Beta', | ||
'Intended Audience :: Developers', | ||
'Topic :: Home Automation', | ||
'License :: OSI Approved :: MIT License', | ||
'Programming Language :: Python', | ||
'Programming Language :: Python :: 2', | ||
'Programming Language :: Python :: 3', | ||
'Programming Language :: Python :: 3.6', | ||
'Topic :: Home Automation', | ||
], | ||
keywords='home automation', | ||
packages=['pytuya'], | ||
platforms='any', | ||
install_requires=[ | ||
'pyaes', # NOTE this is optional, AES can be provided via PyCrypto or PyCryptodome | ||
], | ||
) |