Skip to content

Commit

Permalink
Merge pull request #77 from dmtucker/release
Browse files Browse the repository at this point in the history
Use setuptools-scm for versioning starting with 0.5.0
  • Loading branch information
dmtucker authored Feb 23, 2020
2 parents 179c59a + 638c312 commit db3d6cd
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 45 deletions.
32 changes: 32 additions & 0 deletions CONTRIBUTING.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
Contributing
============

Contributions are very welcome. Tests can be run with `tox <https://tox.readthedocs.io/en/latest/>`_.
Please ensure the coverage at least stays the same before you submit a pull request.

.. image:: https://travis-ci.org/dbader/pytest-mypy.svg?branch=master
:target: https://travis-ci.org/dbader/pytest-mypy
:alt: See Build Status on Travis CI

Development Environment Setup
-----------------------------

Here's how to install pytest-mypy in development mode so you can test your changes locally:

.. code-block:: bash
tox --devenv venv
venv/bin/pytest --mypy test_example.py
How to publish a new version to PyPI
------------------------------------

Push a tag, and Travis CI will publish it automatically.
To publish manually:

.. code-block:: bash
python -m venv venv
venv/bin/pip install pep517 twine
venv/bin/python -m pep517.build .
venv/bin/twine upload dist/*
8 changes: 0 additions & 8 deletions MANIFEST.in

This file was deleted.

37 changes: 2 additions & 35 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,18 +1,12 @@
pytest-mypy
===================================

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

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

Mypy static type checker plugin for pytest

----

Features
--------

Expand Down Expand Up @@ -54,32 +48,6 @@ You can restrict your test run to only perform mypy checks and not any other tes
py.test --mypy -m mypy test_*.py
Contributing
------------
Contributions are very welcome. Tests can be run with `tox`_, please ensure
the coverage at least stays the same before you submit a pull request.

Development Environment Setup
-----------------------------
Here's how to install pytest-mypy in development mode so you can test your
changes locally:

.. code-block:: bash
$ pyvenv venv
$ source venv/bin/activate
$ python setup.py develop
$ venv/bin/py.test --mypy example_test.py
How to publish a new version to PyPI
------------------------------------

.. code-block:: bash
$ pip install twine wheel
$ python setup.py sdist bdist_wheel
$ twine upload dist/*
License
-------

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

.. _`MIT`: http://opensource.org/licenses/MIT
.. _`file an issue`: https://github.com/dbader/pytest-mypy/issues
.. _`tox`: https://tox.readthedocs.io/en/latest/
.. _`pip`: https://pypi.python.org/pypi/pip/
.. _`PyPI`: https://pypi.python.org/pypi
.. _`mypy`: http://mypy-lang.org/
Expand Down
7 changes: 7 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## 0.5.0
* Remove MypyItem.mypy_path
* Add support for pytest-xdist
* Add a configurable name to MypyItem node IDs

See [the milestone](https://github.com/dbader/pytest-mypy/milestone/9) for details.

## 0.4.2
* Make success message green instead of red.
* Remove Python 3.8 beta/dev references.
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[build-system]
requires = ['setuptools ~= 41.0.1']
requires = ['setuptools ~= 43.0.0', 'setuptools-scm ~= 3.5.0', 'wheel ~= 0.33.6']
build-backend = 'setuptools.build_meta'
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def read(fname):

setup(
name='pytest-mypy',
version='0.4.2',
use_scm_version=True,
author='Daniel Bader',
author_email='mail@dbader.org',
maintainer='David Tucker',
Expand All @@ -30,6 +30,9 @@ def read(fname):
for path in glob.glob('src/*.py')
],
python_requires='~=3.4',
setup_requires=[
'setuptools-scm>=3.5',
],
install_requires=[
'filelock>=3.0',
'pytest>=3.5,<4.7; python_version<"3.5"',
Expand Down

0 comments on commit db3d6cd

Please sign in to comment.