-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
84 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ __pycache__/ | |
*.py[cod] | ||
venv/ | ||
build/ | ||
dist/ | ||
.eggs/ | ||
*.egg-info/ | ||
*.egg |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", | ||
] |