Skip to content

Commit e1d8ca1

Browse files
pavanjavapavanmantha
and
pavanmantha
authored
-created the required configs for pypi (#27)
Co-authored-by: pavanmantha <[email protected]>
1 parent 9f8f31d commit e1d8ca1

File tree

4 files changed

+31
-6
lines changed

4 files changed

+31
-6
lines changed

.github/workflows/python-app.yml

+21-1
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,24 @@ jobs:
3636
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
3737
- name: Test with pytest
3838
run: |
39-
pytest
39+
pytest
40+
41+
deploy:
42+
runs-on: ubuntu-latest
43+
steps:
44+
- uses: actions/checkout@v2
45+
- name: Set up Python
46+
uses: actions/setup-python@v2
47+
with:
48+
python-version: '3.10'
49+
- name: Install dependencies
50+
run: |
51+
python -m pip install --upgrade pip
52+
pip install setuptools wheel twine
53+
- name: Build and publish
54+
env:
55+
TWINE_USERNAME: __token__
56+
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
57+
run: |
58+
python setup.py sdist bdist_wheel
59+
twine upload dist/*

MANIFEST.in

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
recursive-include bootstraprag/templates *

__init__.py

Whitespace-only changes.

setup.py

+9-5
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,12 @@
88
install_requires=[
99
'click',
1010
],
11-
entry_points='''
12-
[console_scripts]
13-
bootstraprag=bootstraprag.cli:cli
14-
''',
15-
)
11+
entry_points={
12+
'console_scripts': [
13+
'bootstraprag=bootstraprag.cli:cli',
14+
],
15+
},
16+
package_data={
17+
'bootstraprag': ['templates/*'],
18+
},
19+
)

0 commit comments

Comments
 (0)