Skip to content

Commit

Permalink
Merge pull request #682 from tefra/prepare-release
Browse files Browse the repository at this point in the history
Bump version v22.5
  • Loading branch information
tefra authored May 8, 2022
2 parents 213fc6c + ec5f639 commit a98b926
Show file tree
Hide file tree
Showing 7 changed files with 51 additions and 41 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Publish Python 🐍 distributions 📦 to PyPI and TestPyPI

on:
release:
types: [released]

jobs:
build-n-publish:
name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set up Python 3.9
uses: actions/setup-python@v1
with:
python-version: 3.9
- name: Install pypa/build
run: >-
python -m
pip install
build
--user
- name: Build a binary wheel and a source tarball
run: >-
python -m
build
--sdist
--wheel
--outdir dist/
.
- name: Publish distribution 📦 to Test PyPI
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.PYPI_API_TOKEN }}
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ exclude: tests/fixtures

repos:
- repo: https://github.com/asottile/pyupgrade
rev: v2.32.0
rev: v2.32.1
hooks:
- id: pyupgrade
args: [--py37-plus]
- repo: https://github.com/asottile/reorder_python_imports
rev: v3.0.1
rev: v3.1.0
hooks:
- id: reorder-python-imports
- repo: https://github.com/ambv/black
Expand Down Expand Up @@ -37,7 +37,7 @@ repos:
- id: docformatter
args: ["--in-place", "--pre-summary-newline"]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.942
rev: v0.950
hooks:
- id: mypy
additional_dependencies: [tokenize-rt, types-requests, types-Jinja2, types-click, types-docutils]
Expand Down
5 changes: 5 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
22.5 (2022-05-08)
-----------------
- Added support for xml date/time nanoseconds `#679 <https://github.com/tefra/xsdata/pull/679>`_


22.4 (2022-04-10)
-----------------
- Added config option to unnest classes
Expand Down
7 changes: 2 additions & 5 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,6 @@ Features
- Customize behaviour through config


Changelog: 22.4 (2022-04-10)
Changelog: 22.5 (2022-05-08)
----------------------------
- Added config option to unnest classes
- Added new class meta option global_type, to hide classes from discovery
- Removed min/max length restrictions for enum type fields
- Allow builtin xml types to be fully extended `#672 <https://github.com/tefra/xsdata/pull/672>`_
- Added support for xml date/time nanoseconds `#679 <https://github.com/tefra/xsdata/pull/679>`_
31 changes: 0 additions & 31 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -17,34 +17,3 @@ extras = docs,cli,lxml
changedir = docs
commands =
sphinx-build -b html . _build

[testenv:build]
basepython = python3.9
skip_install = true
deps =
wheel
setuptools
twine
whitelist_externals = rm
commands =
rm -fr dist
python setup.py bdist_wheel sdist
twine check dist/*

[testenv:release]
basepython = python3.9
skip_install = true
deps = {[testenv:build]deps}
commands_pre =
{[testenv:build]commands}
commands =
twine upload --skip-existing dist/*

[testenv:testrelease]
basepython = python3
skip_install = true
deps = {[testenv:build]deps}
commands_pre =
{[testenv:build]commands}
commands =
twine upload --repository-url https://test.pypi.org/legacy/ --skip-existing dist/*
2 changes: 1 addition & 1 deletion xsdata/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "22.4"
__version__ = "22.5"
2 changes: 1 addition & 1 deletion xsdata/utils/hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def load_entry_points(name: str):
if hasattr(entry_points, "select"):
plugins = entry_points.select(group=name) # type: ignore
else:
plugins = entry_points.get(name, [])
plugins = entry_points.get(name, []) # type: ignore

for plugin in plugins:
plugin.load()

0 comments on commit a98b926

Please sign in to comment.