-
Notifications
You must be signed in to change notification settings - Fork 61
/
Copy pathsetup.py
47 lines (42 loc) · 1.51 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
# -*- coding: utf-8 -*-
import os.path
import re
from setuptools import setup
ROOT = os.path.dirname(__file__)
with open(os.path.join(ROOT, "README.rst")) as readme_file:
README = readme_file.read()
with open(os.path.join(ROOT, "cssselect", "__init__.py")) as init_file:
INIT_PY = init_file.read()
VERSION = re.search('VERSION = "([^"]+)"', INIT_PY).group(1)
setup(
name="cssselect",
version=VERSION,
author="Ian Bicking",
author_email="[email protected]",
maintainer="Paul Tremberth",
maintainer_email="[email protected]",
description="cssselect parses CSS3 Selectors and translates them to XPath 1.0",
long_description=README,
long_description_content_type="text/x-rst",
url="https://github.com/scrapy/cssselect",
license="BSD",
packages=["cssselect"],
package_data={
"cssselect": ["py.typed"],
},
include_package_data=True,
python_requires=">=3.9",
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
],
)