This commit is contained in:
Maxim Khomutov 2022-03-15 23:55:07 +03:00
parent f5f3ff6214
commit a8a02c6911
4 changed files with 64 additions and 0 deletions

0
gitflic/__init__.py Normal file
View File

7
gitflic/__version__.py Normal file
View File

@ -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 "

6
gitflic/api.py Normal file
View File

@ -0,0 +1,6 @@
class Gitflic:
def __init__(self):
pass

51
setup.py Normal file
View File

@ -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",
)