Skip to content

Commit db3d6cd

Browse files
authored
Merge pull request #77 from dmtucker/release
Use setuptools-scm for versioning starting with 0.5.0
2 parents 179c59a + 638c312 commit db3d6cd

File tree

6 files changed

+46
-45
lines changed

6 files changed

+46
-45
lines changed

CONTRIBUTING.rst

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
Contributing
2+
============
3+
4+
Contributions are very welcome. Tests can be run with `tox <https://tox.readthedocs.io/en/latest/>`_.
5+
Please ensure the coverage at least stays the same before you submit a pull request.
6+
7+
.. image:: https://travis-ci.org/dbader/pytest-mypy.svg?branch=master
8+
:target: https://travis-ci.org/dbader/pytest-mypy
9+
:alt: See Build Status on Travis CI
10+
11+
Development Environment Setup
12+
-----------------------------
13+
14+
Here's how to install pytest-mypy in development mode so you can test your changes locally:
15+
16+
.. code-block:: bash
17+
18+
tox --devenv venv
19+
venv/bin/pytest --mypy test_example.py
20+
21+
How to publish a new version to PyPI
22+
------------------------------------
23+
24+
Push a tag, and Travis CI will publish it automatically.
25+
To publish manually:
26+
27+
.. code-block:: bash
28+
29+
python -m venv venv
30+
venv/bin/pip install pep517 twine
31+
venv/bin/python -m pep517.build .
32+
venv/bin/twine upload dist/*

MANIFEST.in

Lines changed: 0 additions & 8 deletions
This file was deleted.

README.rst

Lines changed: 2 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,12 @@
11
pytest-mypy
22
===================================
33

4-
.. image:: https://travis-ci.org/dbader/pytest-mypy.svg?branch=master
5-
:target: https://travis-ci.org/dbader/pytest-mypy
6-
:alt: See Build Status on Travis CI
4+
Mypy static type checker plugin for pytest
75

86
.. image:: https://img.shields.io/pypi/v/pytest-mypy.svg
9-
:target: https://pypi.python.org/pypi/pytest-mypy
7+
:target: https://pypi.org/project/pytest-mypy/
108
:alt: See Latest Release on PyPI
119

12-
Mypy static type checker plugin for pytest
13-
14-
----
15-
1610
Features
1711
--------
1812

@@ -54,32 +48,6 @@ You can restrict your test run to only perform mypy checks and not any other tes
5448
5549
py.test --mypy -m mypy test_*.py
5650
57-
Contributing
58-
------------
59-
Contributions are very welcome. Tests can be run with `tox`_, please ensure
60-
the coverage at least stays the same before you submit a pull request.
61-
62-
Development Environment Setup
63-
-----------------------------
64-
Here's how to install pytest-mypy in development mode so you can test your
65-
changes locally:
66-
67-
.. code-block:: bash
68-
69-
$ pyvenv venv
70-
$ source venv/bin/activate
71-
$ python setup.py develop
72-
$ venv/bin/py.test --mypy example_test.py
73-
74-
How to publish a new version to PyPI
75-
------------------------------------
76-
77-
.. code-block:: bash
78-
79-
$ pip install twine wheel
80-
$ python setup.py sdist bdist_wheel
81-
$ twine upload dist/*
82-
8351
License
8452
-------
8553

@@ -100,7 +68,6 @@ https://github.com/dbader/pytest-mypy
10068

10169
.. _`MIT`: http://opensource.org/licenses/MIT
10270
.. _`file an issue`: https://github.com/dbader/pytest-mypy/issues
103-
.. _`tox`: https://tox.readthedocs.io/en/latest/
10471
.. _`pip`: https://pypi.python.org/pypi/pip/
10572
.. _`PyPI`: https://pypi.python.org/pypi
10673
.. _`mypy`: http://mypy-lang.org/

changelog.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Changelog
22

3+
## 0.5.0
4+
* Remove MypyItem.mypy_path
5+
* Add support for pytest-xdist
6+
* Add a configurable name to MypyItem node IDs
7+
8+
See [the milestone](https://github.com/dbader/pytest-mypy/milestone/9) for details.
9+
310
## 0.4.2
411
* Make success message green instead of red.
512
* Remove Python 3.8 beta/dev references.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[build-system]
2-
requires = ['setuptools ~= 41.0.1']
2+
requires = ['setuptools ~= 43.0.0', 'setuptools-scm ~= 3.5.0', 'wheel ~= 0.33.6']
33
build-backend = 'setuptools.build_meta'

setup.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def read(fname):
1414

1515
setup(
1616
name='pytest-mypy',
17-
version='0.4.2',
17+
use_scm_version=True,
1818
author='Daniel Bader',
1919
author_email='mail@dbader.org',
2020
maintainer='David Tucker',
@@ -30,6 +30,9 @@ def read(fname):
3030
for path in glob.glob('src/*.py')
3131
],
3232
python_requires='~=3.4',
33+
setup_requires=[
34+
'setuptools-scm>=3.5',
35+
],
3336
install_requires=[
3437
'filelock>=3.0',
3538
'pytest>=3.5,<4.7; python_version<"3.5"',

0 commit comments

Comments
 (0)