Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
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
Tobias Leibner
dune-common
Commits
a38bce27
Commit
a38bce27
authored
4 years ago
by
Samuel Burbulla
Browse files
Options
Downloads
Patches
Plain Diff
Just copy README.md.
parent
d03ef052
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bin/dunepackaging.py
+4
-4
4 additions, 4 deletions
bin/dunepackaging.py
with
4 additions
and
4 deletions
bin/dunepackaging.py
+
4
−
4
View file @
a38bce27
#!/usr/bin/env python3
import
sys
,
os
,
io
,
getopt
,
re
import
sys
,
os
,
io
,
getopt
,
re
,
shutil
import
importlib
,
subprocess
import
email.utils
import
pkg_resources
...
...
@@ -118,6 +118,7 @@ def main(argv):
sys
.
exit
(
2
)
# append hash of current git commit to README
shutil
.
copy
(
'
README.md
'
,
'
tmp_README.md
'
)
githash
=
[
'
git
'
,
'
rev-parse
'
,
'
HEAD
'
]
hash
=
subprocess
.
check_output
(
githash
,
encoding
=
'
UTF-8
'
)
with
open
(
"
README.md
"
,
"
a
"
)
as
f
:
...
...
@@ -135,9 +136,8 @@ def main(argv):
gitreset
=
[
'
git
'
,
'
reset
'
,
'
setup.py
'
,
'
pyproject.toml
'
]
subprocess
.
call
(
gitreset
)
# checkout README.md
gitcheckout
=
[
'
git
'
,
'
checkout
'
,
'
README.md
'
]
subprocess
.
call
(
gitcheckout
)
# restore README.md
shutil
.
move
(
'
tmp_README.md
'
,
'
README.md
'
)
if
not
onlysdist
:
# check if we have twine
...
...
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