-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
35 lines (28 loc) · 1.08 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import os
from pathlib import Path
from setuptools import setup, find_packages
LONG_DESCRIPTION_SRC = 'README.rst'
def read(file):
with open(os.path.abspath(file), 'r', encoding='utf-8') as f:
return f.read()
# Parse version
init = Path(__file__).parent.joinpath("magento", "__init__.py")
for line in init.read_text().split("\n"):
if line.startswith("__version__ ="):
break
version = line.split(" = ")[-1].strip('"')
setup(
name='my-magento',
packages=find_packages(),
version=version,
license='MIT',
description='Python Magento 2 REST API Wrapper',
long_description=read(LONG_DESCRIPTION_SRC),
long_description_content_type="text/x-rst; charset=UTF-8",
author='Adam Korn',
author_email='hello@dailykitten.net',
url='https://www.github.com/TDKorn/my-magento',
download_url="https://github.com/TDKorn/my-magento/tarball/master",
keywords=["magento", "magento-api", "python-magento", "python", "python3", "magento-python", "pymagento", "py-magento", "magento2", "magento-2", "magento2-api"],
install_requires=["requests"]
)