Skip to content

Commit

Permalink
modify ci pipeline to operate properly
Browse files Browse the repository at this point in the history
  • Loading branch information
aidan committed Feb 15, 2024
1 parent 8ed82e2 commit f1e816c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,18 @@ jobs:
- name: Test with unittest
run: |
python -m unittest
- name: Create dist
- name: Install pypa/setuptools
run: |
python setup.py sdist
python -m pip install wheel
- name: Extract tag name
id: tag
run: echo ::set-output name=TAG_NAME::$(echo $GITHUB_REF | cut -d / -f 3)
- name: Update version in setup.py
run: |
sed -i "s/{{VERSION_PLACEHOLDER}}/${{ steps.tag.outputs.TAG_NAME }}/g" setup.py
- name: Build a binary wheel
run: |
python setup.py sdist bdist_wheel
- name: Publish package to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
Expand Down
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
from setuptools import setup, find_packages

VERSION = '0.0.1'
DESCRIPTION = 'A Version of C#s AutoFixture but for python'
LONG_DESCRIPTION = 'Allows creating of fake test data that autogenerates both primitive and deep object graph types'

# Setting up
setup(
name="python-autofixture",
version=VERSION,
version="{{VERSION_PLACEHOLDER}}",
author="GanTheMan",
author_email="[email protected]",
description=DESCRIPTION,
Expand Down

0 comments on commit f1e816c

Please sign in to comment.