Skip to content

Commit

Permalink
(app): first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
happer64bit committed Aug 1, 2024
1 parent 8085714 commit b6f89be
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 2 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Publish to PyPI

on:
push:
branches:
- main

jobs:
pypi-publish:
name: Upload release to PyPI
runs-on: ubuntu-latest
environment:
name: Publish package distributions
url: https://pypi.org/p/<your-pypi-project-name>
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.8' # or any version you need

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build twine
- name: Build distribution
run: |
python -m build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from setuptools import setup, find_packages

setup(
name='Hyperscript',
name='Hyperscript Cli',
version='1.0',
description='Powerful HTTP Request Tester',
long_description=open('README.md').read(),
Expand Down Expand Up @@ -30,7 +30,7 @@
python_requires='>=3.8',
entry_points={
'console_scripts': [
'hyperscript=hyperscript.__main__:main',
'hyperscript=hyperscript_cli.__main__:main',
],
},
include_package_data=True,
Expand Down

0 comments on commit b6f89be

Please sign in to comment.