Skip to content

Commit

Permalink
Migrated to pyproject.toml.
Browse files Browse the repository at this point in the history
  • Loading branch information
peteradrichem committed Dec 15, 2024
1 parent da724be commit cd251b7
Show file tree
Hide file tree
Showing 9 changed files with 69 additions and 77 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
*.pyc
/Xul.egg-info/
**/__pycache__/
/Xul\.egg\-info/
/build/
/dist/
/docs/_build/
9 changes: 0 additions & 9 deletions .hgignore

This file was deleted.

3 changes: 2 additions & 1 deletion .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ build:
# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
python:
install:
- requirements: docs/requirements.txt
- method: pip
path: .
extra_requirements:
- docs

# Build documentation in the "docs/" directory with Sphinx
sphinx:
Expand Down
6 changes: 6 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ Changelog

This document records all notable changes to `Xul <https://xul.readthedocs.io/>`_.

`2.4.2 <https://github.com/peteradrichem/Xul/compare/2.4.1...2.4.2>`_ (2024-12-15)
----------------------------------------------------------------------------------
* Moved to `GitHub <https://github.com/peteradrichem/Xul>`_.
* Read the Docs configuration.
* Migrated to pyproject.toml.

`2.4.1 <https://bitbucket.org/peteradrichem/xul/branches/compare/2.4.1%0D2.4.0>`_ (2022-02-14)
----------------------------------------------------------------------------------------------
* Fixed Changelog URL.
Expand Down
1 change: 0 additions & 1 deletion docs/requirements.txt

This file was deleted.

57 changes: 57 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,63 @@
[project]
name = "Xul"
description = "XML (XPath, XSD, XSLT) Utilities"
readme = "README.rst"
authors = [
{ name = "Peter Adrichem", email = "Peter.Adrichem@gmail.com" }
]
requires-python = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,>=2.7"
dependencies = [
"lxml>=2.0"
]
keywords = [ "xml", "xpath", "xslt", "xsd", "dtd", "xml schema", "relax ng", "rng" ]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Text Processing :: Markup :: XML",
"Topic :: Utilities"
]
license = { text = "MIT" }
dynamic = [ "version" ]

[project.optional-dependencies]
syntax = [
"Pygments>=2.0"
]
docs = [
"Sphinx~=8.1.3"
]

[project.urls]
Homepage = "https://xul.readthedocs.io/"
Documentation = "https://xul.readthedocs.io/en/stable/"
Changelog = "https://xul.readthedocs.io/en/latest/changelog.html"
Source = "https://github.com/peteradrichem/Xul"

[build-system]
requires = [
"setuptools>=42",
"wheel"
]
build-backend = "setuptools.build_meta"

[tool.setuptools.dynamic]
version = { attr = "xul.__version__" }

[project.entry-points.console_scripts]
transform = "xul.cmd.transform:main"
ppx = "xul.cmd.ppx:main"
xp = "xul.cmd.xp:main"
validate = "xul.cmd.validate:main"
55 changes: 0 additions & 55 deletions setup.cfg

This file was deleted.

5 changes: 0 additions & 5 deletions setup.py

This file was deleted.

7 changes: 2 additions & 5 deletions xul/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-

"""XML Utilities.
XML scripts in Python.
Expand All @@ -10,7 +8,6 @@
* transform: transform XML source with XSLT.
"""


# Xul version.
__version_info__ = ('2', '4', '2')
__version__ = '.'.join(__version_info__)
__version_info__ = ("2", "4", "2")
__version__ = ".".join(__version_info__)

0 comments on commit cd251b7

Please sign in to comment.