Skip to content

Commit

Permalink
Merge pull request #3 from nerohmot/main
Browse files Browse the repository at this point in the history
Update python-publish.yml
  • Loading branch information
nerohmot authored Jan 9, 2025
2 parents 0881261 + 2b3c24e commit 9a81389
Show file tree
Hide file tree
Showing 5 changed files with 120 additions and 68 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/CD.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: CD

on:
release:
types: [published]

jobs:
build_and_deploy:

runs-on: ubuntu-latest

steps:
- name: checkout
uses: actions/checkout@v4

- name: tag to version
shell: bash -l {0}
run: echo "__version__='${GITHUB_REF#refs/*/}'" >> semi_ate_installer/__init__.py

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
# - name: directory structure
# shell: bash -l {0}
# run: |
# pwd
# tree
# cat semi_ate_installer/__init__.py

- name: Build package
run: python -m build

# - name: Publish package
# uses: pypa/gh-action-pypi-publish
# with:
# user: __token__
# password: ${{ secrets.PYPI_TOKEN }}
35 changes: 35 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: CI

on:
push:
workflow_dispatch:
pull_request:
branches: [main]


jobs:
build:

runs-on: ubuntu-latest

steps:
- name: checkout
uses: actions/checkout@v4

- name: tag to version
shell: bash -l {0}
run: echo "__version__='0.0.0'" >> semi_ate_installer/__init__.py

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build

37 changes: 0 additions & 37 deletions .github/workflows/python-publish.yml

This file was deleted.

41 changes: 41 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "semi-ate-installer"
dynamic = ["version"]
description = "Semi ATE Installer package for ATE Projects"
readme = "README.md"
license = "GPL-2.0-only"
authors = [
{ name = "The Semi-ATE Project Contributors", email = "ate.organization@gmail.com" },
]
keywords = [
"ATE",
"Automatic",
"Equipment",
"Plugin",
"Semiconductor",
"Spyder",
"Test",
]
classifiers = [
"License :: OSI Approved :: GNU General Public License v2 (GPLv2)",
]
dependencies = [
"packaging",
"pyfiglet>=0.8",
"questionary==1.10.0",
]

[project.scripts]
ate-installer = "semi_ate_installer.cli:main"

[tool.hatch.version]
path = "semi_ate_installer/__init__.py"

[tool.hatch.build.targets.sdist]
include = [
"/semi_ate_installer",
]
31 changes: 0 additions & 31 deletions setup.py

This file was deleted.

0 comments on commit 9a81389

Please sign in to comment.