Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure publishing for a new release #63

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
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
12 changes: 7 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,11 @@ jobs:
jobs: ${{ toJSON(needs) }}

release:
environment:
release
permissions:
contents: write
id-token: write
needs:
- check
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
Expand All @@ -114,8 +117,7 @@ jobs:
python-version: 3.x
- name: Install tox
run: python -m pip install tox
- name: Run
run: tox -e release
env:
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Build
run: tox -e build
- name: Publish
uses: pypa/gh-action-pypi-publish@release/v1
2 changes: 1 addition & 1 deletion docs/AUTHORS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ Development Lead
Contributors
------------

None yet. Why not be the first?
* Jason R. Coombs <jaraco@jaraco.com>
2 changes: 1 addition & 1 deletion docs/FAQ.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ need a special ``records`` constructor. Any iterable of dicts will do just fine.
PyPy
~~~~

``meza`` supports PyPy (targeting Python 2.7 & 3.4+) out of the box.
``meza`` supports PyPy out of the box.

Convenience
~~~~~~~~~~~
Expand Down
8 changes: 1 addition & 7 deletions docs/INSTALLATION.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,12 @@ Installation

(You are using a `virtualenv`_, right?)

At the command line, install meza using either ``pip`` (recommended)
At the command line, install meza using ``pip``

.. code-block:: bash

pip install meza

or ``easy_install``

.. code-block:: bash

easy_install meza

Detailed installation instructions
----------------------------------

Expand Down
1 change: 0 additions & 1 deletion docs/TODO.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
TODO
====

- Upgrade to Python 3
- Improve buffered handler support
- Add async option

Expand Down
2 changes: 1 addition & 1 deletion meza/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from datetime import datetime as dt
from os import path as p

__version__ = "0.46.0"
__version__ = "0.47.0"
__title__ = "meza"
__package_name__ = "meza"
__author__ = "Reuben Cummings"
Expand Down
4 changes: 4 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
[metadata]
maintainer = Jason R. Coombs
maintainer_email = jaraco@jaraco.com

[options]
python_requires = >=3.8

Expand Down
14 changes: 14 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,17 @@ commands =
python -m docutils docs/FAQ.rst
python -m docutils docs/INSTALLATION.rst
python -m docutils docs/TODO.rst


[testenv:build]
description = build the package and create release in GitHub
skip_install = True
deps =
build
jaraco.develop>=7.1
pass_env =
GITHUB_TOKEN
commands =
python -c "import shutil; shutil.rmtree('dist', ignore_errors=True)"
python -m build
python -m jaraco.develop.create-github-release
Loading