Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
U
ur_py_ctl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Robotlab
ur_py_ctl
Commits
00afa181
Verified
Commit
00afa181
authored
3 years ago
by
Anton Tetov Johansson
Browse files
Options
Downloads
Patches
Plain Diff
ci and versioning
parent
d3b6651b
No related branches found
No related tags found
No related merge requests found
Pipeline
#1675
failed
3 years ago
Stage: quality
Stage: tests
Changes
4
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitlab-ci.yml
+1
-0
1 addition, 0 deletions
.gitlab-ci.yml
pyproject.toml
+3
-2
3 additions, 2 deletions
pyproject.toml
tests/test_ur_py_ctl.py
+7
-1
7 additions, 1 deletion
tests/test_ur_py_ctl.py
ur_py_ctl/__init__.py
+6
-1
6 additions, 1 deletion
ur_py_ctl/__init__.py
with
17 additions
and
4 deletions
.gitlab-ci.yml
+
1
−
0
View file @
00afa181
...
...
@@ -26,6 +26,7 @@ stages:
.install-deps-template
:
&install-deps
<<
:
*executor
before_script
:
-
sudo apt update && sudo apt install make
-
pip install poetry
-
poetry --version
-
poetry config virtualenvs.in-project
true
...
...
This diff is collapsed.
Click to expand it.
pyproject.toml
+
3
−
2
View file @
00afa181
...
...
@@ -4,13 +4,14 @@ build-backend = "poetry.core.masonry.api"
[tool.poetry]
name
=
"ur_py_ctl"
version
=
"0.1.
0
"
version
=
"0.1.
1
"
description
=
"Python wrapper around URScript (for Universal Robotics robots)."
authors
=
[
"Anton Tetov <anton.johansson@control.lth.se>"
]
repository
=
"https://gitlab.control.lth.se/robotlab/ur_py_ctl"
[tool.poetry.dependencies]
python
=
">
=
3.9
,
<
3.12
"
python
=
">
=
3.9
,
<
3.11
"
importlib_metadata
=
{
version
=
"^1.0"
,
python
=
"<3.8"
}
[tool.poetry.dev-dependencies]
flake8
=
"^4.0.1"
...
...
This diff is collapsed.
Click to expand it.
tests/test_ur_py_ctl.py
+
7
−
1
View file @
00afa181
import
re
from
ur_py_ctl
import
__version__
def
test_version
():
assert
__version__
==
"
0.1.0
"
assert
__version__
def
test_version_semver
():
assert
re
.
match
(
r
"
(\d+\.)(\d+\.)(\d+(-[\w\.]+)?)
"
,
__version__
)
This diff is collapsed.
Click to expand it.
ur_py_ctl/__init__.py
+
6
−
1
View file @
00afa181
import
pathlib
__version__
=
"
0.1.0
"
try
:
import
importlib.metadata
as
importlib_metadata
except
ModuleNotFoundError
:
import
importlib_metadata
__version__
=
importlib_metadata
.
version
(
__name__
)
HERE
=
pathlib
.
Path
(
__file__
).
parent
REPO_DIR
=
HERE
.
parent
...
...
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