Skip to content

Commit

Permalink
Merge branch 'main' of github.com:efabless/ipm
Browse files Browse the repository at this point in the history
  • Loading branch information
NouranAbdelaziz committed Jun 24, 2024
2 parents 9001f2d + 3431a3e commit 5460521
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 8 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Publish Python Package to PyPI

on:
push:
paths-ignore:
- 'versions.py'
branches:
- main

permissions:
id-token: write
contents: read

jobs:
publish:
runs-on: ubuntu-latest

steps:
- name: Checkout code
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 package
run: |
python setup.py sdist bdist_wheel
- name: Publish package to PyPI
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: |
python -m twine upload --repository pypi dist/*
9 changes: 2 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,9 @@ Generate your public ssh key on your machine, then [Follow this link](https://gi

1. Clone the IPM GH repository
```bash
git clone https://github.com/efabless/ipm.git
pip install ipmgr
```
2. Navigate to the cloned directory and install using pip
```bash
cd ipm
pip install .
```
3. To verify it is working run:
2. To verify it is working run:
```bash
ipm --version
```
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
)

setup(
name="ipm",
name="ipmgr",
packages=find_packages(),
version=version,
description="Open-source IPs Package Manager.",
Expand Down

0 comments on commit 5460521

Please sign in to comment.