Skip to content

Commit 2140167

Browse files
Released via GitHub Actions (#99)
1 parent 7523643 commit 2140167

File tree

4 files changed

+39
-6
lines changed

4 files changed

+39
-6
lines changed

.github/workflows/release.yml

+30-4
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ jobs:
1212
fail-fast: false
1313
matrix:
1414
os:
15-
- ubuntu-20.04
16-
- macos-12
15+
- ubuntu-24.04
16+
- macos-latest
1717
- windows-latest
1818
steps:
1919
- uses: actions/checkout@v4
@@ -24,10 +24,36 @@ jobs:
2424
- name: Install dependencies
2525
run: |
2626
python -m pip install --upgrade pip
27-
pip install setuptools wheel
27+
pip install setuptools wheel build
2828
- name: build
29+
run: |
30+
python setup.py build
31+
- name: package
2932
run: |
3033
python -m build
34+
publish:
35+
needs: build_and_test
36+
runs-on: ubuntu-latest
37+
environment:
38+
name: pypi
39+
url: https://pypi.org/p/osquery
40+
permissions:
41+
id-token: write
42+
steps:
43+
- uses: actions/checkout@v4
44+
- name: Set up Python
45+
uses: actions/setup-python@v4
46+
with:
47+
python-version: "3.x"
48+
- name: Install dependencies
49+
run: |
50+
python -m pip install --upgrade pip
51+
pip install setuptools wheel build
52+
- name: build
53+
run: |
54+
python setup.py build
3155
- name: package
3256
run: |
33-
python setup.py sdist bdist_wheel
57+
python -m build
58+
- name: Publish package distributions to PyPI
59+
uses: pypa/gh-action-pypi-publish@release/v1

README.md

+7
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,13 @@ python setup.py install
150150

151151
See [CONTRIBUTING.md](https://github.com/osquery/osquery-python/blob/master/CONTRIBUTING.md) and the [osquery wiki](https://osquery.readthedocs.org) for development information.
152152

153+
### How To Release
154+
155+
1. Pick a version number
156+
2. Update `osquery/__init__.py` to match
157+
3. Use the GitHub release
158+
4. Make sure the GitHub Action ran
159+
153160
### Vulnerabilities
154161

155162
Facebook has a [bug bounty](https://www.facebook.com/whitehat/) program that includes osquery. If you find a security vulnerability in osquery, please submit it via the process outlined on that page and do not file a public issue. For more information on finding vulnerabilities in osquery, see a recent blog post about [bug-hunting osquery](https://www.facebook.com/notes/facebook-bug-bounty/bug-hunting-osquery/954850014529225).

osquery/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"""
55

66
__title__ = "osquery"
7-
__version__ = "3.0.7"
7+
__version__ = "3.1.1"
88
__author__ = "osquery authors"
99
__license__ = "BSD"
1010
__copyright__ = "Copyright 2015-present, The osquery authors"

setup.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[metadata]
2-
description-file = README.rst
2+
description_file = README.rst
33

44
[bdist_wheel]
55
universal=1

0 commit comments

Comments
 (0)