Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tfields
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
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
Daniel Boeckenhoff
tfields
Commits
1818744f
Commit
1818744f
authored
6 years ago
by
Daniel Boeckenhoff
Browse files
Options
Downloads
Patches
Plain Diff
core lost :/
parent
1b12a9df
No related branches found
No related tags found
No related merge requests found
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Makefile
+22
-4
22 additions, 4 deletions
Makefile
tfields/__main__.py
+3
-3
3 additions, 3 deletions
tfields/__main__.py
tfields/core.py
+1738
-0
1738 additions, 0 deletions
tfields/core.py
with
1763 additions
and
7 deletions
Makefile
+
22
−
4
View file @
1818744f
...
@@ -3,8 +3,26 @@ init:
...
@@ -3,8 +3,26 @@ init:
find .git/hooks
-type
l
-exec
rm
{}
\;
find .git/hooks
-type
l
-exec
rm
{}
\;
find .githooks
-type
f
-exec
ln
-sf
../../
{}
.git/hooks/
\;
find .githooks
-type
f
-exec
ln
-sf
../../
{}
.git/hooks/
\;
coverage
:
coverage run tfields
test
coverage report
coverage html
firefox htmlcov/index.html
html
:
echo
"Not implemented"
publish
:
publish
:
git tag
-a
v<my.version.id>
-m
"<comment to my version>"
# tag version
@
echo
"NOOOTE"
git push origin v<my.version.id>
# explicitly push tag to the shared server
@
read
root_path
python setup.py sdist
@
echo
"TEST
$$
root_path"
twine upload dist/
*
@
while
[
-z
"
$$
VERSION"
]
;
do
\
read
-r
-p
"Please write the version specifier: "
VERSION
;
\
done
;
\
echo
$(
VERSION
)
echo
"Publishing pacakge version
$(
VERSION
)
"
# git tag -a v<my.version.id> -m "<comment to my version>" # tag version
# git push origin v<my.version.id> # explicitly push tag to the shared server
# python setup.py sdist
# twine upload dist/*
This diff is collapsed.
Click to expand it.
tfields/__main__.py
+
3
−
3
View file @
1818744f
...
@@ -11,9 +11,9 @@ def run_doctests():
...
@@ -11,9 +11,9 @@ def run_doctests():
"""
"""
Find all doctests and execute them
Find all doctests and execute them
"""
"""
parent
=
pathlib
.
Path
(
__file__
).
parent
this_dir
=
pathlib
.
Path
(
__file__
).
resolve
()
for
f
in
list
(
parent
.
glob
(
'
**/*.py
'
)):
for
f
in
list
(
this_dir
.
glob
(
'
**/*.py
'
)):
doctest
.
testfile
(
str
(
f
.
relative_to
(
pa
rent
)))
# , verbose=True, optionflags=doctest.ELLIPSIS)
doctest
.
testfile
(
str
(
f
.
relative_to
(
pa
thlib
.
Path
.
cwd
().
resolve
()
)))
# , verbose=True, optionflags=doctest.ELLIPSIS)
def
load_unittests
(
loader
=
None
,
suite
=
None
):
def
load_unittests
(
loader
=
None
,
suite
=
None
):
...
...
This diff is collapsed.
Click to expand it.
tfields/core.py
0 → 100644
+
1738
−
0
View file @
1818744f
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