Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
skais
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Raphael Sturgis
skais
Commits
62d97a52
Commit
62d97a52
authored
3 years ago
by
Raphael
Browse files
Options
Downloads
Patches
Plain Diff
modified setup
parent
21e8fc8b
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
setup.cfg
+30
-0
30 additions, 0 deletions
setup.cfg
setup.py
+95
-0
95 additions, 0 deletions
setup.py
with
125 additions
and
0 deletions
setup.cfg
0 → 100644
+
30
−
0
View file @
62d97a52
[tool:pytest]
testpaths
=
skais
addopts
=
--verbose
--cov-report
=
term-missing
--cov-report
=
html
--cov
=
skais
--doctest-modules
[coverage:run]
branch
=
True
source
=
skais
include
=
*/skais/*
omit
=
*/tests/*
[coverage:report]
exclude_lines
=
pragma:
no
cover
if
self.debug:
if
settings.DEBUG
raise
AssertionError
raise
NotImplementedError
if
0:
if
__name__
=
= .__main__.:
if
obj
is
None:
return
if
verbose
>
0:
if
self.verbose
>
0:
if
verbose
>
1:
if
self.verbose
>
1:
pass
def
__str__(self):
This diff is collapsed.
Click to expand it.
setup.py
+
95
−
0
View file @
62d97a52
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import
os
from
setuptools
import
setup
,
find_packages
import
sys
NAME
=
'
skais
'
DESCRIPTION
=
'
Machine learning on AIS by Searoutes and LIS, PhD by R. Sturgis
'
LICENSE
=
'
GNU General Public License v3 (GPLv3)
'
URL
=
'
https://gitlab.lis-lab.fr/raphael.sturgis/skais/{}
'
.
format
(
NAME
)
AUTHOR
=
'
Raphael Sturgis, Valentin Emiya
'
AUTHOR_EMAIL
=
'
raphael.sturgis@lis-lab.fr, valentin.emiya@lis-lab.fr
'
INSTALL_REQUIRES
=
[]
CLASSIFIERS
=
[
'
Development Status :: 5 - Production/Stable
'
,
'
Intended Audience :: Developers
'
,
'
Intended Audience :: End Users/Desktop
'
,
'
Intended Audience :: Science/Research
'
,
'
Topic :: Scientific/Engineering :: Mathematics
'
,
'
License :: OSI Approved :: GNU General Public License v3 (GPLv3)
'
,
'
Natural Language :: English
'
,
'
Operating System :: MacOS :: MacOS X
'
,
'
Operating System :: POSIX :: Linux
'
,
'
Programming Language :: Python :: 3.6
'
,
'
Programming Language :: Python :: 3.7
'
,
'
Programming Language :: Python :: 3.8
'
,
'
Programming Language :: Python :: 3.9
'
]
PYTHON_REQUIRES
=
'
>=3.6
'
EXTRAS_REQUIRE
=
{
'
dev
'
:
[
'
coverage
'
,
'
pytest
'
,
'
pytest-cov
'
,
'
pytest-randomly
'
],
'
doc
'
:
[
'
nbsphinx
'
,
'
numpydoc
'
,
'
sphinx
'
]}
PROJECT_URLS
=
{
'
Bug Reports
'
:
URL
+
'
/issues
'
,
'
Source
'
:
URL
}
KEYWORDS
=
'
AIS
'
###############################################################################
if
sys
.
argv
[
-
1
]
==
'
setup.py
'
:
print
(
"
To install, run
'
python setup.py install
'
\n
"
)
if
sys
.
version_info
[:
2
]
<
(
3
,
6
):
errmsg
=
'
{} requires Python 3.6 or later ({}.{} detected).
'
sys_version
=
sys
.
version_info
print
(
errmsg
.
format
(
NAME
,
sys_version
[
0
],
sys_version
[
1
]))
sys
.
exit
(
-
1
)
def
get_version
():
v_text
=
open
(
'
VERSION
'
).
read
().
strip
()
v_text_formted
=
'
{
"'
+
v_text
.
replace
(
'
\n
'
,
'"
,
"'
).
replace
(
'
:
'
,
'"
:
"'
)
v_text_formted
+=
'"
}
'
v_dict
=
eval
(
v_text_formted
)
return
v_dict
[
NAME
]
def
set_version
(
path
,
VERSION
):
filename
=
os
.
path
.
join
(
path
,
'
__init__.py
'
)
buf
=
""
for
line
in
open
(
filename
,
"
rb
"
):
if
not
line
.
decode
(
"
utf8
"
).
startswith
(
"
__version__ =
"
):
buf
+=
line
.
decode
(
"
utf8
"
)
f
=
open
(
filename
,
"
wb
"
)
f
.
write
(
buf
.
encode
(
"
utf8
"
))
f
.
write
((
'
__version__ =
"
%s
"
\n
'
%
VERSION
).
encode
(
"
utf8
"
))
def
setup_package
():
"""
Setup function
"""
# set version
VERSION
=
get_version
()
here
=
os
.
path
.
abspath
(
os
.
path
.
dirname
(
__file__
))
with
open
(
os
.
path
.
join
(
here
,
'
README.rst
'
),
encoding
=
'
utf-8
'
)
as
f
:
long_description
=
f
.
read
()
mod_dir
=
NAME
set_version
(
mod_dir
,
get_version
())
setup
(
name
=
NAME
,
version
=
VERSION
,
description
=
DESCRIPTION
,
long_description
=
long_description
,
url
=
URL
,
author
=
AUTHOR
,
author_email
=
AUTHOR_EMAIL
,
license
=
LICENSE
,
classifiers
=
CLASSIFIERS
,
keywords
=
KEYWORDS
,
packages
=
find_packages
(
exclude
=
[
'
doc
'
,
'
dev
'
]),
install_requires
=
INSTALL_REQUIRES
,
python_requires
=
PYTHON_REQUIRES
,
extras_require
=
EXTRAS_REQUIRE
,
project_urls
=
PROJECT_URLS
)
if
__name__
==
"
__main__
"
:
setup_package
()
\ No newline at end of file
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