forked from J535D165/cbsodata
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
50 lines (44 loc) · 1.47 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
from setuptools import setup
from os import path
from codecs import open
here = path.abspath(path.dirname(__file__))
# Use readme as long description
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
# Extract version from cbsodata.py
for line in open(path.join('cbsodata', '__init__.py')):
if line.startswith('__version__'):
exec(line)
break
setup(
name='cbsodata',
version=__version__, # noqa
description='Statistics Netherlands opendata API client for Python',
long_description=long_description,
url='https://github.com/J535D165/cbsodata',
author='Jonathan de Bruin',
author_email='[email protected]',
license='MIT',
classifiers=[
'Development Status :: 5 - Production/Stable',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7'
],
keywords='cbs statistics odata netherlands dutch',
install_requires=['requests'],
entry_points={
# two entry points: cbs and cbsodata
'console_scripts': [
'cbsodata=cbsodata.__main__:main',
'cbs=cbsodata.__main__:main',
],
},
py_modules=['cbsodata.cbsodata3', 'cbsodata.__main__'],
tests_require=[
'pytest'
],
)