Skip to content

Commit

Permalink
Switch to setuptools-scm for versioning
Browse files Browse the repository at this point in the history
Following other pytest projects like pytest-html,
that use setuptool-scm to manage version, it would
be nice other projects follow the suit and
let setuptools-scm manage version of this project.
  • Loading branch information
maliki authored and nicoddemus committed Aug 25, 2018
1 parent 1ada096 commit 8885f2b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Expand Up @@ -57,4 +57,7 @@ docs/_build/
target/

.venv*
.idea
.idea

# generated by setuptools_scm
pytest_asyncio/_version.py
4 changes: 3 additions & 1 deletion pytest_asyncio/__init__.py
@@ -1,2 +1,4 @@

"""The main point for importing pytest-asyncio items."""
__version__ = "0.10.0.dev0"

from ._version import version as __version__
3 changes: 2 additions & 1 deletion setup.py
Expand Up @@ -21,7 +21,8 @@ def find_version():

setup(
name="pytest-asyncio",
version=find_version(),
use_scm_version={"write_to": "pytest_asyncio/_version.py"},
setup_requires=["setuptools-scm"],
packages=find_packages(),
url="https://github.com/pytest-dev/pytest-asyncio",
license="Apache 2.0",
Expand Down

0 comments on commit 8885f2b

Please sign in to comment.