Skip to content
This repository has been archived by the owner on Sep 4, 2021. It is now read-only.

Commit

Permalink
setup.py for posting to PyPi
Browse files Browse the repository at this point in the history
Combination of @sean6541 setup.py and one of my templates.
  • Loading branch information
clach04 committed Oct 9, 2018
1 parent ed44ab9 commit 92873a2
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions setup.py
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
],
)

0 comments on commit 92873a2

Please # to comment.