Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
aidge_core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Houssem ROUIS
aidge_core
Commits
9645e3dd
Commit
9645e3dd
authored
11 months ago
by
Grégoire Kubler
Browse files
Options
Downloads
Patches
Plain Diff
feat : find_package is now hanlded by pyproject.toml
parent
078cdfd6
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
pyproject.toml
+5
-1
5 additions, 1 deletion
pyproject.toml
setup.py
+0
-4
0 additions, 4 deletions
setup.py
with
5 additions
and
5 deletions
pyproject.toml
+
5
−
1
View file @
9645e3dd
...
...
@@ -23,7 +23,11 @@ build-backend = "setuptools.build_meta"
#####################################################
# SETUPTOOLS
[tool.setuptools]
#####################################################
[tool.setuptools.packages.find]
where
=
[
"."
]
# list of folders that contain the packages (["."] by default)
include
=
[
"aidge_core*"
]
# package names should match these glob patterns (["*"] by default)
exclude
=
[
"aidge_core.unit_tests*"
]
# exclude packages matching these glob patterns (empty by default)
namespaces
=
false
# to disable scanning PEP 420 namespaces (true by default)
# SETUPTOOLS_SCM
[tool.setuptools_scm]
write_to
=
"aidge_core/_version.py"
...
...
This diff is collapsed.
Click to expand it.
setup.py
+
0
−
4
View file @
9645e3dd
...
...
@@ -12,7 +12,6 @@ from math import ceil
import
toml
from
setuptools
import
setup
,
Extension
from
setuptools
import
find_packages
from
setuptools.command.build_ext
import
build_ext
def
get_project_name
()
->
str
:
...
...
@@ -21,7 +20,6 @@ def get_project_name() -> str:
return
project_toml
[
"
project
"
][
"
name
"
]
class
CMakeExtension
(
Extension
):
def
__init__
(
self
,
name
):
super
().
__init__
(
name
,
sources
=
[])
...
...
@@ -98,9 +96,7 @@ class CMakeBuild(build_ext):
if
__name__
==
"
__main__
"
:
setup
(
packages
=
find_packages
(
where
=
"
.
"
),
include_package_data
=
True
,
ext_modules
=
[
CMakeExtension
(
get_project_name
())],
cmdclass
=
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment