-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsetup.py
43 lines (38 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
"""Setup scrapy-bigquery."""
from setuptools import setup, find_packages
from pathlib import Path
import typing
readme_path = Path(__file__).absolute().parent.joinpath('README.md')
long_description = readme_path.read_text(encoding='utf-8')
def install_requires() -> typing.List[str]:
"""Find the install requires strings from requirements.txt"""
requires = []
with open(
Path(__file__).absolute().parent.joinpath('requirements.txt'), "r"
) as requirments_txt_handle:
requires = [
x
for x in requirments_txt_handle
if not x.startswith(".") and not x.startswith("-e")
]
return requires
setup(
name='scrapy-bigquery',
version='1.0.14',
description='Scrapy pipeline to store items into BigQuery',
long_description=long_description,
long_description_content_type='text/markdown',
classifiers=[
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Framework :: Scrapy',
],
keywords='scrapy pipeline bigquery',
url='https://github.com/8W9aG/scrapy-bigquery',
author='Will Sackfield',
author_email='will.sackfield@gmail.com',
license='MIT',
install_requires=install_requires(),
zip_safe=False,
packages=find_packages()
)