Skip to content

Commit

Permalink
Add release.yml for publishing Ansible Content Parser to PyPI (#13)
Browse files Browse the repository at this point in the history
* Add release.yml for testing with TestPyPI.org

* Update authors and maintainers sections
  • Loading branch information
TamiTakamiya authored Sep 21, 2023
1 parent 2f3afd7 commit d68581e
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 3 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
name: release

"on":
release:
types: [published]
workflow_dispatch:
jobs:
pypi-publish:
name: Upload release to PyPI
runs-on: ubuntu-latest
environment:
name: release
url: https://test.pypi.org/project/ansible-content-parser/
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: "3.10"

- name: Install tox
run: python3 -m pip install --user "tox==4.9.0"

- name: Check out src from Git
uses: actions/checkout@v4
with:
fetch-depth: 0 # needed by setuptools-scm

- name: Build dists
run: python -m tox

- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
5 changes: 2 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ requires = ["setuptools >= 45", "setuptools_scm[toml]>=6.2"]

[project]
authors = [
{"email" = "[email protected]", "name" = "Tami Takamiya"},
{"email" = "[email protected]", "name" = "Yuval Lahav"}
{"email" = "[email protected]", "name" = "Tami Takamiya"}
]
classifiers = [
'Development Status :: 2 - Pre-Alpha',
Expand All @@ -25,7 +24,7 @@ description = "The ansible content parser"
dynamic = ["dependencies", "optional-dependencies", "version"]
keywords = ["ansible"]
license = {text = "Apache"}
maintainers = [{"email" = "info@ansible.com", "name" = "Ansible by Red Hat"}]
maintainers = [{"email" = "ttakamiy@redhat.com", "name" = "Tami Takamiya"}]
name = "ansible-content-parser"
readme = "README.md"
requires-python = ">=3.10"
Expand Down

1 comment on commit d68581e

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ClamAV Virus Definition DB Files:
----
total 227120
-rw-r--r--  1 root root 170479789 Sep 21 12:00 main.cvd
-rw-r--r--  1 root root        69 Sep 21 12:00 freshclam.dat
-rw-r--r--  1 root root  61777306 Sep 21 12:00 daily.cvd
-rw-r--r--  1 root root    291965 Sep 21 12:00 bytecode.cvd
drwxr-xr-x 14 root root      4096 Sep 21 16:47 ..
drwxr-xr-x  2 root root      4096 Sep 21 16:47 .
----
File: /var/lib/clamav/bytecode.cvd
Build time: 22 Feb 2023 16:33 -0500
Version: 334
Signatures: 91
Functionality level: 90
Builder: anvilleg
MD5: 0464067a252b1e937012ad34e811065f
Digital signature: urVBCbhJcz8v6i1E6HedDwa8TxBHnJknqg7SE+6JWBtovATpw8MWwS+kvGAi//x5u0LIFwhPvUsgEBBeFiZE0QTTWazOhJ/LfKJK+nODqha6cTvaQdKl2rSbEOv6grv7UONV8eKi383Wv07wfSNYp+lPNpt0QmejKb1TMHAYTA
Verification OK.
----
File: /var/lib/clamav/daily.cvd
Build time: 21 Sep 2023 03:39 -0400
Version: 27038
Signatures: 2041081
Functionality level: 90
Builder: raynman
MD5: e54a6e7c91339a84e510e73f4bf13151
Digital signature: jtKdUKs8I1ojMiL1n/G0MamXTYGkxljHUJvKLNa9IO0e4Vb5Vz5xX/vla3EizzM5OGCE2cuonPVVHbai+jfMdByLrKurmn1dKpMtAtqx+3IhOd+lkRAzmYN67+/LG1FyWaTZrgSfe0v5QpTYWkVVyXfAUoIGkrtc857fkhzH3eh
Verification OK.
----
File: /var/lib/clamav/main.cvd
Build time: 16 Sep 2021 08:32 -0400
Version: 62
Signatures: 6647427
Functionality level: 90
Builder: sigmgr
MD5: 137eccce31aacb21b5a98bb8c21cefd6
Digital signature: twaJBls8V5q64R7QY10AatEtPNuPWoVoxTaNO1jpBg7s5jIMMXpitgG1000YLp6rb0TWkEKjRqxneGTxuxWaWm7XBjsgwX2BRWh/y4fhs7uyImdKRLzQ5y8e2EkSChegF/i8clqfn+1qetq9j4gbktJ3JZpOXPoHlyr2Dv9S/Bg
Verification OK.
----
Scanning Results:
ClamAV 1.0.2/27038/Thu Sep 21 07:39:42 2023

----------- SCAN SUMMARY -----------
Known viruses: 8672967
Engine version: 1.0.2
Scanned directories: 7149
Scanned files: 53764
Infected files: 0
Data scanned: 2286.05 MB
Data read: 1350.29 MB (ratio 1.69:1)
Time: 536.444 sec (8 m 56 s)
Start Date: 2023:09:21 16:47:48
End Date:   2023:09:21 16:56:44

Please sign in to comment.