Added Pipfile, makefile, pre-commit file and other files.

This commit is contained in:
Franco Masotti 2021-10-16 22:24:33 +02:00
parent 3f73e3c744
commit 1bd59ce069
Signed by: frnmst
GPG Key ID: 24116ED85666780A
7 changed files with 122 additions and 1 deletions

9
.allowed_licenses.yml Normal file
View File

@ -0,0 +1,9 @@
allowed licenses: []
files to check:
- Pipfile
language: python
include:
- https://codeberg.org/frnmst/licheck/raw/branch/master/examples/python_gpl_compatible.yml

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
Pipfile.lock

28
.pre-commit-config.yaml Normal file
View File

@ -0,0 +1,28 @@
# Do not deal with submodules.
files: '(README.md|0000_add_submodules.sh|configuration.yaml|Makefile)'
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- id: destroyed-symlinks
- id: detect-private-key
- id: check-ast
- id: check-case-conflict
- id: debug-statements
- repo: https://codeberg.org/frnmst/md-toc
rev: '8.0.1' # or a specific git tag from md-toc
hooks:
- id: md-toc
args: [-p, 'github', '-l6'] # CLI options
- repo: https://codeberg.org/frnmst/licheck
rev: 0.0.3
hooks:
- id: licheck
args: ['--configuration-file', '.allowed_licenses.yml']

30
Makefile Normal file
View File

@ -0,0 +1,30 @@
#!/usr/bin/env make
#
# Makefile
#
# Copyright (C) 2021 Franco Masotti <franco.masotti@tutanota.com>
#
# This file is part of python-packages-source.
#
# python-packages-source is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# python-packages-source is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with python-packages-source. If not, see <http://www.gnu.org/licenses/>.
#
install-dev:
pipenv install --dev
pipenv run pre-commit install
uninstall-dev:
pipenv --rm
.PHONY: install-dev uninstall-dev

12
Pipfile Normal file
View File

@ -0,0 +1,12 @@
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"
[packages]
[dev-packages]
pre-commit = '>=2,<3'
[requires]
python_version = "*"

View File

@ -1,7 +1,27 @@
# PyPI packages source
This is a meta-repository which contains pointers (git submodules)
used to build Python 3 packages.
used to build Python 3 packages.
## Table of contents
<!--TOC-->
- [PyPI packages source](#pypi-packages-source)
- [Table of contents](#table-of-contents)
- [Script](#script)
- [Submodules](#submodules)
- [Clone](#clone)
- [Update](#update)
- [Add repositories](#add-repositories)
- [Configuration](#configuration)
- [PIP](#pip)
- [Pipenv](#pipenv)
- [shell](#shell)
- [Pipfile](#pipfile)
- [Environment variable](#environment-variable)
<!--TOC-->
## Script

View File

@ -1,5 +1,26 @@
%YAML 1.2
---
#
# configuration.yaml
#
# Copyright (C) 2021 Franco Masotti <franco.masotti@tutanota.com>
#
# This file is part of python-packages-source.
#
# python-packages-source is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# python-packages-source is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with python-packages-source. If not, see <http://www.gnu.org/licenses/>.
#
repository:
submodules:
base directory override: