Skip to content

Commit

Permalink
Add pypi release workflow with github actions (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
keith authored Sep 14, 2022
1 parent d856ab7 commit 523ed56
Show file tree
Hide file tree
Showing 10 changed files with 43 additions and 60 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/actions.yml

This file was deleted.

21 changes: 21 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Upload xiblint to pypi

on:
release:
types: [published]

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
- name: Install pypa/build
run: python3 -m pip install build --user
- name: Build a binary wheel and a source tarball
run: python3 -m build --sdist --wheel --outdir dist/ .
- name: Push to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,6 @@ target/
# IPython Notebook
.ipynb_checkpoints

# pyenv
.python-version

# celery beat schedule file
celerybeat-schedule

Expand Down
1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.9.6
25 changes: 0 additions & 25 deletions .travis.yml

This file was deleted.

7 changes: 0 additions & 7 deletions Makefile

This file was deleted.

1 change: 0 additions & 1 deletion requirements.txt

This file was deleted.

18 changes: 18 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
[metadata]
name = xiblint
version = attr: xiblint.__version__
description = Checks .xib and .storyboard files for compliance with best practices
long_description = Checks .xib and .storyboard files for compliance with best practices
license = apache2
url = https://github.com/lyft/xiblint
author = Ilya Konstantinov
author_email = [email protected]

[options]
install_requires = defusedxml>=0.5.0
packages = find:

[options.entry_points]
console_scripts =
xiblint=xiblint.__main__:main

[flake8]
format = pylint
exclude = .svc,CVS,.bzr,.hg,.git,__pycache__,venv
Expand Down
19 changes: 2 additions & 17 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,2 @@
from setuptools import setup, find_packages
import xiblint

setup(
name='xiblint',
version=xiblint.__version__,
description='Checks .xib and .storyboard files for compliance with best practices',
license='apache2',
url='https://github.com/lyft/xiblint',
author='Ilya Konstantinov',
author_email='[email protected]',
install_requires=[
'defusedxml>=0.5.0',
],
packages=find_packages(),
entry_points={'console_scripts': ['xiblint=xiblint.__main__:main']},
)
from setuptools import setup
setup()
2 changes: 1 addition & 1 deletion xiblint/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.10.3'
__version__ = '0.10.4'

0 comments on commit 523ed56

Please sign in to comment.