-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Start the package management * Create LICENSE * Add the license * Change version to rc * typo * Add entry point * Refactor project repositories and remove travis * RC2 and change path to main in python init * Troubleshooting entrypoint * Debug pyproject, change test directory name + doc * Update main.py Update help display to new usage * Update README.md install automatically dependencies with "pip install ." * Set v1.0 --------- Co-authored-by: Diego <[email protected]>
- Loading branch information
1 parent
d2ad9c9
commit 2927e94
Showing
18 changed files
with
906 additions
and
156 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,33 @@ | ||
# This workflow will upload a Python Package using Twine when a release is created | ||
|
||
name: Build and Upload Python Package | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
deploy: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- 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 build | ||
- name: Build package | ||
run: python -m build | ||
- name: Publish package | ||
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 | ||
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 |
---|---|---|
|
@@ -7,4 +7,5 @@ TESTCSV/ | |
TESTXLSX.xlsx | ||
export/ | ||
export_csv/ | ||
export_html/ | ||
export_html/ | ||
/dist |
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
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,40 @@ | ||
[project] | ||
# https://pypi.org/project/polyspace-report2excel/ | ||
name = "polyspace-report2excel" | ||
version = "1.0" | ||
description = "read a polyspace report and export misra or run-time results" | ||
readme = "README.md" | ||
requires-python = ">=3" | ||
license = {file = "LICENSE"} | ||
keywords = ["polyspace", "report", "excel", "misra"] | ||
authors = [ | ||
{name = "CAT Lab", email = "[email protected]" } | ||
] | ||
maintainers = [ | ||
{name = "CAT Lab", email = "[email protected]" } | ||
] | ||
classifiers = [ | ||
"Development Status :: 5 - Production/Stable", | ||
"Intended Audience :: Developers", | ||
"Topic :: Software Development :: Quality Assurance", | ||
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)", | ||
"Programming Language :: Python :: 3" | ||
] | ||
|
||
# https://packaging.python.org/discussions/install-requires-vs-requirements/ | ||
dependencies = [ | ||
"XlsxWriter", | ||
"html2text", | ||
"striprtf" | ||
] | ||
|
||
[project.urls] | ||
"Homepage" = "https://github.com/cnescatlab/polyspace-report2excel" | ||
"Bug Reports" = "https://github.com/cnescatlab/polyspace-report2excel/issues" | ||
|
||
[project.scripts] | ||
p2e = "p2e:main" | ||
|
||
[build-system] | ||
requires = ["setuptools>=61.0", "wheel"] | ||
build-backend = "setuptools.build_meta" |
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
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
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,17 @@ | ||
""" | ||
Modules: | ||
exportcsv: | ||
write to csv file | ||
exportxlsx: | ||
write to excel file | ||
HTMLReader: | ||
read HTML file and extract arrays from it | ||
RTFReader: | ||
read RTF file and extract arrays from it | ||
main: | ||
entrypoint for using this module | ||
""" | ||
|
||
def main(): | ||
import p2e.main | ||
p2e.main.main() |
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
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
Oops, something went wrong.