Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Yori Fournier
myplotlib
Commits
a1c0d4d6
Commit
a1c0d4d6
authored
Oct 01, 2019
by
Yori
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add the git version (last tag) in setup.py
modify README.md
parent
aebfe921
Pipeline
#727
failed with stage
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
16 deletions
+16
-16
README.md
README.md
+7
-15
setup.py
setup.py
+9
-1
No files found.
README.md
View file @
a1c0d4d6
...
...
@@ -102,41 +102,33 @@ be spread, allowing fast and consistent corrections.
making it fast and safe
# 3. Install from source **(without an account at gitlab.aip.de)**
### STEP 1: download source of the module myplotlib
-
[
zip
](
https://gitlab.aip.de/yfournier/myplotlib/repository/archive.zip?ref=
v3.0.1a
)
-
[
tar.gz
](
https://gitlab.aip.de/yfournier/myplotlib/repository/archive.tar.gz?ref=
v3.0.1a
)
-
[
zip
](
https://gitlab.aip.de/yfournier/myplotlib/repository/archive.zip?ref=
5.8.18-rc
)
-
[
tar.gz
](
https://gitlab.aip.de/yfournier/myplotlib/repository/archive.tar.gz?ref=
5.8.18-rc
)
extract and rename like
`/home/user/src/python/myplotlib`
### STEP 2: Install
Set the python path
```
export PYTHONPATH="/home/user/src/python/"
```
Create your config file (in
`/home/user/src/python/myplotlib/`
)
```
cp config-default.py config.py
python setup.py install
```
### STEP 3: testing
in
`/home/user/src/python/`
in
`/home/user/src/python/
myplotlib/test/localhost/
`
```
python2.6 -m myplotlib.__main__ -t
python2.7 -m myplotlib -t
python3 -m myplotlib -t
python -m tests
python -m tutorials
```
This will execute a series of tests, they should all be successful.
> **REMARK**: If you get some errors, try the minimal configuration:
replace config.py with myplotlib/.configs/minimal-config.py
> **REMARK**: If you get some errors, try the minimal configuration:
...
# 4. Install with git (with an account at gitlab.aip.de)
...
...
setup.py
View file @
a1c0d4d6
from
subprocess
import
Popen
,
PIPE
import
setuptools
try
:
process
=
Popen
([
'git'
,
'describe'
,
'--exact-match'
,
'--tags'
],
stdout
=
PIPE
,
stderr
=
PIPE
)
stdout
,
stderr
=
process
.
communicate
()
version
=
stdout
.
decode
(
'ascii'
)
except
:
raise
with
open
(
"README.md"
,
"r"
)
as
fh
:
long_description
=
fh
.
read
()
setuptools
.
setup
(
name
=
"myplotlib"
,
version
=
'5.6.16b'
,
# toward-v6 branch (still beta)
version
=
version
,
author
=
'Yori Fournier, Philipp Gast'
,
author_email
=
'y.fournier@aip.de ???'
,
description
=
'clean alternative to pyplot -- a wrapper around core API of matplotlib'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment