diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 5216a63..8a2dbb6 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -36,4 +36,24 @@ jobs: flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics - name: Test with pytest run: | - pytest \ No newline at end of file + pytest + + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.10' + - 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 bdist_wheel + twine upload dist/* \ No newline at end of file diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..ba2aec4 --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1 @@ +recursive-include bootstraprag/templates * \ No newline at end of file diff --git a/__init__.py b/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/setup.py b/setup.py index c8f195e..de3cc8d 100644 --- a/setup.py +++ b/setup.py @@ -8,8 +8,12 @@ install_requires=[ 'click', ], - entry_points=''' - [console_scripts] - bootstraprag=bootstraprag.cli:cli - ''', -) + entry_points={ + 'console_scripts': [ + 'bootstraprag=bootstraprag.cli:cli', + ], + }, + package_data={ + 'bootstraprag': ['templates/*'], + }, +) \ No newline at end of file