-
Notifications
You must be signed in to change notification settings - Fork 5
/
setup.py
51 lines (37 loc) · 1.28 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
# -*- coding: utf-8 -*-
import re
from setuptools import setup
from os import path
from io import open
here = path.abspath(path.dirname(__file__))
with open('anpy/__init__.py', 'r') as fd:
version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]',
fd.read(), re.MULTILINE).group(1)
if not version:
raise RuntimeError('Cannot find version information')
with open(path.join(here, 'README.md'), encoding='utf-8') as readme:
LONG_DESC = readme.read()
with open(path.join(here, 'requirements.txt')) as f:
requirements = f.read().splitlines()
setup(
name='anpy',
version=version,
description='Python client for assemblee-nationale.fr website',
long_description=LONG_DESC,
long_description_content_type='text/markdown',
license="MIT",
url='https://github.com/regardscitoyens/anpy',
author='Regards Citoyens',
author_email='[email protected]',
include_package_data=True,
classifiers=[
'Development Status :: 3 - Alpha',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3',
],
keywords='scraping politics data',
packages=['anpy'],
install_requires=requirements,
scripts=['bin/anpy-cli'],
)