From a8a02c6911b409eb944e7d4c186c925e6dacca89 Mon Sep 17 00:00:00 2001 From: SantaSpeen Date: Tue, 15 Mar 2022 23:55:07 +0300 Subject: [PATCH] 0.0.1 --- gitflic/__init__.py | 0 gitflic/__version__.py | 7 ++++++ gitflic/api.py | 6 +++++ setup.py | 51 ++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 64 insertions(+) create mode 100644 gitflic/__init__.py create mode 100644 gitflic/__version__.py create mode 100644 gitflic/api.py create mode 100644 setup.py diff --git a/gitflic/__init__.py b/gitflic/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/gitflic/__version__.py b/gitflic/__version__.py new file mode 100644 index 0000000..9e7bd70 --- /dev/null +++ b/gitflic/__version__.py @@ -0,0 +1,7 @@ +__title__ = "gitflic" +__version__ = "0.0.1" +__description__ = "GitflicApi wrapper" +__author__ = "SantaSpeen" +__author_email__ = "dir@sssr.dev" +__url__ = "https://github.com/SantaSpeen/gitflic" +__license__ = "Apache License 2.0 " diff --git a/gitflic/api.py b/gitflic/api.py new file mode 100644 index 0000000..5041b69 --- /dev/null +++ b/gitflic/api.py @@ -0,0 +1,6 @@ + +class Gitflic: + + def __init__(self): + pass + \ No newline at end of file diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..e5546c7 --- /dev/null +++ b/setup.py @@ -0,0 +1,51 @@ +import os +import sys + +from setuptools import setup + +here = os.path.abspath(os.path.dirname(__file__)) + +packages = ['gitflic'] + +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, 'gitflic', '__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={'gitflic': 'gitflic'}, + include_package_data=True, + install_requires=requires, + license=about['__license__'], + classifiers=[ + "Programming Language :: Python :: 3", + "License :: OSI Approved :: MIT License", + "Operating System :: OS Independent", + ], + project_urls={ + 'Documentation': 'https://anixart.readthedocs.io/', + 'Source': 'https://github.com/SantaSpeen/anixart', + }, + python_requires=">=3.7", +) \ No newline at end of file