Skip to content

Commit 3f22e81

Browse files
committed
Use version from Git tags
1 parent e97ce0c commit 3f22e81

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@ env
77
.vscode
88
.cache
99
*.egg-info
10+
.eggs
1011
dist
1112
build

scuttle/__init__.py

-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
11
from .wrapper import scuttle
2-
3-
__version__ = "0.2.0"

setup.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
except ImportError:
44
from distutils.core import setup
55

6-
from scuttle import __version__
7-
86
from os import path
97

108
this_directory = path.abspath(path.dirname(__file__))
@@ -13,7 +11,7 @@
1311

1412
setup(
1513
name='scuttle-api-wrapper',
16-
version=__version__,
14+
use_scm_version=True,
1715
packages=['scuttle', 'scuttle.versions'],
1816
url="http://github.com/scuttle/python-scuttle",
1917
license="MIT",
@@ -22,6 +20,7 @@
2220
description="Python wrapper for SCUTTLE API.",
2321
long_description=long_description,
2422
long_description_content_type='text/markdown',
23+
setup_requires=["setuptools_scm"],
2524
install_requires=["requests", "wrapt"],
2625
classifiers=[
2726
"Programming Language :: Python :: 3.8",

0 commit comments

Comments
 (0)