Skip to content
Snippets Groups Projects
Commit 6f3ee49b authored by Grégoire Kubler's avatar Grégoire Kubler
Browse files

Merge branch 'feat/release_pip' into 'dev'

Feat/release pip

See merge request !10
parents 43914631 94cc43fe
No related branches found
No related tags found
3 merge requests!17v0.1.0,!12v0.4.0,!10Feat/release pip
Pipeline #53423 failed
...@@ -12,6 +12,8 @@ dist*/ ...@@ -12,6 +12,8 @@ dist*/
*.egg *.egg
sdist/ sdist/
wheels/ wheels/
wheelhouse/
aidge_export_arm_cortexm/_version.py
# Environments # Environments
.env .env
......
###############################################################################
# Aidge Continuous Integration and Deployment #
# #
###############################################################################
stages:
- static_analysis
- build
- test
- coverage
- release
- deploy
include:
- project: 'eclipse/aidge/gitlab_shared_files'
ref: 'main'
file:
# choose which jobs to run by including the corresponding files.
- '.gitlab/ci/ubuntu_python.gitlab-ci.yml'
- '.gitlab/ci/release/pip.gitlab-ci.yml'
# Since aidge_onnx is a pure python package building on windows and on ubuntu doesn't differ
# - '.gitlab/ci/windows_python.gitlab-ci.yml'
...@@ -4,6 +4,4 @@ Use this module to generate CPP exports for ARM CortexM boards. ...@@ -4,6 +4,4 @@ Use this module to generate CPP exports for ARM CortexM boards.
This module has to be used with the Aidge suite This module has to be used with the Aidge suite
""" """
__version__ = "0.0.1"
from .export import * from .export import *
import unittest
class test_dummy(unittest.TestCase):
def setUp(self):
pass
def tearDown(self):
pass
def test_converter(self):
self.assertEqual(True , True)
if __name__ == '__main__':
unittest.main()
...@@ -13,24 +13,20 @@ ...@@ -13,24 +13,20 @@
# Installation: # Installation:
# For development purposes, you can install the package with: 'pip install .' # For development purposes, you can install the package with: 'pip install .'
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
# Project settings ----------------------------------------------------------------------------------------------------- # Project settings -----------------------------------------------------------------------------------------------------
[project] [project]
name = "aidge_export_arm_cortexm" name = "aidge_export_arm_cortexm"
dynamic = ["version"]
description = "Aidge export for ARM CortexM systems" description = "Aidge export for ARM CortexM systems"
readme = "README.md" readme = "README.md"
requires-python = ">=3.7" requires-python = ">=3.7"
license = { "text" = "Eclipse Public License 2.0 (EPL-2.0)" } license = { "text" = "Eclipse Public License 2.0 (EPL-2.0)" }
dynamic = ["version"] # defined in tool.setuptools_scm
# Required dependencies ------------------------------------------------------------------------------------------------ # Required dependencies ------------------------------------------------------------------------------------------------
dependencies = [ dependencies = [
"numpy", "numpy>=1.21.6",
"onnx", # weights loading "onnx>=1.16.0", # weights loading
"Jinja2" "Jinja2>=3.1.2"
] ]
# Optional dependencies ------------------------------------------------------------------------------------------------ # Optional dependencies ------------------------------------------------------------------------------------------------
...@@ -41,17 +37,31 @@ dev = [ ...@@ -41,17 +37,31 @@ dev = [
"pytest-cov", "pytest-cov",
] ]
[build-system]
requires = [
"setuptools>=64",
"wheel",
"setuptools_scm[toml]==7.1.0",
"cmake>=3.27.9",
"toml"
]
build-backend = "setuptools.build_meta"
[project.urls] [project.urls]
Homepage = 'https://eclipse-aidge.com' Homepage = 'https://eclipse-aidge.com'
Source = 'https://gitlab.eclipse.org/eclipse/aidge/aidge_export_arm_cortexm' Source = 'https://gitlab.eclipse.org/eclipse/aidge/aidge_export_arm_cortexm'
# Tools settings ------------------------------------------------------------------------------------------------------- # Tools settings -------------------------------------------------------------------------------------------------------
[tool.setuptools] # configuration specific to the `setuptools` build backend. [tool.setuptools] # configuration specific to the `setuptools` build backend.
packages = { find = { where = ["."], include = ["aidge_export_arm_cortexm", "aidge_export_arm_cortexm.*"] } } package-data = { "aidge_export_arm_cortexm" = ["**/*.jinja", "**/*.h", "**/*.hpp", "**/*.c", "**/*.cpp"], "aidge_export_arm_cortexm.boards" = ["**/*"]}
package-data = { "aidge_export_arm_cortexm" = ["**/*.jinja", "**/*.h", "**/*.hpp", "**/*.c", "**/*.cpp"], "aidge_export_arm_cortexm.boards" = ["**/*"] } [tool.setuptools.packages.find]
where = ["."]
[tool.setuptools.dynamic] include = ["aidge_export_arm_cortexm", "aidge_export_arm_cortexm.*"]
version = { attr = "aidge_export_arm_cortexm.__version__" } exclude = ["aidge_export_arm_cortexm.unit_tests*"] # exclude packages matching these glob patterns (empty by default)
# SETUPTOOLS_SCM
[tool.setuptools_scm]
write_to = "aidge_export_arm_cortexm/_version.py"
[tool.pytest] [tool.pytest]
addopts = "--color=yes" addopts = "--color=yes"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment