From e5768a6239b2a61fbcbaacb79976de8b25da86de Mon Sep 17 00:00:00 2001 From: SantaSpeen Date: Tue, 27 Sep 2022 18:10:19 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A1=D0=BE=D0=B7=D0=B4=D0=B0=D0=BD=D0=B0=20?= =?UTF-8?q?=D0=BE=D0=B1=D1=89=D0=B0=D1=8F=20=D1=81=D1=82=D1=80=D1=83=D0=BA?= =?UTF-8?q?=D1=82=D1=83=D1=80=D0=B0=20=D0=B1=D0=B8=D0=B1=D0=BB=D0=B8=D0=BE?= =?UTF-8?q?=D1=82=D0=B5=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- anixart/__init__.py | 0 anixart/__version__.py | 11 ++++++++ requirements.txt | 0 setup.py | 58 ++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 69 insertions(+) create mode 100644 anixart/__init__.py create mode 100644 anixart/__version__.py create mode 100644 requirements.txt create mode 100644 setup.py diff --git a/anixart/__init__.py b/anixart/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/anixart/__version__.py b/anixart/__version__.py new file mode 100644 index 0000000..343c68a --- /dev/null +++ b/anixart/__version__.py @@ -0,0 +1,11 @@ +# -*- coding: utf-8 -*- + +__title__ = 'anixart' +__description__ = 'Wrapper for using the Anixart API.' +__url__ = 'https://github.com/SantaSpeen/anixart' +__version__ = '0.1' +__build__ = 1 +__author__ = 'Maxim Khomutov' +__author_email__ = 'SantaSpeen@gmail.com' +__license__ = "FPA" +__copyright__ = 'Copyright 2022 Maxim Khomutov' diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..e69de29 diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..4803817 --- /dev/null +++ b/setup.py @@ -0,0 +1,58 @@ +# -*- coding: utf-8 -*- + +import os +import sys + +from setuptools import setup + +here = os.path.abspath(os.path.dirname(__file__)) + +packages = ['anixart'] + +requires = ['requests'] + +# 'setup.py publish' shortcut. +if sys.argv[-1] == 'publish': + os.system('py -m build') + os.system('py -m twine upload --repository testpypi dist/*') + os.system('py -m twine upload --repository pypi dist/*') + sys.exit() + +about = {} +with open(os.path.join(here, 'anixart', '__version__.py'), 'r', encoding='utf-8') as f: + exec(f.read(), about) + +with open('README.md', 'r', encoding='utf-8') as f: + readme = f.read() + +setup( + name=about['__title__'], + version=about['__version__'], + description=about['__description__'], + long_description=readme, + long_description_content_type='text/markdown', + author=about['__author__'], + author_email=about['__author_email__'], + url=about['__url__'], + packages=packages, + package_data={'': ['LICENSE']}, + package_dir={'anixart': 'anixart'}, + include_package_data=True, + install_requires=requires, + license=about['__license__'], + classifiers=[ + "Development Status :: 4 - Beta", + "Intended Audience :: Developers", + "Natural Language :: Russian", + "Programming Language :: Python :: 3 :: Only", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.9", + "License :: Other/Proprietary License", + "Operating System :: OS Independent", + ], + project_urls={ + 'Documentation': 'https://anixart.readthedocs.io/', + 'Source': 'https://github.com/SantaSpeen/anixart', + }, + python_requires=">=3.7", +)