Skip to content

Commit 263029d

Browse files
author
Sharoon Thomas
committed
Merge branch 'release/0.2'
2 parents d13c061 + 6ab7900 commit 263029d

File tree

3 files changed

+22
-29
lines changed

3 files changed

+22
-29
lines changed

magento/__init__.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,17 @@
33
magento API
44
55
:copyright: (c) 2010 by Sharoon Thomas.
6-
:copyright: (c) 2010-2012 by Openlabs Technologies & Consulting (P) LTD
6+
:copyright: (c) 2010-2013 by Openlabs Technologies & Consulting (P) LTD
77
:license: AGPLv3, see LICENSE for more details
88
'''
9-
__version__ = '0.1.5dev'
10-
119
__all__ = [
1210
'API',
1311
'Customer', 'CustomerGroup', 'CustomerAddress',
1412
'Country', 'Region',
1513
'Category', 'CategoryAttribute', 'Product', 'ProductAttribute',
1614
'ProductAttributeSet', 'ProductTypes', 'ProductImages',
1715
'ProductTierPrice', 'ProductLinks', 'ProductConfigurable',
18-
'Inventory', 'Order', 'Shipment', 'Invoice',
16+
'Inventory', 'Order', 'Shipment', 'Invoice', '__version__'
1917
]
2018

2119
from .api import API
@@ -26,3 +24,4 @@
2624
from .catalog import ProductTypes, ProductImages, ProductTierPrice
2725
from .catalog import ProductLinks, ProductConfigurable, Inventory
2826
from .sales import Order, Shipment, Invoice
27+
from .version import VERSION as __version__

magento/version.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# -*- coding: utf-8 -*-
2+
"""
3+
version
4+
5+
Just the version here to avoid cyclic dependency when
6+
installing the module
7+
8+
:copyright: © 2013 by Openlabs Technologies & Consulting (P) Limited
9+
:license: BSD, see LICENSE for more details.
10+
"""
11+
VERSION = '0.2'

setup.py

Lines changed: 8 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -4,49 +4,32 @@
44
Magento API
55
66
:copyright: (c) 2010 by Sharoon Thomas.
7-
:copyright: (c) 2010 by Openlabs Technologies & Consulting (P) LTD
7+
:copyright: (c) 2010-2013 by Openlabs Technologies & Consulting (P) LTD
88
:license: AGPLv3, see LICENSE for more details
99
10-
A simple to use python library to access the magento API and
11-
covered by a complete test suite based on Nose tests. Also
12-
includes a nose plugin to do the tests based on a config
13-
file.
14-
15-
Example usage::
16-
17-
from magento import Customer
18-
url = 'http://yourmagento.com'
19-
apiuser = 'apiusername'
20-
apipass = 'password'
21-
with Customer(url, apiuser, apipass) as customer_api:
22-
customer_api.list()
23-
24-
The implemented methods and APIs are from the Core API of
25-
magento documented here:
26-
27-
http://www.magentocommerce.com/support/magento_core_api
28-
2910
'''
11+
import os
3012
from setuptools import setup
31-
import magento
13+
14+
execfile(os.path.join('magento', 'version.py'))
3215

3316
setup(
3417
name = 'magento',
35-
version=magento.__version__,
36-
url='http://projects.openlabs.co.in/trac/openlabs_magento',
18+
version=VERSION,
19+
url='https://github.com/openlabs/magento/',
3720
license='GNU Affero General Public License v3',
3821
author='Sharoon Thomas, Openlabs Technologies',
3922
author_email='info@openlabs.co.in',
4023
description='Magento Core API Client',
41-
long_description=__doc__,
24+
long_description=open('README.rst').read(),
4225
packages=['magento'],
4326
zip_safe=False,
4427
platforms='any',
4528
install_requires=[
4629
'suds>=0.3.9',
4730
],
4831
classifiers=[
49-
'Development Status :: 4 - Beta',
32+
'Development Status :: 6 - Mature',
5033
'Environment :: Web Environment',
5134
'Intended Audience :: Developers',
5235
'License :: OSI Approved :: GNU Affero General Public License v3',

0 commit comments

Comments
 (0)