Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
N
navipy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
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
Olivier Bertrand
navipy
Commits
bfa783bf
Commit
bfa783bf
authored
7 years ago
by
Olivier J.N. Bertrand
Browse files
Options
Downloads
Patches
Plain Diff
Add resource in setup py
parent
3011e53d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
navipy/processing/test.py
+3
-1
3 additions, 1 deletion
navipy/processing/test.py
setup.py
+3
-1
3 additions, 1 deletion
setup.py
with
6 additions
and
2 deletions
navipy/processing/test.py
+
3
−
1
View file @
bfa783bf
...
...
@@ -5,6 +5,7 @@ import pandas as pd
import
os
from
navipy.database
import
database
import
navipy.processing
as
processing
import
pkg_resources
def
is_numeric_array
(
array
):
...
...
@@ -64,7 +65,8 @@ def build_test_db():
class
TestCase
(
unittest
.
TestCase
):
def
setUp
(
self
):
self
.
mydb_filename
=
os
.
path
.
abspath
(
'
navipy/resources/database.db
'
)
self
.
mydb_filename
=
pkg_resources
.
resource_filename
(
'
navipy
'
,
'
resources/database.db
'
)
self
.
mydb
=
database
.
DataBaseLoad
(
self
.
mydb_filename
)
...
...
This diff is collapsed.
Click to expand it.
setup.py
+
3
−
1
View file @
bfa783bf
...
...
@@ -29,6 +29,8 @@ setup_dict = {'name': 'navipy',
'
description
'
:
'
Insect Navigation Toolbox
'
,
'
packages
'
:
create_package_list
(
"
navipy
"
),
'
requires
'
:
[
'
numpy
'
,
'
pandas
'
,
'
matplotlib
'
,
'
scipy
'
],
'
install_requires
'
:
[
"
numpy
"
,
'
pandas
'
,
'
matplotlib
'
,
'
scipy
'
]}
'
install_requires
'
:
[
"
numpy
"
,
'
pandas
'
,
'
matplotlib
'
,
'
scipy
'
],
'
package_data
'
:
{
'
navipy
'
:
[
'
resources/database.db
'
]},
'
include_package_data
'
:
True
,
}
setup
(
**
setup_dict
)
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