Skip to content

Commit

Permalink
Merge pull request #3 from malinkinsa/pypi_and_workflow
Browse files Browse the repository at this point in the history
Pypi and workflow
  • Loading branch information
malinkinsa authored Apr 11, 2022
2 parents ce03c65 + 2cabaf6 commit e610d4e
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 3 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Upload Python Package

on:
release:
types: [published]

permissions:
contents: read

jobs:
deploy:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.9'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# AsyncGELF
[![Language grade: Python](https://img.shields.io/lgtm/grade/python/g/malinkinsa/asyncgelf.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/malinkinsa/asyncgelf/context:python)
![PyPI - Downloads](https://img.shields.io/pypi/dm/asyncgelf)
![PyPI](https://img.shields.io/pypi/v/asyncgelf)

Async python logging handlers that send messages in the Graylog Extended Log Format (GELF).

Expand Down
17 changes: 14 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,27 @@

setup(
name='asyncgelf',
version='0.1.1',
version='0.1.2',
author='Sergey Malinkin',
author_email='[email protected]',
url='https://github.com/malinkinsa/asyncgelf',
download_url='https://github.com/malinkinsa/asyncgelf/archive/refs/tags/0.1.1.tar.gz',
download_url='https://github.com/malinkinsa/asyncgelf/archive/refs/tags/0.1.2.tar.gz',
description='Async python logging handlers that send messages in the Graylog Extended Log Format (GELF).',
long_description=open('README.md').read(),
long_description_content_type='text/markdown',
license='MIT',
keywords='gelf logging graylog graylog2 tcp',
keywords='gelf logging graylog graylog2 tcp http',
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: System :: Logging',
],
packages=find_packages(),
install_requires=[
'asyncio',
Expand Down

0 comments on commit e610d4e

Please sign in to comment.