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
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,6 @@ tcl
/.tox/
/.ruff_cache/
.env

# Lock files from uv, pixi, pipenv, etc.
*.lock
1 change: 0 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ include *.toml
include *.yml
include *.rst
include *.png
include setup.*
include configure*
include requirements*
include .dockerignore
Expand Down
2 changes: 1 addition & 1 deletion configure
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ CLI_ARGS=$1

# Requirement arguments passed to pip and used by default or with --dev.
REQUIREMENTS="--editable . --constraint requirements.txt"
DEV_REQUIREMENTS="--editable .[dev] --constraint requirements.txt --constraint requirements-dev.txt"
DEV_REQUIREMENTS="--editable . --group dev --constraint requirements.txt --constraint requirements-dev.txt"

# where we create a virtualenv
VIRTUALENV_DIR=venv
Expand Down
2 changes: 1 addition & 1 deletion configure.bat
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

@rem # Requirement arguments passed to pip and used by default or with --dev.
set "REQUIREMENTS=--editable . --constraint requirements.txt"
set "DEV_REQUIREMENTS=--editable .[dev] --constraint requirements.txt --constraint requirements-dev.txt"
set "DEV_REQUIREMENTS=--editable . --group dev --constraint requirements.txt --constraint requirements-dev.txt"

@rem # where we create a virtualenv
set "VIRTUALENV_DIR=venv"
Expand Down
3 changes: 1 addition & 2 deletions etc/scripts/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@ gen_requirements_dev.py** --help for details.
Note: this does NOT hash requirements for now.

Note: Be aware that if you are using "conditional" requirements (e.g. only for
OS or Python versions) in setup.py/setp.cfg/requirements.txt as these are NOT
yet supported.
OS or Python versions) in pyproject.toml as these are NOT yet supported.


Populate a thirdparty directory with wheels, sources, .ABOUT and license files
Expand Down
79 changes: 78 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,84 @@
[build-system]
requires = ["setuptools >= 50", "wheel"]
requires = [
"setuptools >= 77",
]
build-backend = "setuptools.build_meta"

[project]
name = "license-expression"
authors = [
{name = "nexB. Inc. and others", email = "info@aboutcode.org"},
]
description = "comprehensive utility library to parse, compare, simplify and normalize license expressions (such as SPDX license expressions) using boolean logic"
readme = "README.rst"
keywords = [
"open source",
"license expression",
"license",
"spdx",
"boolean",
"parse expression",
"normalize expression",
"compare expression",
"licence",
]
license = "Apache-2.0"
license-files = [
"apache-2.0.LICENSE",
"NOTICE",
"AUTHORS.rst",
"CHANGELOG.rst",
"CODE_OF_CONDUCT.rst",
"README.rst",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Software Development",
"Topic :: Utilities",
]
requires-python = ">=3.10"
dependencies = [
"boolean.py >= 4.0",
]
version = "30.4.4"

[project.urls]
Homepage = "https://github.com/aboutcode-org/license-expression"

[dependency-groups]
tests = [
"pytest >= 7.0.1",
"pytest-xdist >= 2",
]
lint = [
"twine",
"ruff",
]
docs = [
# do not use this as this triggers a bug
# in setuptools_scm:aboutcode-toolkit >= 6.0.0
"doc8>=0.11.2",
"Sphinx>=5.0.2",
"sphinx-rtd-theme>=1.0.0",
"sphinxcontrib-apidoc >= 0.4.0",
"sphinx-reredirects >= 0.1.2",
"sphinx-autobuild",
"sphinx-rtd-dark-mode>=1.3.0",
"sphinx-copybutton",
]

dev = [
{include-group = "tests"},
{include-group = "lint"},
{include-group = "docs"},
]

[tool.setuptools.packages.find]
where = ["src"]

[tool.setuptools_scm]
# this is used populated when creating a git archive
# and when there is .git dir and/or there is no git installed
Expand Down
74 changes: 0 additions & 74 deletions setup.cfg

This file was deleted.

6 changes: 0 additions & 6 deletions setup.py

This file was deleted.