forked from woocommerce/wc-api-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
54 lines (47 loc) · 1.59 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/usr/bin/env python
# -*- coding: utf-8 -*-
""" Setup module """
from setuptools import setup
import os
import re
# Get version from __init__.py file
VERSION = ""
with open("woocommerce/__init__.py", "r") as fd:
VERSION = re.search(r"^__version__\s*=\s*['\"]([^\"]*)['\"]", fd.read(), re.MULTILINE).group(1)
if not VERSION:
raise RuntimeError("Cannot find version information")
# Get long description
README = open(os.path.join(os.path.dirname(__file__), "README.rst")).read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name="WooCommerce",
version=VERSION,
description="A Python wrapper for the WooCommerce REST API",
long_description=README,
author="Claudio Sanches @ Automattic",
url="https://github.com/woocommerce/wc-api-python",
license="MIT License",
packages=[
"woocommerce"
],
include_package_data=True,
platforms=['any'],
install_requires=[
"requests",
"ordereddict"
],
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Natural Language :: English",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.2",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Topic :: Software Development :: Libraries :: Python Modules"
],
)