setup.py 1001 Bytes
Newer Older
Paul Arthur's avatar
Paul Arthur committed
1
2
3
4
import os

from subprocess import check_output

Rob Carleski's avatar
Rob Carleski committed
5
6
from setuptools import setup, find_packages

Paul Arthur's avatar
Paul Arthur committed
7
8
9
10
11
12
13
14
15
16
version = check_output(['bash', os.path.join(os.path.dirname(__file__), 'version.sh')]).decode(encoding='utf-8')

with open(os.path.join(os.path.dirname(__file__), 'README.md'), 'r') as f:
    long_description = f.read()

test_deps = [
    'pytest',
    'pytest-pep8',
    'flask',
]
Rob Carleski's avatar
Rob Carleski committed
17

Paul Arthur's avatar
Paul Arthur committed
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
setup(
    name='umich_mcomm',
    version=version,
    description='Library for interacting with MCommunity APIs',
    long_description=long_description,
    long_description_content_type='text/markdown',
    url='https://gitlab.umich.edu/carleski/python-mcommunity.git',
    author='Rob Carleski',
    author_email='carleski@umich.edu',
    license='MIT',
    python_requires='>=3',
    packages=find_packages(),
    install_requires=[
        'requests',
    ],
    setup_requires=[
        'pytest-runner',
    ],
    tests_require=test_deps,
    extras_require={
        'test': test_deps,
    },
    zip_safe=False
)