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
6 changes: 3 additions & 3 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
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,9 +57,9 @@ 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 build check-wheel-contents twine"
- name: "Build package"
run: "python setup.py sdist bdist_wheel"
run: "python -m build"
- name: "List result"
run: "ls -l dist"
- name: "Check wheel contents"
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",)
3 changes: 3 additions & 0 deletions setup.cfg
Expand Up @@ -33,6 +33,9 @@ python_requires = >=3.7
packages = find:
include_package_data = True

setup_requires =
setuptools_scm >= 6.2

install_requires =
pytest >= 5.4.0

Expand Down