Skip to content

Commit 847b428

Browse files
committed
Initialize skel
0 parents  commit 847b428

File tree

10 files changed

+293
-0
lines changed

10 files changed

+293
-0
lines changed

.github/workflows/build.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Build
2+
on:
3+
push:
4+
branches:
5+
- master
6+
- main
7+
- tmp-*
8+
tags:
9+
- v*
10+
pull_request:
11+
12+
jobs:
13+
checkdeps:
14+
runs-on: ${{ matrix.os }}
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"]
19+
os: [macOS-latest, ubuntu-latest, windows-latest]
20+
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v1
24+
- name: Set Up Python ${{ matrix.python-version }}
25+
uses: actions/setup-python@v2
26+
with:
27+
python-version: ${{ matrix.python-version }}
28+
- name: Install
29+
run: |
30+
python -m pip install --upgrade pip
31+
make setup
32+
pip install -U .
33+
- name: Test
34+
run: make test
35+
- name: Lint
36+
run: make lint
37+
if: ${{ matrix.python-version != '3.9' }}

.gitignore

Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# C extensions
7+
*.so
8+
9+
# Distribution / packaging
10+
.Python
11+
build/
12+
develop-eggs/
13+
dist/
14+
downloads/
15+
eggs/
16+
.eggs/
17+
lib/
18+
lib64/
19+
parts/
20+
sdist/
21+
var/
22+
wheels/
23+
*.egg-info/
24+
.installed.cfg
25+
*.egg
26+
MANIFEST
27+
28+
# PyInstaller
29+
# Usually these files are written by a python script from a template
30+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
31+
*.manifest
32+
*.spec
33+
34+
# Installer logs
35+
pip-log.txt
36+
pip-delete-this-directory.txt
37+
38+
# Unit test / coverage reports
39+
htmlcov/
40+
.tox/
41+
.coverage
42+
.coverage.*
43+
.cache
44+
nosetests.xml
45+
coverage.xml
46+
*.cover
47+
.hypothesis/
48+
.pytest_cache/
49+
50+
# Translations
51+
*.mo
52+
*.pot
53+
54+
# Django stuff:
55+
*.log
56+
local_settings.py
57+
db.sqlite3
58+
59+
# Flask stuff:
60+
instance/
61+
.webassets-cache
62+
63+
# Scrapy stuff:
64+
.scrapy
65+
66+
# Sphinx documentation
67+
docs/_build/
68+
69+
# PyBuilder
70+
target/
71+
72+
# Jupyter Notebook
73+
.ipynb_checkpoints
74+
75+
# pyenv
76+
.python-version
77+
78+
# celery beat schedule file
79+
celerybeat-schedule
80+
81+
# SageMath parsed files
82+
*.sage.py
83+
84+
# Environments
85+
.env
86+
.venv
87+
env/
88+
venv/
89+
ENV/
90+
env.bak/
91+
venv.bak/
92+
93+
# Spyder project settings
94+
.spyderproject
95+
.spyproject
96+
97+
# Rope project settings
98+
.ropeproject
99+
100+
# mkdocs documentation
101+
/site
102+
103+
# mypy
104+
.mypy_cache/
105+
106+
# Visual Studio Code
107+
.vscode/

.vars.ini

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[vars]
2+
pypi_name = checkdeps
3+
short_desc = Ensures your first-order deps are correct
4+
url = https://github.com/python-packaging/checkdeps/
5+
author = Tim Hatch
6+
author_email = [email protected]
7+
package = checkdeps
8+
envdir = {envdir}
9+
year = 2022
10+
package_name = checkdeps
11+
author_website = https://timhatch.com/
12+

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2022 Tim Hatch
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

MANIFEST.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
include *.md LICENSE
2+
recursive-include checkdeps *.txt

Makefile

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
PYTHON?=python
2+
SOURCES=checkdeps setup.py
3+
4+
.PHONY: venv
5+
venv:
6+
$(PYTHON) -m venv .venv
7+
source .venv/bin/activate && make setup
8+
@echo 'run `source .venv/bin/activate` to use virtualenv'
9+
10+
# The rest of these are intended to be run within the venv, where python points
11+
# to whatever was used to set up the venv.
12+
13+
.PHONY: setup
14+
setup:
15+
python -m pip install -Ur requirements-dev.txt
16+
17+
.PHONY: test
18+
test:
19+
python -m coverage run -m checkdeps.tests $(TESTOPTS)
20+
python -m coverage report
21+
22+
.PHONY: format
23+
format:
24+
python -m ufmt format $(SOURCES)
25+
26+
.PHONY: lint
27+
lint:
28+
python -m ufmt check $(SOURCES)
29+
python -m flake8 $(SOURCES)
30+
mypy --strict checkdeps
31+
32+
.PHONY: release
33+
release:
34+
rm -rf dist
35+
python setup.py sdist bdist_wheel
36+
twine upload dist/*

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# checkdeps
2+
3+
4+
5+
# License
6+
7+
checkdeps is copyright [Tim Hatch](https://timhatch.com/), and licensed under
8+
the MIT license. I am providing code in this repository to you under an open
9+
source license. This is my personal repository; the license you receive to
10+
my code is from me and not from my employer. See the `LICENSE` file for details.

requirements-dev.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
black==22.3.0
2+
coverage==6.4.1
3+
flake8==4.0.1
4+
mypy==0.960
5+
tox==3.25.0
6+
twine==4.0.1
7+
ufmt==1.3.3
8+
usort==1.0.2
9+
volatile==2.1.0
10+
wheel==0.37.1

setup.cfg

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
[metadata]
2+
name = checkdeps
3+
description = Ensures your first-order deps are correct
4+
long_description = file: README.md
5+
long_description_content_type = text/markdown
6+
license = MIT
7+
url = https://github.com/python-packaging/checkdeps/
8+
author = Tim Hatch
9+
author_email = [email protected]
10+
11+
[options]
12+
packages = checkdeps
13+
setup_requires =
14+
setuptools_scm
15+
setuptools >= 38.3.0
16+
python_requires = >=3.6
17+
18+
[check]
19+
metadata = true
20+
strict = true
21+
22+
[coverage:run]
23+
branch = True
24+
include = checkdeps/*
25+
omit = checkdeps/tests/*
26+
27+
[coverage:report]
28+
fail_under = 70
29+
precision = 1
30+
show_missing = True
31+
skip_covered = True
32+
33+
[isort]
34+
line_length = 88
35+
multi_line_output = 3
36+
force_grid_wrap = False
37+
include_trailing_comma = True
38+
use_parentheses = True
39+
40+
[mypy]
41+
ignore_missing_imports = True
42+
43+
[tox:tox]
44+
envlist = py36, py37, py38
45+
46+
[testenv]
47+
deps = -rrequirements-dev.txt
48+
whitelist_externals = make
49+
commands =
50+
make test
51+
setenv =
52+
py{36,37,38}: COVERAGE_FILE={envdir}/.coverage
53+
54+
[flake8]
55+
ignore = E203, E231, E266, E302, E501, W503
56+
max-line-length = 88

setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
from setuptools import setup
2+
setup(use_scm_version=True)

0 commit comments

Comments
 (0)