Skip to content
This repository has been archived by the owner on Mar 5, 2023. It is now read-only.

Commit

Permalink
fix packaging setup
Browse files Browse the repository at this point in the history
  • Loading branch information
sp1thas committed Nov 25, 2020
1 parent 9c21b8c commit e9ec58e
Show file tree
Hide file tree
Showing 7 changed files with 61 additions and 9 deletions.
File renamed without changes.
32 changes: 32 additions & 0 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@

# This workflows will upload a Python Package using Twine when a release is created
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries

name: Upload Python Package

on:
release:
types: [created]

jobs:
deploy:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Foreground, background color numbering and labels are adjustable.

## Install
```bash
pip install git+https://github.com/sp1thas/pyclimenu.git
pip install pyclimenu
```

## Demo
Expand All @@ -19,11 +19,12 @@ def a():
''')
return 1

mn = Menu()
mn.add_item(label="The easy way", callback=a, args=())
mn.add_item(label="to create", callback=a, kwargs={})
mn.add_item(label="command line menus", callback=a)
mn.set_colors(num_fg="cyan", num_bld=True, label_fg="blue", label_bld=True)
mn = Menu(items=[
{"label": "The easy way", "callback": a},
{"label": "to create", "callback": a},
{"label": "command line menus", "callback": a}
])
mn.set_colors(num_fg="cyan", num_bld=True, label_fg="blue", label_bl=True)

results = mn.run(header="pyclimenu")
print(results)
Expand Down
Binary file modified imgs/display.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion pyclimenu/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
from pyclimenu.menu import Menu

__version__ = "0.1.15"
__version__ = "0.1.18"
4 changes: 4 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
[metadata]
description-file = README.md

[flake8]
ignore = E501,E265,F403
max-line-length = 100
19 changes: 17 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,12 @@
raise ValueError("Module version not found.")
version = version[0]

with open('README.md') as f:
long_description = f.read()

setup(
name="pyclimenu",
packages=find_packages(),
packages=['pyclimenu'],
version=version,
description="The easy way to create command line menus",
author="Panagiotis Simakis",
Expand All @@ -19,6 +22,18 @@
download_url="https://github.com/sp1thas/pyclimenu/archive/master.zip",
keywords=["menu"],
include_package_data=True,
classifiers=[],
zip_safe=False,
long_description=long_description,
long_description_content_type='text/markdown',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Topic :: Software Development :: Libraries :: Python Modules',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
],
python_requires=">=3.6",
)

0 comments on commit e9ec58e

Please sign in to comment.