Skip to content

Commit

Permalink
Added automaticly tagging
Browse files Browse the repository at this point in the history
  • Loading branch information
pescheck-bram committed Aug 21, 2024
1 parent cf20b58 commit e98d4a9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/python-ci-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: Python Package CI

on:
push:
branches:
- main
tags:
- '*'
release:
types: [published]

Expand Down Expand Up @@ -62,7 +66,7 @@ jobs:
deploy:
needs: test
runs-on: ubuntu-latest
if: github.event_name == 'release' && github.event.action == 'published'
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
environment: release
steps:
- uses: actions/checkout@v4
Expand Down
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ polib==1.2.0
openai==v1.42.0
python-dotenv==1.0.0
pytest==8.2.2
tenacity==9.0.0
tenacity==9.0.0
setuptools-scm==8.1.0
6 changes: 2 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,14 @@

from setuptools import find_packages, setup

from python_gpt_po.version import __version__

# Read the contents of README file
with open('README.md', encoding='utf-8') as f:
long_description = f.read()

setup(
name='gpt-po-translator',
version=__version__,
use_scm_version=True, # Automatically fetch version from git tags
setup_requires=['setuptools-scm'], # Ensure setuptools-scm is used during setup
author='Bram Mittendorff',
author_email='[email protected]',
description='A CLI tool for translating .po files using GPT models.',
Expand All @@ -35,7 +34,6 @@
],
},
classifiers=[
# Choose your license as you wish
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.8',
Expand Down

0 comments on commit e98d4a9

Please sign in to comment.