Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc03aeb6

Browse files
committed
Merge remote-tracking branch 'upstream/main' into connect-with-mac
2 parents656db96 +58aa62b commitc03aeb6

File tree

144 files changed

+4301
-1482
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

144 files changed

+4301
-1482
lines changed

‎.editorconfig‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,6 @@ max_line_length = 80
99

1010
[*.md]
1111
trim_trailing_whitespace =false
12+
13+
[*.{yaml,yml}]
14+
indent_size =2

‎.github/CODEOWNERS‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# GitHub code owners
2+
# See https://help.github.com/articles/about-codeowners/
3+
#
4+
# KEEP THIS FILE SORTED. Order is important. Last match takes precedence.
5+
6+
*@aiordache@ulyssessouza

‎.github/workflows/ci.yml‎

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name:Python package
2+
3+
on:[push, pull_request]
4+
5+
env:
6+
DOCKER_BUILDKIT:'1'
7+
8+
jobs:
9+
flake8:
10+
runs-on:ubuntu-latest
11+
steps:
12+
-uses:actions/checkout@v3
13+
-uses:actions/setup-python@v4
14+
with:
15+
python-version:'3.x'
16+
-run:pip install -U flake8
17+
-name:Run flake8
18+
run:flake8 docker/ tests/
19+
20+
unit-tests:
21+
runs-on:ubuntu-latest
22+
strategy:
23+
matrix:
24+
python-version:["3.7", "3.8", "3.9", "3.10", "3.11.0-alpha - 3.11.0"]
25+
26+
steps:
27+
-uses:actions/checkout@v3
28+
-name:Set up Python ${{ matrix.python-version }}
29+
uses:actions/setup-python@v4
30+
with:
31+
python-version:${{ matrix.python-version }}
32+
-name:Install dependencies
33+
run:|
34+
python3 -m pip install --upgrade pip
35+
pip3 install -r test-requirements.txt -r requirements.txt
36+
-name:Run unit tests
37+
run:|
38+
docker logout
39+
rm -rf ~/.docker
40+
py.test -v --cov=docker tests/unit
41+
42+
integration-tests:
43+
runs-on:ubuntu-latest
44+
strategy:
45+
matrix:
46+
variant:[ "integration-dind", "integration-dind-ssl", "integration-dind-ssh" ]
47+
48+
steps:
49+
-uses:actions/checkout@v3
50+
-name:make ${{ matrix.variant }}
51+
run:|
52+
docker logout
53+
rm -rf ~/.docker
54+
make ${{ matrix.variant }}

‎.github/workflows/release.yml‎

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name:Release
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
tag:
7+
description:"Release Tag WITHOUT `v` Prefix (e.g. 6.0.0)"
8+
required:true
9+
dry-run:
10+
description:'Dry run'
11+
required:false
12+
type:boolean
13+
default:true
14+
15+
jobs:
16+
publish:
17+
runs-on:ubuntu-22.04
18+
steps:
19+
-uses:actions/checkout@v3
20+
21+
-uses:actions/setup-python@v4
22+
with:
23+
python-version:'3.10'
24+
25+
-name:Generate Pacakge
26+
run:|
27+
pip3 install wheel
28+
python setup.py sdist bdist_wheel
29+
env:
30+
SETUPTOOLS_SCM_PRETEND_VERSION_FOR_DOCKER:${{ inputs.tag }}
31+
32+
-name:Publish to PyPI
33+
uses:pypa/gh-action-pypi-publish@release/v1
34+
if:'! inputs.dry-run'
35+
with:
36+
password:${{ secrets.PYPI_API_TOKEN }}
37+
38+
-name:Create GitHub release
39+
uses:ncipollo/release-action@v1
40+
if:'! inputs.dry-run'
41+
with:
42+
artifacts:"dist/*"
43+
generateReleaseNotes:true
44+
draft:true
45+
commit:${{ github.sha }}
46+
token:${{ secrets.GITHUB_TOKEN }}
47+
tag:${{ inputs.tag }}

‎.gitignore‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ html/*
1313
_build/
1414
README.rst
1515

16+
# setuptools_scm
17+
_version.py
18+
1619
env/
1720
venv/
1821
.idea/
22+
*.iml

‎.readthedocs.yml‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,12 @@ version: 2
33
sphinx:
44
configuration:docs/conf.py
55

6+
build:
7+
os:ubuntu-20.04
8+
tools:
9+
python:'3.10'
10+
611
python:
7-
version:3.5
812
install:
913
-requirements:docs-requirements.txt
1014
-requirements:requirements.txt

‎.travis.yml‎

Lines changed: 0 additions & 20 deletions
This file was deleted.

‎Dockerfile‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
ARG PYTHON_VERSION=2.7
1+
ARG PYTHON_VERSION=3.10
22

33
FROM python:${PYTHON_VERSION}
44

5-
RUN mkdir /src
65
WORKDIR /src
76

87
COPY requirements.txt /src/requirements.txt
9-
RUN pip install -r requirements.txt
8+
RUN pip install --no-cache-dir -r requirements.txt
109

1110
COPY test-requirements.txt /src/test-requirements.txt
12-
RUN pip install -r test-requirements.txt
11+
RUN pip install --no-cache-dir -r test-requirements.txt
1312

14-
COPY . /src
15-
RUN pip install .
13+
COPY . .
14+
ARG SETUPTOOLS_SCM_PRETEND_VERSION_DOCKER
15+
RUN pip install --no-cache-dir .

‎Dockerfile-docs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG PYTHON_VERSION=3.7
1+
ARG PYTHON_VERSION=3.10
22

33
FROM python:${PYTHON_VERSION}
44

@@ -10,6 +10,6 @@ RUN addgroup --gid $gid sphinx \
1010

1111
WORKDIR /src
1212
COPY requirements.txt docs-requirements.txt ./
13-
RUN pip install -r requirements.txt -r docs-requirements.txt
13+
RUN pip install --no-cache-dir -r requirements.txt -r docs-requirements.txt
1414

1515
USER sphinx

‎Dockerfile-py3‎

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp