Skip to content

Commit

Permalink
first
Browse files Browse the repository at this point in the history
  • Loading branch information
JungleCatSW committed Nov 16, 2023
0 parents commit 487864b
Show file tree
Hide file tree
Showing 6 changed files with 76 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/workflow-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Publish package to TestPyPI

on: push

jobs:
build:
name: Build distribution
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Install pypa/build
run: >-
python3 -m
pip install
build
--user
- name: Build a binary wheel and a source tarball
run: python3 -m build
- name: Store the distribution packages
uses: actions/upload-artifact@v3
with:
name: python-package-distributions
path: dist/

publish-to-testpypi:
name: Publish to TestPyPI
needs:
- build
runs-on: ubuntu-latest

environment:
name: testpypi
url: https://test.pypi.org/p/cudo-compute

permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing

steps:
- name: Download all the dists
uses: actions/download-artifact@v3
with:
name: python-package-distributions
path: dist/
- name: Publish distribution 📦 to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
Empty file added README.md
Empty file.
22 changes: 22 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "cudo-compute-python-client"
version = "0.0.1"
authors = [
{ name="Cudo Ventures", email="[email protected]" },
]
description = "A client for cudocompute.com"
readme = "README.md"
requires-python = ">=3.8"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]

[project.urls]
"Homepage" = "https://www.cudocompute.com"
"Bug Tracker" = "https://github.com/CudoVentures/cudo-compute-python-client/issues"
Empty file added src/__init__.py
Empty file.
Empty file added src/cudo-compute/__init__.py
Empty file.
2 changes: 2 additions & 0 deletions src/cudo-compute/example.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
def add_one(number):
return number + 1

0 comments on commit 487864b

Please sign in to comment.