Skip to content

Commit 83d3945

Browse files
Merge pull request #21 from google/packaging
Package for PyPI
2 parents 06cafe5 + 1826f23 commit 83d3945

File tree

159 files changed

+199
-75
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

159 files changed

+199
-75
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Publish to PyPI
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
build-n-publish:
9+
name: Build and publish Python 🐍 distributions 📦 to PyPI
10+
runs-on: ubuntu-latest
11+
environment:
12+
name: pypi
13+
url: https://pypi.org/p/dfiq
14+
permissions:
15+
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
16+
steps:
17+
- uses: actions/checkout@master
18+
- name: Set up Python 3.10
19+
uses: actions/setup-python@v1
20+
with:
21+
python-version: '3.10'
22+
- name: Install pypa/build
23+
run: >-
24+
python -m
25+
pip install
26+
build
27+
--user
28+
- name: Build a binary wheel and a source tarball
29+
run: >-
30+
python -m
31+
build
32+
--sdist
33+
--wheel
34+
--outdir dist/
35+
.
36+
- name: Publish distribution 📦 to PyPI
37+
if: startsWith(github.ref, 'refs/tags/')
38+
uses: pypa/gh-action-pypi-publish@release/v1

README.md

Lines changed: 1 addition & 1 deletion

dfiq/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
from .dfiq import DFIQ, Scenario, Facet, Question, Approach
2+
3+
__all__ = ["DFIQ", "Scenario", "Facet", "Question", "Approach"]
4+
__version__ = "1.0.1"
5+
__author__ = "Ryan Benson"
6+
__email__ = "ryan@dfir.blog"

0 commit comments

Comments
 (0)