forked from pypa/setuptools
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Collapse skeleton history from archive/2020-12
- Loading branch information
0 parents
commit c681f67
Showing
18 changed files
with
433 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[run] | ||
omit = .tox/* | ||
|
||
[report] | ||
show_missing = True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[flake8] | ||
max-line-length = 88 | ||
ignore = | ||
# W503 violates spec https://github.com/PyCQA/pycodestyle/issues/513 | ||
W503 | ||
# W504 has issues https://github.com/OCA/maintainer-quality-tools/issues/545 | ||
W504 | ||
# Black creates whitespace before colon | ||
E203 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Automated Tests | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
test: | ||
strategy: | ||
matrix: | ||
python: [3.6, 3.8, 3.9] | ||
platform: [ubuntu-latest, macos-latest, windows-latest] | ||
runs-on: ${{ matrix.platform }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
- name: Install tox | ||
run: | | ||
python -m pip install tox | ||
- name: Run tests | ||
run: tox | ||
|
||
release: | ||
needs: test | ||
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.9 | ||
- name: Install tox | ||
run: | | ||
python -m pip install tox | ||
- name: Release | ||
run: tox -e release | ||
env: | ||
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
repos: | ||
- repo: https://github.com/psf/black | ||
rev: stable | ||
hooks: | ||
- id: black | ||
|
||
- repo: https://github.com/asottile/blacken-docs | ||
rev: v1.8.0 | ||
hooks: | ||
- id: blacken-docs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
version: 2 | ||
python: | ||
install: | ||
- path: . | ||
extra_requirements: | ||
- docs |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
Copyright Jason R. Coombs | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to | ||
deal in the Software without restriction, including without limitation the | ||
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or | ||
sell copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in | ||
all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | ||
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS | ||
IN THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
.. image:: https://img.shields.io/pypi/v/skeleton.svg | ||
:target: `PyPI link`_ | ||
|
||
.. image:: https://img.shields.io/pypi/pyversions/skeleton.svg | ||
:target: `PyPI link`_ | ||
|
||
.. _PyPI link: https://pypi.org/project/skeleton | ||
|
||
.. image:: https://github.com/jaraco/skeleton/workflows/Automated%20Tests/badge.svg | ||
:target: https://github.com/jaraco/skeleton/actions?query=workflow%3A%22Automated+Tests%22 | ||
:alt: Automated Tests | ||
|
||
.. image:: https://img.shields.io/badge/code%20style-black-000000.svg | ||
:target: https://github.com/psf/black | ||
:alt: Code style: Black | ||
|
||
.. .. image:: https://readthedocs.org/projects/skeleton/badge/?version=latest | ||
.. :target: https://skeleton.readthedocs.io/en/latest/?badge=latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/usr/bin/env python3 | ||
# -*- coding: utf-8 -*- | ||
|
||
extensions = ['sphinx.ext.autodoc', 'jaraco.packaging.sphinx', 'rst.linker'] | ||
|
||
master_doc = "index" | ||
|
||
link_files = { | ||
'../CHANGES.rst': dict( | ||
using=dict(GH='https://github.com'), | ||
replace=[ | ||
dict( | ||
pattern=r'(Issue #|\B#)(?P<issue>\d+)', | ||
url='{package_url}/issues/{issue}', | ||
), | ||
dict( | ||
pattern=r'(?m:^((?P<scm_version>v?\d+(\.\d+){1,2}))\n[-=]+\n)', | ||
with_scm='{text}\n{rev[timestamp]:%d %b %Y}\n', | ||
), | ||
dict( | ||
pattern=r'PEP[- ](?P<pep_number>\d+)', | ||
url='https://www.python.org/dev/peps/pep-{pep_number:0>4}/', | ||
), | ||
], | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
:tocdepth: 2 | ||
|
||
.. _changes: | ||
|
||
History | ||
******* | ||
|
||
.. include:: ../CHANGES (links).rst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
Welcome to skeleton documentation! | ||
======================================== | ||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
|
||
history | ||
|
||
|
||
.. automodule:: skeleton | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
|
||
Indices and tables | ||
================== | ||
|
||
* :ref:`genindex` | ||
* :ref:`modindex` | ||
* :ref:`search` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[mypy] | ||
ignore_missing_imports = True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
[build-system] | ||
requires = ["setuptools>=42", "wheel", "setuptools_scm[toml]>=3.4.1"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[tool.black] | ||
skip-string-normalization = true | ||
|
||
[tool.setuptools_scm] | ||
|
||
# jaraco/skeleton#22 | ||
[tool.jaraco.pytest.plugins.black] | ||
addopts = "--black" | ||
|
||
# jaraco/skeleton#22 | ||
[tool.jaraco.pytest.plugins.mypy] | ||
addopts = "--mypy" | ||
|
||
[tool.jaraco.pytest.plugins.flake8] | ||
addopts = "--flake8" | ||
|
||
[tool.jaraco.pytest.plugins.cov] | ||
addopts = "--cov" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[pytest] | ||
norecursedirs=dist build .tox .eggs | ||
addopts=--doctest-modules | ||
doctest_optionflags=ALLOW_UNICODE ELLIPSIS | ||
# workaround for warning pytest-dev/pytest#6178 | ||
junit_family=xunit2 | ||
filterwarnings= | ||
# https://github.com/pytest-dev/pytest/issues/6928 | ||
ignore:direct construction of .*Item has been deprecated:DeprecationWarning |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
[metadata] | ||
license_file = LICENSE | ||
name = skeleton | ||
author = Jason R. Coombs | ||
author_email = [email protected] | ||
description = skeleton | ||
long_description = file:README.rst | ||
url = https://github.com/jaraco/skeleton | ||
classifiers = | ||
Development Status :: 5 - Production/Stable | ||
Intended Audience :: Developers | ||
License :: OSI Approved :: MIT License | ||
Programming Language :: Python :: 3 | ||
Programming Language :: Python :: 3 :: Only | ||
|
||
[options] | ||
packages = find: | ||
include_package_data = true | ||
python_requires = >=3.6 | ||
install_requires = | ||
setup_requires = setuptools_scm[toml] >= 3.4.1 | ||
|
||
[options.extras_require] | ||
testing = | ||
# upstream | ||
pytest >= 3.5, !=3.7.3 | ||
pytest-checkdocs >= 1.2.3 | ||
pytest-flake8 | ||
pytest-black >= 0.3.7; python_implementation != "PyPy" | ||
pytest-cov | ||
pytest-mypy; python_implementation != "PyPy" | ||
# jaraco/skeleton#22 | ||
jaraco.test >= 3.2.0 | ||
|
||
# local | ||
|
||
docs = | ||
# upstream | ||
sphinx | ||
jaraco.packaging >= 3.2 | ||
rst.linker >= 1.9 | ||
|
||
# local | ||
|
||
[options.entry_points] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/usr/bin/env python | ||
|
||
import setuptools | ||
|
||
if __name__ == "__main__": | ||
setuptools.setup() |
Oops, something went wrong.