-
Notifications
You must be signed in to change notification settings - Fork 6
/
setup.py
71 lines (52 loc) · 1.77 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
"""
pandas-datapackage-reader
-------------------------
Easy loading of tabular data from Data Packages into Pandas DataFrames.
Install using ::
pip install pandas-datapackage-reader
See README.md and repository for details: <https://github.com/rgieseke/pandas-datapackage-reader>
"""
import os
import sys
from setuptools import setup
from setuptools.command.test import test as TestCommand
import versioneer
path = os.path.abspath(os.path.dirname(__file__))
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
import pytest
sys.exit(pytest.main(self.test_args))
with open(os.path.join(path, "README.md"), "r") as f:
readme = f.read()
cmdclass = versioneer.get_cmdclass()
cmdclass.update({"test": PyTest})
REQUIREMENTS = ["pandas>=0.24.0", "requests"]
REQUIREMENTS_EXTRAS = {"tests": ["pytest>=4.1", "geopandas"]}
setup(
name="pandas-datapackage-reader",
version=versioneer.get_version(),
description="Pandas Data Package Reader",
long_description=readme,
long_description_content_type="text/markdown",
url="https://github.com/rgieseke/pandas-datapackage-reader",
author="Robert Gieseke",
author_email="[email protected]",
license="BSD",
platforms="any",
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
],
keywords=["data-package"],
cmdclass=cmdclass,
packages=["pandas_datapackage_reader"],
install_requires=REQUIREMENTS,
extras_require=REQUIREMENTS_EXTRAS,
)