Skip to content

Commit

Permalink
Add Aiven copyright and test
Browse files Browse the repository at this point in the history
  • Loading branch information
facetoe committed Apr 26, 2020
1 parent 78332e4 commit 1df8279
Show file tree
Hide file tree
Showing 10 changed files with 24 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,13 @@ build-dep-fed:
python3-boto3 \
python3-lxml

test:
# TODO: add tests
test: copyright

.PHONY: copyright
copyright:
$(eval MISSING_COPYRIGHT := $(shell git ls-files "*.py" | xargs grep -EL "Copyright \(c\) 20.* Aiven|Aiven license OK"))
@if [ "$(MISSING_COPYRIGHT)" != "" ]; then echo Missing Copyright statement in files: $(MISSING_COPYRIGHT) ; false; fi


unittest: $(generated)
$(PYTHON) -m pytest $(PYTEST_ARG) test/
Expand Down
1 change: 1 addition & 0 deletions rpm_s3_mirror/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Copyright (c) 2020 Aiven, Helsinki, Finland. https://aiven.io/
2 changes: 2 additions & 0 deletions rpm_s3_mirror/__main__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) 2020 Aiven, Helsinki, Finland. https://aiven.io/

import argparse
import logging

Expand Down
2 changes: 2 additions & 0 deletions rpm_s3_mirror/config.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) 2020 Aiven, Helsinki, Finland. https://aiven.io/

import json
import os
from abc import abstractmethod
Expand Down
2 changes: 2 additions & 0 deletions rpm_s3_mirror/mirror.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) 2020 Aiven, Helsinki, Finland. https://aiven.io/

import logging
import time
from collections import namedtuple
Expand Down
2 changes: 2 additions & 0 deletions rpm_s3_mirror/repository.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) 2020 Aiven, Helsinki, Finland. https://aiven.io/

from collections import namedtuple
from datetime import datetime
from typing import Iterator, Dict
Expand Down
2 changes: 2 additions & 0 deletions rpm_s3_mirror/s3.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) 2020 Aiven, Helsinki, Finland. https://aiven.io/

import base64
import functools
import hashlib
Expand Down
2 changes: 2 additions & 0 deletions rpm_s3_mirror/statsd.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) 2020 Aiven, Helsinki, Finland. https://aiven.io/

"""
StatsD client
Expand Down
2 changes: 2 additions & 0 deletions rpm_s3_mirror/util.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) 2020 Aiven, Helsinki, Finland. https://aiven.io/

import datetime
import hashlib

Expand Down
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright (c) 2020 Aiven, Helsinki, Finland. https://aiven.io/

from setuptools import setup
import setuptools

Expand Down

0 comments on commit 1df8279

Please sign in to comment.