Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions .bumpversion.cfg

This file was deleted.

8 changes: 7 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
/.tox
/MANIFEST
/dist
/build
/docs/_build
/.coverage
.idea
.idea
*.py[co]
__pycache__

# generated file
/cssselect/version.py
5 changes: 2 additions & 3 deletions cssselect/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,5 @@
SelectorError, SelectorSyntaxError)
from cssselect.xpath import GenericTranslator, HTMLTranslator, ExpressionError


VERSION = '1.1.0'
__version__ = VERSION
from .version import __version__
VERSION = __version__
7 changes: 7 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[build-system]
requires = ["setuptools>=44", "wheel", "setuptools_scm[toml]>=3.4.3"]
build-backend = "setuptools.build_meta"

[tool.setuptools_scm]
write_to = "cssselect/version.py"
write_to_template = "__version__ = \"{version}\"\n"
27 changes: 27 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,3 +1,30 @@
[metadata]
name = cssselect
author = Ian Bicking
author_email = [email protected]
maintainer = Paul Tremberth
maintainer_email = [email protected]
license = BSD-3-Clause
description = cssselect parses CSS3 Selectors and translates them to XPath 1.0
url = https://github.com/scrapy/cssselect
long_description = file: README.rst
long_description_content_type = text/x-rst
classifiers =
Development Status :: 4 - Beta
Intended Audience :: Developers
License :: OSI Approved :: BSD License
Programming Language :: Python :: 2
Programming Language :: Python :: 2.7
Programming Language :: Python :: 3
Programming Language :: Python :: 3.4
Programming Language :: Python :: 3.5
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7

[options]
packages = cssselect
python_requires = >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*

[build_sphinx]
source-dir = docs
build-dir = docs/_build
Expand Down
46 changes: 0 additions & 46 deletions setup.py

This file was deleted.