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/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ jobs:
- name: Install dependencies
run: |
python -m pip install -U pip
python -m pip install -U setuptools twine wheel
python -m pip install -U build twine
pip install .[dev]

- name: Build package
run: |
python setup.py --version
python setup.py sdist --format=gztar bdist_wheel
python -m build
twine check dist/*

- name: Upload packages to Jazzband
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@ jobs:

- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
python -m pip install -U pip
python -m pip install -U build twine
pip install .[dev]

- name: Tests
run: |
Expand All @@ -50,6 +51,11 @@ jobs:
with:
name: Python ${{ matrix.python-version }}

- name: Test build package
run: |
python -m build
twine check dist/*

success:
needs: test
runs-on: ubuntu-latest
Expand Down
3 changes: 0 additions & 3 deletions jsonmodels/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +0,0 @@
__author__ = "Szczepan Cieślik"
__email__ = "szczepan.cieslik@gmail.com"
__version__ = "2.7.0"
59 changes: 59 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "jsonmodels"
version = "2.7.0"
description="Models to make easier to deal with structures that are converted to, or read from JSON."
readme = "README.rst"
requires-python = ">=3.8"
license = {file = "LICENSE"}
dependencies = ["python-dateutil"]
classifiers=[
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Natural Language :: English",
"Programming Language :: Python :: 3",
"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",
"Programming Language :: Python :: 3 :: Only",
]
authors = [
{name = "Szczepan Cieślik", email = "szczepan.cieslik@gmail.com"}
]

[project.optional-dependencies]
dev = [
"Jinja2",
"MarkupSafe",
"Pygments",
"Sphinx",
"coverage",
"docutils",
"flake8",
"flake8-pyproject",
"invoke",
"importlib-metadata==4.13.0",
"mccabe",
"pep8",
"py",
"pyflakes",
"pytest",
"pytest-cov",
"sphinxcontrib-spelling",
]

[project.urls]
"Home" = "https://github.com/jazzband/jsonmodels"

[tool.flake8]
exclude = ["./docs/conf.py"]
max-complexity = 8
max_line_length = 88

[tool.isort]
profile = "black"
19 changes: 0 additions & 19 deletions requirements.txt

This file was deleted.

7 changes: 0 additions & 7 deletions setup.cfg

This file was deleted.

89 changes: 0 additions & 89 deletions setup.py

This file was deleted.

Loading