-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathsetup.py
45 lines (38 loc) · 1.22 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
44
45
from setuptools import setup, find_packages
import unittest
import doctest
# Read in the version number
exec(open('src/arcas/version.py', 'r').read())
requirements = ["requests>=2.12.1",
"requests_mock>=1.2.0",
"ratelimit==1.4.1",
"docopt",
"pytz",
"pandas",
"pytest",
"pytest-cov"]
with open('README.rst') as readme_file:
readme = readme_file.read()
def test_suite():
"""Discover all tests in the tests dir"""
test_loader = unittest.TestLoader()
# Read in unit tests
test_suite = test_loader.discover('tests')
# Read in doctests from README
test_suite.addTests(doctest.DocFileSuite('README.md',
optionflags=doctest.ELLIPSIS))
return test_suite
setup(
name='arcas',
version=__version__,
install_requires=requirements,
author='Nikoleta Glynatsi',
author_email=('glynatsine@cardiff.ac.uk'),
packages=find_packages('src'),
package_dir={"": "src"},
scripts=['bin/arcas_scrape'],
test_suite='setup.test_suite',
url='',
license='The MIT License (MIT)',
description='A library to gather data from academic apis',
)