Skip to content

Commit

Permalink
fixed package versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
preduus committed Feb 14, 2024
1 parent 445f747 commit a1608ba
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish Python 🐍 distributions 📦 to PyPI
name: Publish Python package 📦 to PyPI

on:
push:
Expand All @@ -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:
Expand All @@ -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 }}
Empty file added pycasestyle/libs/__init__.py
Empty file.
5 changes: 2 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
@@ -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()
Expand All @@ -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",
Expand Down

0 comments on commit a1608ba

Please sign in to comment.