-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
34 lines (32 loc) · 1.02 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
# setup.py
from setuptools import setup
from pathlib import Path
# Leggi il README
this_directory = Path(__file__).parent
long_description = (this_directory / "README.md").read_text(encoding="utf-8")
setup(
name="scrape-cli",
version="1.1.2",
description="It's a command-line tool to extract HTML elements using an XPath query or CSS3 selector.",
long_description=long_description,
long_description_content_type="text/markdown", # Specifica formato Markdown
author="Andrea Borruso",
author_email="[email protected]",
url="https://github.com/aborruso/scrape-cli",
packages=["scrape_cli"], # nota: usa underscore invece di trattino
entry_points={
'console_scripts': [
'scrape=scrape_cli.scrape:main',
],
},
install_requires=[
"cssselect",
"lxml"
],
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
python_requires='>=3.6',
)