diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 63e2090..4576268 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -1,4 +1,4 @@ -name: Publish Python 🐍 distributions 📦 to PyPI +name: Publish Python package 📦 to PyPI on: push: @@ -7,7 +7,7 @@ on: jobs: build-n-publish: - name: Build and publish Python 🐍 distributions 📦 to PyPI + name: Build and publish Python package 📦 to PyPI runs-on: ${{ fromJSON('["ubuntu-latest", "self-hosted"]')[github.repository == 'github/docs-internal'] }} steps: @@ -29,7 +29,7 @@ jobs: - name: Build a binary wheel run: >- python setup.py sdist bdist_wheel - - name: Publish distribution 📦 to PyPI + - name: Publish package 📦 to PyPI uses: pypa/gh-action-pypi-publish@master with: password: ${{ secrets.PYPI_API_TOKEN }} \ No newline at end of file diff --git a/pycasestyle/libs/__init__.py b/pycasestyle/libs/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/setup.py b/setup.py index 6c2e607..501745e 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,7 @@ #!/usr/bin/env python # coding=utf-8 -from setuptools import setup +from setuptools import setup, find_packages with open('README.rst', 'r', encoding='utf-8') as f: readme = f.read() @@ -17,8 +17,7 @@ author_email='pedrota.rodrigues@gmail.com', url='https://github.com/preduus/pycasestyle', py_modules=['pycasestyle'], - packages=['pycasestyle'], - package_dir={'pycasestyle': 'pycasestyle'}, + packages=find_packages(exclude=['contrib', 'docs', 'test', '']), license='Apache License 2.0', zip_safe=False, test_suite="tests",