forked from andySquirro/scrapy-selenium
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
30 lines (25 loc) · 860 Bytes
/
setup.py
File metadata and controls
30 lines (25 loc) · 860 Bytes
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
"""
Packaging script for scrapy-selenium (patched for modern pip)
"""
from pathlib import Path
from setuptools import setup, find_packages
def get_requirements(path):
"""
Read a requirements file, returning a list with comments / empty
lines stripped.
"""
lines = (l.strip() for l in Path(path).read_text().splitlines())
return [l for l in lines if l and not l.startswith("#")]
setup(
name="scrapy-selenium",
version="0.0.0+local", # or read it from a file / tag
description="Scrapy middleware that drives a Selenium browser",
author="Original authors",
packages=find_packages(),
python_requires=">=3.8",
install_requires=get_requirements("requirements/requirements.txt"),
classifiers=[
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
],
)