Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
papersurfer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jacobsohn, Johann
papersurfer
Commits
b669274f
Commit
b669274f
authored
Aug 17, 2020
by
Johann Jacobsohn
Browse files
Options
Downloads
Patches
Plain Diff
add --version argument and pull version from git
parent
9eeee5b7
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
papersurfer/papersurfer.py
+3
-0
3 additions, 0 deletions
papersurfer/papersurfer.py
pyproject.toml
+2
-0
2 additions, 0 deletions
pyproject.toml
setup.py
+3
-2
3 additions, 2 deletions
setup.py
with
8 additions
and
2 deletions
papersurfer/papersurfer.py
+
3
−
0
View file @
b669274f
...
...
@@ -22,6 +22,7 @@ from ui_elements import PrettyButton
from
mattermost
import
Mattermost
from
doi
import
Doi
from
bibtex
import
Bibtex
from
setuptools_scm
import
get_version
class
Papersurfer
:
...
...
@@ -421,6 +422,8 @@ def parse_args():
help=
"
Dump mattermost paper posts to stdout and exit
"
)
parser.add(
'
--
dump
-
bibtex
'
, action=
'
store_true
'
,
help=
"
Dump mattermost paper posts to stdout and exit
"
)
parser.add(
'
--
version
'
, action=
'
version
'
,
version=get_version(root=
'
..
'
, relative_to=__file__))
options = parser.parse_args()
if not options.url:
...
...
This diff is collapsed.
Click to expand it.
pyproject.toml
0 → 100644
+
2
−
0
View file @
b669274f
[tool.setuptools_scm]
write_to
=
"pkg/version.py"
This diff is collapsed.
Click to expand it.
setup.py
+
3
−
2
View file @
b669274f
...
...
@@ -10,7 +10,6 @@ README = (HERE / "README.md").read_text()
# This call to setup() does all the work
setup
(
name
=
"
papersurfer
"
,
version
=
"
0.7.0
"
,
description
=
""
,
long_description
=
README
,
long_description_content_type
=
"
text/markdown
"
,
...
...
@@ -25,10 +24,12 @@ setup(
],
packages
=
[
"
papersurfer
"
],
include_package_data
=
True
,
install_requires
=
[
"
requests
"
,
"
mattermostdriver
"
,
"
urwid
"
,
"
configargparse
"
],
install_requires
=
[
"
requests
"
,
"
mattermostdriver
"
,
"
urwid
"
,
"
configargparse
"
,
"
setuptools_scm
"
],
entry_points
=
{
"
console_scripts
"
:
[
"
papersurfer=papersurfer.papersurfer:main
"
,
]
},
use_scm_version
=
True
,
setup_requires
=
[
'
setuptools_scm
'
],
)
This diff is collapsed.
Click to expand it.
Jacobsohn, Johann
@jjacobsohn
mentioned in commit
4de34d53
·
Aug 17, 2020
mentioned in commit
4de34d53
mentioned in commit 4de34d534fdf116377ea75b772492206e905f7a9
Toggle commit list
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