Skip to content

Commit

Permalink
Changed project to pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
kfazi committed Jul 4, 2024
1 parent e0e1661 commit 04e7900
Show file tree
Hide file tree
Showing 5 changed files with 84 additions and 51 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Upload Python Package

on:
release:
types: [published]

permissions:
contents: read

jobs:
deploy:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install hatch==1.12.0
- name: Test
run: hatch run dev:pytest
- name: Static analysis
run: |
hatch run dev:flake8 --config=.flake8 reed_solomon_ccsds/ tests/
hatch run dev:mypy reed_solomon_ccsds/ tests/
- name: Build package
run: hatch build
- name: Publish package
uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ __pycache__/
*.py[cod]
venv/
build/
dist/
.eggs/
*.egg-info/
*.egg
15 changes: 0 additions & 15 deletions .travis.yml

This file was deleted.

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

[project]
name = "reed-solomon-ccsds"
dynamic = ["version"]
description = 'Reed Solomon CCSDS (255, 223)'
readme = "README.md"
requires-python = ">=3.8"
license = "LGPL-2.1"
keywords = []
authors = [
{ name = "KPLabs Team" }
]
classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
dependencies = [
"numpy>=1.17.4"
]

[project.urls]
Documentation = "https://github.com/kplabs-pl/reed-solomon-ccsds#readme"
Issues = "https://github.com/kplabs-pl/reed-solomon-ccsds/issues"
Source = "https://github.com/kplabs-pl/reed-solomon-ccsds"

[tool.hatch.version]
source = "vcs"

[tool.hatch.envs.dev]
dependencies = [
"pytest==8.2.2",
"flake8==7.1.0",
"mypy==1.10.1",
]
36 changes: 0 additions & 36 deletions setup.py

This file was deleted.

0 comments on commit 04e7900

Please sign in to comment.