Skip to content

Commit

Permalink
Add authorship information
Browse files Browse the repository at this point in the history
  • Loading branch information
thombashi committed Mar 21, 2018
1 parent 1f0c8be commit 3587c5f
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 5 deletions.
16 changes: 11 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,16 @@
import setuptools


MODULE_NAME = "typepy"
REQUIREMENT_DIR = "requirements"
ENCODING = "utf8"

pkg_info = {}


with open(os.path.join(MODULE_NAME, "__version__.py")) as f:
exec(f.read(), pkg_info)

with io.open("README.rst", encoding=ENCODING) as f:
long_description = f.read()

Expand All @@ -33,24 +40,23 @@
with open(os.path.join(REQUIREMENT_DIR, "docs_requirements.txt")) as f:
docs_requires = [line.strip() for line in f if line.strip()]

MODULE_NAME = "typepy"
setuptools_require = ["setuptools>=20.2.2"]
needs_pytest = set(["pytest", "test", "ptr"]).intersection(sys.argv)
pytest_runner_require = ["pytest-runner"] if needs_pytest else []

setuptools.setup(
name=MODULE_NAME,
version="0.0.21",
version=pkg_info["__version__"],
url="https://github.com/thombashi/{:s}".format(MODULE_NAME),

author="Tsuyoshi Hombashi",
author_email="tsuyoshi.hombashi@gmail.com",
author=pkg_info["__author__"],
author_email=pkg_info["__email__"],
description=summary,
include_package_data=True,
keywords=[
"library", "type-checking", "type-conversion", "validator",
],
license="MIT License",
license=pkg_info["__license__"],
long_description=long_description,
packages=setuptools.find_packages(exclude=["test*"]),

Expand Down
1 change: 1 addition & 0 deletions typepy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

import typepy.type

from .__version__ import __author__, __copyright__, __email__, __license__, __version__
from ._const import StrictLevel
from ._error import TypeConversionError
from ._function import (
Expand Down
11 changes: 11 additions & 0 deletions typepy/__version__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# encoding: utf-8

from datetime import datetime


__author__ = "Tsuyoshi Hombashi"
__copyright__ = "Copyright {}, {}".format(datetime.now().year, __author__)
__license__ = "MIT License"
__version__ = "0.0.21"
__maintainer__ = __author__
__email__ = "tsuyoshi.hombashi@gmail.com"

0 comments on commit 3587c5f

Please sign in to comment.