Skip to content

Commit 33c7e35

Browse files
committed
pypi deploy
1 parent 28c2008 commit 33c7e35

2 files changed

Lines changed: 46 additions & 0 deletions

File tree

.github/workflows/pypi.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Publish Python Package to PyPI
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- name: Set up Python
14+
uses: actions/setup-python@v2
15+
with:
16+
python-version: '3.x'
17+
- name: Install dependencies
18+
run: |
19+
python -m pip install --upgrade pip
20+
python -m pip install setuptools wheel twine
21+
- name: Build and publish
22+
env:
23+
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
24+
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
25+
run: |
26+
python setup.py sdist bdist_wheel
27+
twine upload dist/*

setup.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
from setuptools import setup, find_packages
2+
3+
setup(
4+
name="PyDocSmith",
5+
version="0.1",
6+
description="It parses and composes docstrings in Google, Numpydoc, ReST and Epydoc.",
7+
long_description=open("README.md").read(),
8+
long_description_content_type="text/markdown",
9+
author="Suman Saurabh",
10+
author_email="ss.sumansaurabh92@gmail.com",
11+
url="https://github.com/SingularityX-ai/PyDocSmith",
12+
packages=find_packages(),
13+
classifiers=[
14+
"Programming Language :: Python :: 3",
15+
"License :: OSI Approved :: MIT License",
16+
"Operating System :: OS Independent",
17+
],
18+
python_requires='>=3.6',
19+
)

0 commit comments

Comments
 (0)