Skip to content
Merged
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
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
with:
fetch-depth: 0
- uses: actions/setup-python@v5
- uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
Expand Down
13 changes: 6 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,18 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7]
python-version: ["3.12"]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v6
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: pip install wheel
run: pip install build
- name: Build distribution
run: python setup.py sdist bdist_wheel
run: python -m build
- name: Publish package to PyPi
uses: pypa/gh-action-pypi-publish@master
uses: pypa/gh-action-pypi-publish@v1.12.2
with:
user: __token__
password: ${{ secrets.pypi_password }}
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ __pycache__
*.pyc
*.json
*.txt
!requirements.txt
.coverage
htmlcov
build
Expand Down
26 changes: 15 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,24 +30,28 @@ which received a [Distinguished Artifact Award](https://conf.researchr.org/detai

### Requirements ###

* python 3.8.*
* Other python dependencies will be installed during the below setup process
* Python 3.8 or higher
* Other python dependencies will be installed during the installation process

You can either install subschema from the source code from github or the pypy package.
You can either install jsonsubschema from PyPI or from the source code on GitHub.

### A) Install from github source code ###
### A) Install from PyPI ###
Execute the following:
```
git clone https://github.com/IBM/jsonsubschema.git
cd jsonsubschema
python setup.py install
cd ..
```bash
pip install jsonsubschema
```

### B) Install from pypy ###
### B) Install from GitHub source code ###
Execute the following:
```bash
git clone https://github.com/IBM/jsonsubschema.git
cd jsonsubschema
pip install .
```
pip install jsonsubschema

For development installation (editable mode):
```bash
pip install -e .
```

## II) Running subschema ##
Expand Down
47 changes: 47 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"

[project]
name = "jsonsubschema"
version = "0.0.8"
description = "A tool to check whether a JSON schema is subset/subschema of another JSON schema"
readme = "README.md"
license = "Apache-2.0"
authors = [
{name = "Andrew Habib", email = "andrew.a.habib@gmail.com"},
{name = "Avraham Shinnar"},
{name = "Martin Hirzel"},
]
requires-python = ">=3.8"
dependencies = [
"portion",
"greenery>=4.0.0",
"jsonschema",
"jsonref",
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"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 :: 3.14",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: Testing",
]

[project.urls]
Homepage = "https://github.com/IBM/jsonsubschema"
Repository = "https://github.com/IBM/jsonsubschema"
"Bug Tracker" = "https://github.com/IBM/jsonsubschema/issues"

[project.scripts]
jsonsubschema = "jsonsubschema.cli:main"

[tool.setuptools.packages.find]
include = ["jsonsubschema*"]
1 change: 0 additions & 1 deletion requirements.txt

This file was deleted.

26 changes: 0 additions & 26 deletions setup.py

This file was deleted.