forked from uptick/pymyob
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
43 lines (38 loc) · 1.31 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
import re
from setuptools import setup
# Get version this way, so that we don't load any modules.
with open('./myob/__init__.py') as f:
exec(re.search(r'VERSION = .*', f.read(), re.DOTALL).group())
with open('README.md') as file:
long_description = file.read()
try:
setup(
name='pymyob',
packages=['myob'],
version=__version__,
description="A Python API around MYOB's AccountRight API.",
long_description=long_description,
long_description_content_type='text/markdown',
license='BSD',
author='Jarek Głowacki',
author_email='jarekwg@gmail.com',
url='https://github.com/uptick/pymyob',
keywords=['myob'],
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3.5',
'Topic :: Office/Business',
],
install_requires=[
'requests>=2.10.0',
'requests-oauthlib>=0.6.0',
],
test_suite="tests",
)
except NameError:
raise RuntimeError("Unable to determine version.")