Skip to content

Commit

Permalink
[UPDATE] changes to deployment workflow
Browse files Browse the repository at this point in the history
[UPDATE] changes to deployment workflow
  • Loading branch information
mjfii authored Feb 9, 2024
2 parents ce2479f + 3e7f969 commit 98c1ed8
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 13 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/version-deployment.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

name: CD

on:
Expand All @@ -25,15 +24,17 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install build
pip install setuptools
pip install wheel
pip install toml
pip install -r requirements.txt
- name: asdf
- name: Update Release Version
run: |
python -c """
import toml
import os
_ver = '$RELEASE_VERSION'
_ver = os.environ.get('RELEASE_VERSION', 'v0.0.0')
with open('pyproject.toml', 'r') as f:
config = toml.load(f)
Expand All @@ -42,7 +43,7 @@ jobs:
with open('pyproject.toml', 'w') as f:
toml.dump(config, f)
print(f"Project Version updated to {_ver} in pyproject.toml file.")
"""
- name: Build package
run: python -m build
- name: Publish package
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = 'pyhydrate'
version = '0.0.0'
description = 'A JFDI approach that hydrates a Python class to allow dot notation access to the data structures.'
readme = "readme.md"
authors = [
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
[![license](https://img.shields.io/github/license/mjfii/pyhydrate.svg)](https://github.com/mjfii/pyhydrate/blob/main/license)
[![pypi](https://img.shields.io/pypi/v/pyhydrate.svg)](https://pypi.python.org/pypi/pyhydrate)
[![ci](https://github.com/mjfii/pyhydrate/actions/workflows/prod-tests.yml/badge.svg)](https://github.com/mjfii/pyhydrate/actions/workflows/prod-tests.yml)

[![cd](https://github.com/mjfii/pyhydrate/actions/workflows/version-deployment.yml/badge.svg)](https://github.com/mjfii/pyhydrate/actions/workflows/version-deployment.yml)
[![downloads](https://static.pepy.tech/badge/pyhydrate/month)](https://pepy.tech/project/pyhydrate)
[![versions](https://img.shields.io/pypi/pyversions/pyhydrate.svg)](https://github.com/mjfii/pyhydrate)

Expand Down
7 changes: 0 additions & 7 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
setuptools
wheel
twine
pypirc
build
installer

# src dependencies
typing_extensions
pyyaml

0 comments on commit 98c1ed8

Please sign in to comment.