2013-02-16 00:34:16 +00:00
|
|
|
#!/usr/bin/env python
|
|
|
|
# -*- coding: utf-8 -*
|
|
|
|
|
2019-10-16 21:16:46 +00:00
|
|
|
from __future__ import absolute_import
|
2013-02-16 00:34:16 +00:00
|
|
|
|
2019-10-16 21:16:46 +00:00
|
|
|
import os
|
|
|
|
from codecs import open
|
2013-02-16 00:34:16 +00:00
|
|
|
|
2019-10-16 21:16:46 +00:00
|
|
|
from setuptools import find_packages, setup
|
2019-10-16 20:20:22 +00:00
|
|
|
|
2019-10-16 21:16:46 +00:00
|
|
|
# allow setup.py to be run from any path
|
|
|
|
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
|
2013-02-16 00:34:16 +00:00
|
|
|
|
2019-10-16 21:16:46 +00:00
|
|
|
with open('requirements.txt') as f:
|
|
|
|
install_requires = f.read().splitlines()
|
2013-02-16 00:34:16 +00:00
|
|
|
|
2019-10-22 21:40:11 +00:00
|
|
|
with open('README.rst', 'r', encoding='utf-8') as rm_file:
|
|
|
|
readme = rm_file.read()
|
2013-02-16 00:34:16 +00:00
|
|
|
|
2019-10-22 21:40:11 +00:00
|
|
|
with open('HISTORY.rst', 'r', encoding='utf-8') as hist_file:
|
|
|
|
history = hist_file.read()
|
2019-10-16 20:20:22 +00:00
|
|
|
|
2013-02-16 00:34:16 +00:00
|
|
|
setup(
|
|
|
|
name='mega.py',
|
2020-03-25 20:09:37 +00:00
|
|
|
version='1.0.7',
|
2019-10-16 21:16:46 +00:00
|
|
|
packages=find_packages('src', exclude=('tests', )),
|
|
|
|
package_dir={'': 'src'},
|
|
|
|
include_package_data=True,
|
|
|
|
zip_safe=False,
|
2013-02-16 00:34:16 +00:00
|
|
|
description='Python lib for the Mega.co.nz API',
|
2019-10-22 21:40:11 +00:00
|
|
|
long_description=readme + '\n\n' + history,
|
2013-02-16 00:34:16 +00:00
|
|
|
author='Richard O\'Dwyer',
|
|
|
|
author_email='richard@richard.do',
|
|
|
|
license='Creative Commons Attribution-Noncommercial-Share Alike license',
|
2019-10-16 21:16:46 +00:00
|
|
|
install_requires=install_requires,
|
2013-02-16 01:04:41 +00:00
|
|
|
classifiers=[
|
|
|
|
'Intended Audience :: Developers',
|
2019-10-16 21:16:46 +00:00
|
|
|
'Operating System :: OS Independent',
|
|
|
|
'Programming Language :: Python',
|
|
|
|
'Programming Language :: Python :: 3',
|
|
|
|
'Programming Language :: Python :: 3.6',
|
|
|
|
'Programming Language :: Python :: 3.7',
|
|
|
|
'Programming Language :: Python :: 3.8',
|
|
|
|
'Topic :: Internet :: WWW/HTTP',
|
2013-02-16 01:04:41 +00:00
|
|
|
]
|
2013-04-20 11:45:06 +00:00
|
|
|
)
|