Janitoring

This commit is contained in:
Hynek Schlawack 2015-12-19 13:04:01 +01:00
parent 8b172c5988
commit 1f66134c0e
8 changed files with 41 additions and 26 deletions

View File

@ -28,13 +28,15 @@ matrix:
env: TOXENV=manifest env: TOXENV=manifest
- python: "2.7" - python: "2.7"
env: TOXENV=docs env: TOXENV=docs
- python: "3.5"
env: TOXENV=readme
install: install:
- pip install tox - pip install tox
script: script:
- tox --hashseed 0 - tox
before_install: before_install:
- pip install codecov - pip install codecov

11
AUTHORS.rst Normal file
View File

@ -0,0 +1,11 @@
Credits
=======
``attrs`` is written and maintained by `Hynek Schlawack <https://hynek.me/>`_.
The development is kindly supported by `Variomedia AG <https://www.variomedia.de/>`_.
A full list of contributors can be found in `GitHub's overview <https://github.com/hynek/attrs/graphs/contributors>`_.
Its the spiritual successor of `characteristic <https://characteristic.readthedocs.org/>`_ and aspires to fix some of it clunkiness and unfortunate decisions.
Both were inspired by Twisteds `FancyEqMixin <https://twistedmatrix.com/documents/current/api/twisted.python.util.FancyEqMixin.html>`_ but both are implemented using class decorators because `sub-classing is bad for you <https://www.youtube.com/watch?v=3MNVP9-hglc>`_, mkay?

View File

@ -2,6 +2,10 @@
attrs: Attributes without boilerplate. attrs: Attributes without boilerplate.
====================================== ======================================
.. image:: https://readthedocs.org/projects/attrs/badge/?version=stable
:target: http://attrs.readthedocs.org/en/stable/?badge=stable
:alt: Documentation Status
.. image:: https://travis-ci.org/hynek/attrs.svg .. image:: https://travis-ci.org/hynek/attrs.svg
:target: https://travis-ci.org/hynek/attrs :target: https://travis-ci.org/hynek/attrs
:alt: CI status :alt: CI status
@ -51,9 +55,5 @@ This gives you the power to use actual classes with actual types in your code in
So put down that type-less data structures and welcome some class into your life! So put down that type-less data structures and welcome some class into your life!
.. note::
I wrote an `explanation <https://attrs.readthedocs.org/en/latest/why.html#characteristic>`_ on why I forked my own ``characteristic``.
It's not dead but ``attrs`` will have more new features.
``attrs``\ s documentation lives at `Read the Docs <https://attrs.readthedocs.org/>`_, the code on `GitHub <https://github.com/hynek/attrs>`_. ``attrs``\ s documentation lives at `Read the Docs <https://attrs.readthedocs.org/>`_, the code on `GitHub <https://github.com/hynek/attrs>`_.
Its rigorously tested on Python 2.6, 2.7, 3.3+, and PyPy. Its rigorously tested on Python 2.6, 2.7, 3.3+, and PyPy.

3
dev-requirements.txt Normal file
View File

@ -0,0 +1,3 @@
coverage
pytest
zope.interface

View File

@ -1,3 +1,5 @@
.. _contributing: .. _contributing:
.. include:: ../CONTRIBUTING.rst .. include:: ../CONTRIBUTING.rst
.. include:: ../CODE_OF_CONDUCT.rst

View File

@ -1,18 +1,8 @@
License and Hall of Fame ===================
======================== License and Credits
===================
``attrs`` is licensed under the `MIT <http://choosealicense.com/licenses/mit/>`_ license. ``attrs`` is licensed under the `MIT <http://choosealicense.com/licenses/mit/>`_ license.
The full license text can be also found in the `source code repository <https://github.com/hynek/attrs/blob/master/LICENSE>`_. The full license text can be also found in the `source code repository <https://github.com/hynek/attrs/blob/master/LICENSE>`_.
.. include:: ../AUTHORS.rst
Authors
-------
``attrs`` is written and maintained by `Hynek Schlawack <https://hynek.me/>`_.
The development is kindly supported by `Variomedia AG <https://www.variomedia.de/>`_.
A full list of contributors can be found in `GitHub's overview <https://github.com/hynek/attrs/graphs/contributors>`_.
Its the spiritual successor of `characteristic <https://characteristic.readthedocs.org/>`_ and aspires to fix some of it clunkiness and unfortunate decisions.
Both were inspired by Twisteds `FancyEqMixin <https://twistedmatrix.com/documents/current/api/twisted.python.util.FancyEqMixin.html>`_ but both are implemented using class decorators because `sub-classing is bad for you <https://www.youtube.com/watch?v=3MNVP9-hglc>`_, mkay?

View File

@ -73,7 +73,11 @@ if __name__ == "__main__":
maintainer=find_meta("author"), maintainer=find_meta("author"),
maintainer_email=find_meta("email"), maintainer_email=find_meta("email"),
keywords=KEYWORDS, keywords=KEYWORDS,
long_description=read("README.rst") + "\n\n" + read("CHANGELOG.rst"), long_description=(
read("README.rst") + "\n\n" +
read("AUTHORS.rst") + "\n\n" +
read("CHANGELOG.rst")
),
packages=PACKAGES, packages=PACKAGES,
package_dir={"": "src"}, package_dir={"": "src"},
zip_safe=False, zip_safe=False,

15
tox.ini
View File

@ -1,13 +1,10 @@
[tox] [tox]
envlist = coverage-clean,py26,py27,py33,py34,py35,pypy,flake8,manifest,docs,coverage-report envlist = coverage-clean,py26,py27,py33,py34,py35,pypy,flake8,manifest,docs,readme,coverage-report
[testenv] [testenv]
passenv = TERM # ensure colors passenv = TERM # ensure colors
deps = deps = -rdev-requirements.txt
coverage
pytest
zope.interface
commands = coverage run --parallel -m pytest {posargs} commands = coverage run --parallel -m pytest {posargs}
@ -23,7 +20,7 @@ setenv =
PYTHONHASHSEED = 0 PYTHONHASHSEED = 0
deps = deps =
sphinx sphinx
zope.interface zope.interface # for doctests
commands = commands =
sphinx-build -W -b html -d {envtmpdir}/doctrees docs docs/_build/html sphinx-build -W -b html -d {envtmpdir}/doctrees docs docs/_build/html
sphinx-build -W -b doctest -d {envtmpdir}/doctrees docs docs/_build/html sphinx-build -W -b doctest -d {envtmpdir}/doctrees docs docs/_build/html
@ -36,6 +33,12 @@ skip_install = true
commands = check-manifest commands = check-manifest
[testenv:readme]
deps = readme
skip_install = true
commands = python setup.py check -r -s
[testenv:coverage-clean] [testenv:coverage-clean]
deps = coverage deps = coverage
skip_install = true skip_install = true