Skip to content

Commit 523ed56

Browse files
authored
Add pypi release workflow with github actions (#70)
1 parent d856ab7 commit 523ed56

File tree

10 files changed

+43
-60
lines changed

10 files changed

+43
-60
lines changed

.github/workflows/actions.yml

Lines changed: 0 additions & 6 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Upload xiblint to pypi
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
- name: Set up Python
13+
uses: actions/setup-python@v4
14+
- name: Install pypa/build
15+
run: python3 -m pip install build --user
16+
- name: Build a binary wheel and a source tarball
17+
run: python3 -m build --sdist --wheel --outdir dist/ .
18+
- name: Push to PyPI
19+
uses: pypa/gh-action-pypi-publish@release/v1
20+
with:
21+
password: ${{ secrets.PYPI_API_TOKEN }}

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,6 @@ target/
7272
# IPython Notebook
7373
.ipynb_checkpoints
7474

75-
# pyenv
76-
.python-version
77-
7875
# celery beat schedule file
7976
celerybeat-schedule
8077

.python-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.9.6

.travis.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

Makefile

Lines changed: 0 additions & 7 deletions
This file was deleted.

requirements.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

setup.cfg

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
[metadata]
2+
name = xiblint
3+
version = attr: xiblint.__version__
4+
description = Checks .xib and .storyboard files for compliance with best practices
5+
long_description = Checks .xib and .storyboard files for compliance with best practices
6+
license = apache2
7+
url = https://github.com/lyft/xiblint
8+
author = Ilya Konstantinov
9+
author_email = ikonstantinov@lyft.com
10+
11+
[options]
12+
install_requires = defusedxml>=0.5.0
13+
packages = find:
14+
15+
[options.entry_points]
16+
console_scripts =
17+
xiblint=xiblint.__main__:main
18+
119
[flake8]
220
format = pylint
321
exclude = .svc,CVS,.bzr,.hg,.git,__pycache__,venv

setup.py

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,2 @@
1-
from setuptools import setup, find_packages
2-
import xiblint
3-
4-
setup(
5-
name='xiblint',
6-
version=xiblint.__version__,
7-
description='Checks .xib and .storyboard files for compliance with best practices',
8-
license='apache2',
9-
url='https://github.com/lyft/xiblint',
10-
author='Ilya Konstantinov',
11-
author_email='ikonstantinov@lyft.com',
12-
install_requires=[
13-
'defusedxml>=0.5.0',
14-
],
15-
packages=find_packages(),
16-
entry_points={'console_scripts': ['xiblint=xiblint.__main__:main']},
17-
)
1+
from setuptools import setup
2+
setup()

xiblint/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '0.10.3'
1+
__version__ = '0.10.4'

0 commit comments

Comments
 (0)