Skip to content

Commit

Permalink
GitHub actions build
Browse files Browse the repository at this point in the history
  • Loading branch information
robd003 committed Oct 22, 2021
1 parent 0a193e7 commit 6e7a531
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 10 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Upload Python Package

on:
release:
types: [created]

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and publish
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
python setup.py sdist
twine upload dist/*
10 changes: 2 additions & 8 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
uap-python
==========

A python implementation of the UA Parser (https://github.com/ua-parser,
An **up to date** python implementation of the UA Parser (https://github.com/ua-parser,
formerly https://github.com/tobie/ua-parser)

Build Status
------------

.. image:: https://travis-ci.org/ua-parser/uap-python.svg
:target: https://travis-ci.org/ua-parser/uap-python

Installing
----------

Expand All @@ -20,7 +14,7 @@ Just run:

.. code-block:: sh
$ pip install ua-parser
$ pip install ua-parser-up2date
Manual install
~~~~~~~~~~~~~~
Expand Down
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[build-system]
# These are the assumed default build requirements from pip:
# https://pip.pypa.io/en/stable/reference/pip/#pep-517-and-518-support
requires = ["setuptools>=40.8.0", "wheel"]
build-backend = "setuptools.build_meta"
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ class sdist(_sdist):

setup(
name="ua-parser-up2date",
version="0.14.0",
version="0.14.1",
description="Python port of Browserscope's user agent parser that is kept up to date!",
author="PBS",
author_email="[email protected]",
Expand All @@ -196,6 +196,7 @@ class sdist(_sdist):
include_package_data=True,
setup_requires=["pyyaml"],
install_requires=[],
python_requires='>=3.8',
cmdclass=cmdclass,
classifiers=[
"Development Status :: 5 - Production/Stable",
Expand All @@ -213,4 +214,6 @@ class sdist(_sdist):
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
],
long_description=open('README.rst').read(),
long_description_content_type='text/x-rst'
)
2 changes: 1 addition & 1 deletion ua_parser/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
VERSION = (0, 10, 0)
VERSION = (0, 14, 0)

0 comments on commit 6e7a531

Please sign in to comment.