Skip to content
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

Switch to setuptools-scm for versioning #37

Merged
merged 9 commits into from Jan 11, 2022
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Expand Up @@ -29,7 +29,7 @@ jobs:
set -xe
python -VV
python -m site
python -m pip install --upgrade pip wheel
python -m pip install --upgrade pip setuptools_scm wheel
seifertm marked this conversation as resolved.
Show resolved Hide resolved
python -m pip install --upgrade coverage[toml] virtualenv tox tox-gh-actions
- name: "Run tox targets for ${{ matrix.python-version }}"
run: "python -m tox"
Expand Down Expand Up @@ -57,7 +57,7 @@ jobs:
python-version: "3.9"

- name: "Install poetry, check-wheel-content, and twine"
run: "python -m pip install wheel twine check-wheel-contents"
run: "python -m pip install check-wheel-contents setuptools_scm twine wheel"
seifertm marked this conversation as resolved.
Show resolved Hide resolved
- name: "Build package"
run: "python setup.py sdist bdist_wheel"
seifertm marked this conversation as resolved.
Show resolved Hide resolved
- name: "List result"
Expand Down
6 changes: 5 additions & 1 deletion .gitignore
Expand Up @@ -39,7 +39,7 @@ htmlcov/
.tox/
.coverage
.coverage.*
.cache
.pytest_cache
nosetests.xml
coverage.xml
*,cover
Expand All @@ -63,3 +63,7 @@ target/

# pyenv
.python-version


# generated by setuptools_scm
pytest_asyncio/_version.py
4 changes: 4 additions & 0 deletions pyproject.toml
Expand Up @@ -2,5 +2,9 @@
requires = [
"setuptools>=51.0",
"wheel>=0.36",
"setuptools_scm>=6.2"
]
build-backend = "setuptools.build_meta"

[tool.setuptools_scm]
write_to = "pytest_asyncio/_version.py"
3 changes: 1 addition & 2 deletions pytest_asyncio/__init__.py
@@ -1,6 +1,5 @@
"""The main point for importing pytest-asyncio items."""
__version__ = "0.16.0"

from ._version import version as __version__ # noqa
from .plugin import fixture

__all__ = ("fixture",)
1 change: 0 additions & 1 deletion setup.cfg
@@ -1,6 +1,5 @@
[metadata]
name = pytest-asyncio
version = attr: pytest_asyncio.__version__
seifertm marked this conversation as resolved.
Show resolved Hide resolved
url = https://github.com/pytest-dev/pytest-asyncio
project_urls =
GitHub = https://github.com/pytest-dev/pytest-asyncio
Expand Down