Skip to content

Commit

Permalink
add setuptools_scm (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
tolstislon committed Mar 26, 2020
1 parent 92c74f3 commit 4f571c2
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -105,4 +105,7 @@ venv.bak/
.idea/
TODO.txt
gfgfg.py
.travis_dist.yml
.travis_dist.yml

# autogenerated
pytest_bug/__version__.py
6 changes: 3 additions & 3 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions pytest_bug/__init__.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
import pytest

__version__ = '0.7.5'


def bug(*args, run=False):
return pytest.mark.bug(*args, run=run)


__all__ = [
'__version__',
'bug'
]
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,15 @@
description='Pytest plugin Mark test as a bug',
long_description=long_description,
long_description_content_type='text/markdown',
version=pytest_bug.__version__,
# version=pytest_bug.__version__,
author='tolstislon',
author_email='tolstislon@gmail.com',
url='https://github.com/tolstislon/pytest-bug',
packages=find_packages(exclude=('tests',)),
install_requires=['pytest>=3.6.0'],
include_package_data=True,
use_scm_version={"write_to": "pytest_bug/__version__.py"},
setup_requires=['setuptools_scm'],
python_requires='>=3.5',
license='MIT License',
entry_points={'pytest11': ['pytest_bug = pytest_bug.plugin']},
Expand Down

0 comments on commit 4f571c2

Please sign in to comment.