-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add version info to druid package and use it for CLI version output #50
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ref-names: $Format:%D$ |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.git_archival.txt export-subst | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,5 +54,6 @@ dkms.conf | |
build/ | ||
dist/ | ||
__pycache__/ | ||
.eggs | ||
*.log | ||
*~ |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,6 @@ | |
|
||
setup( | ||
name="monome-druid", | ||
version="0.1.1", | ||
description="Terminal interface for crow", | ||
long_description=long_description, | ||
long_description_content_type="text/markdown", | ||
|
@@ -21,11 +20,18 @@ | |
packages=find_packages("src"), | ||
package_dir={"": "src"}, | ||
include_package_data=True, | ||
use_scm_version=True, | ||
python_requires=">=3.5", | ||
setup_requires=[ | ||
"setuptools_scm", | ||
"setuptools_scm_git_archive", | ||
], | ||
install_requires=[ | ||
"Click>=7.0", | ||
"prompt-toolkit>=2.0.10", | ||
"pyserial>=3.4", | ||
"setuptools_scm", | ||
"setuptools_scm_git_archive", | ||
Comment on lines
+33
to
+34
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We need to have these installed at runtime as well, otherwise the detection isn't possible. |
||
], | ||
extras_require={ | ||
"test": [ | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import pkg_resources | ||
|
||
from setuptools_scm import get_version | ||
__version__ = get_version() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is some git "magic" that processes the file on the left using the attribute on the right.
export-subst
basically substitutes some placeholders, see https://git-scm.com/docs/gitattributes#_creating_an_archive for more details.The result is something like