Skip to content

Commit 81b1718

Browse files
committed
update pre-commits and setup
1 parent f8209d4 commit 81b1718

File tree

4 files changed

+50
-0
lines changed

4 files changed

+50
-0
lines changed
+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: "Build and Release Python Package in whl format"
2+
run-name: "Package build version: ${{ github.event }}"
3+
on:
4+
push:
5+
branches: [develop, main]
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v3
11+
- name: Set up Python
12+
uses: actions/setup-python@v3
13+
with:
14+
python-version: '3.x'
15+
- name: Install pre-commit
16+
run: |
17+
pip install pre-commit
18+
- name: Install requirements
19+
run: |
20+
pip install -r requirements.txt
21+
- uses: pre-commit/[email protected]
22+
- name: Install dependencies
23+
run: |
24+
python -m pip install --upgrade pip
25+
pip install setuptools wheel twine
26+
- name: Build wheel
27+
run: VERSION=${{ github.event.inputs.release-version }} python setup.py bdist_wheel
28+
- name: Upload wheel
29+
uses: actions/upload-artifact@v2
30+
with:
31+
name: dataeng_utils-${{ github.event.inputs.release-version }}-py3-none-any.whl
32+
path: dist/*.whl

setup.py

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
"""Setup file for the project."""
2+
3+
from setuptools import find_packages, setup
4+
5+
packages_to_install = ["setuptools", "wheel", "boto3"]
6+
7+
setup(
8+
name="build_pre_commit_hooks",
9+
version="0.1",
10+
url="",
11+
license="",
12+
author="Anthony Pernia",
13+
author_email="[email protected]",
14+
description="",
15+
packages=find_packages(exclude=["tests", "tests.*"]),
16+
include_package_data=True,
17+
install_requires=packages_to_install,
18+
)

0 commit comments

Comments
 (0)