From 3a2fafae2b1f323446e64c944758c5b5792f7510 Mon Sep 17 00:00:00 2001 From: Alex Root Junior Date: Fri, 19 May 2017 19:11:42 +0300 Subject: [PATCH] Initial commit --- .gitignore | 88 +++++++++++++++++++++++++++++++++++++++++++++ LICENSE | 18 ++++++++++ README.rst | 0 aiogram/__init__.py | 1 + requirements.txt | 9 +++++ setup.py | 32 +++++++++++++++++ 6 files changed, 148 insertions(+) create mode 100644 .gitignore create mode 100644 LICENSE create mode 100644 README.rst create mode 100644 aiogram/__init__.py create mode 100644 requirements.txt create mode 100644 setup.py diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..09ead8be --- /dev/null +++ b/.gitignore @@ -0,0 +1,88 @@ +### Python template +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[cod] +*$py.class + +# C extensions +*.so + +# Distribution / packaging +.Python +env/ +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +wheels/ +*.egg-info/ +.installed.cfg +*.egg + +# Installer logs +pip-log.txt +pip-delete-this-directory.txt + +# Unit test / coverage reports +htmlcov/ +.tox/ +.coverage +.coverage.* +.cache +nosetests.xml +coverage.xml +*,cover +.hypothesis/ + +# Scrapy stuff: +.scrapy + +# Sphinx documentation +docs/_build/ + +# pyenv +.python-version + +# SageMath parsed files +*.sage.py + +# dotenv +.env + +# virtualenv +.venv +venv/ +ENV/ + +# Spyder project settings +.spyderproject + +# Rope project settings +.ropeproject +### JetBrains template +# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm +# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 + +# User-specific stuff: +.idea/**/workspace.xml +.idea/**/tasks.xml +.idea/dictionaries + +# Sensitive or high-churn files: +.idea/**/dataSources/ +.idea/**/dataSources.ids +.idea/**/dataSources.xml +.idea/**/dataSources.local.xml +.idea/**/sqlDataSources.xml +.idea/**/dynamic.xml +.idea/**/uiDesigner.xml + +## File-based project format: +*.iws diff --git a/LICENSE b/LICENSE new file mode 100644 index 00000000..bbb46736 --- /dev/null +++ b/LICENSE @@ -0,0 +1,18 @@ +Copyright (c) 2017 Alex Root Junior + +Permission is hereby granted, free of charge, to any person obtaining a copy of this +software and associated documentation files (the "Software"), to deal in the Software +without restriction, including without limitation the rights to use, copy, modify, +merge, publish, distribute, sublicense, and/or sell copies of the Software, +and to permit persons to whom the Software is furnished to do so, subject to the +following conditions: + +The above copyright notice and this permission notice shall be included in all copies +or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, +INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR +PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS +BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE +OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file diff --git a/README.rst b/README.rst new file mode 100644 index 00000000..e69de29b diff --git a/aiogram/__init__.py b/aiogram/__init__.py new file mode 100644 index 00000000..67ec416a --- /dev/null +++ b/aiogram/__init__.py @@ -0,0 +1 @@ +__version__ = '0.1b' diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 00000000..2f4042b3 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,9 @@ +aiohttp>=2.0.7 +appdirs>=1.4.3 +async-timeout>=1.2.1 +chardet>=3.0.3 +multidict>=2.1.5 +packaging>=16.8 +pyparsing>=2.2.0 +six>=1.10.0 +yarl>=0.10.2 diff --git a/setup.py b/setup.py new file mode 100644 index 00000000..4b37d4e9 --- /dev/null +++ b/setup.py @@ -0,0 +1,32 @@ +from distutils.core import setup + +from setuptools import PackageFinder + +from aiogram import __version__ as version + + +def get_description(): + with open('README.rst', encoding='utf-8') as f: + return f.read() + + +setup( + name='aiogram', + version=version, + packages=PackageFinder.find(), + url='https://bitbucket.org/illemius/aiogram', + license='MIT', + author='Alex Root Junior', + author_email='jroot.junior@gmail.com', + description='Telegram bot API framework based on asyncio', + long_description=get_description(), + classifiers=[ + 'Development Status :: 4 - Beta', + 'Programming Language :: Python :: 3.6', + 'Environment :: Console', + 'Framework :: AsyncIO', + 'Topic :: Software Development :: Libraries :: Application Frameworks', + 'License :: OSI Approved :: MIT License', + ], + install_requires=['aiohttp'] +)