megapy/setup.py

44 lines
1.4 KiB
Python
Raw Normal View History

#!/usr/bin/env python
# -*- coding: utf-8 -*
2019-10-16 21:16:46 +00:00
from __future__ import absolute_import
2019-10-16 21:16:46 +00:00
import os
from codecs import open
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)))
2019-10-16 21:16:46 +00:00
with open('requirements.txt') as f:
install_requires = f.read().splitlines()
2020-06-25 20:16:12 +00:00
with open('README.md', 'r', encoding='utf-8') as rm_file:
2019-10-22 21:40:11 +00:00
readme = rm_file.read()
2020-06-25 20:16:12 +00:00
with open('HISTORY.md', 'r', encoding='utf-8') as hist_file:
2019-10-22 21:40:11 +00:00
history = hist_file.read()
2019-10-16 20:20:22 +00:00
2020-06-25 20:03:16 +00:00
setup(name='mega.py',
2020-06-25 20:44:31 +00:00
version='1.0.9.dev0',
2020-06-25 20:03:16 +00:00
packages=find_packages('src', exclude=('tests', )),
package_dir={'': 'src'},
include_package_data=True,
zip_safe=False,
2020-06-25 20:16:12 +00:00
url='https://github.com/odwyersoftware/mega.py',
2020-06-25 20:03:16 +00:00
description='Python lib for the Mega.co.nz API',
long_description=readme + '\n\n' + history,
2020-06-25 20:16:12 +00:00
long_description_content_type='text/markdown',
author='O\'Dwyer Software',
author_email='hello@odwyer.software',
2020-06-25 20:03:16 +00:00
license='Creative Commons Attribution-Noncommercial-Share Alike license',
install_requires=install_requires,
classifiers=[
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Topic :: Internet :: WWW/HTTP',
])