Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

About file #108

Merged
merged 3 commits into from
Feb 26, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
branch = False
omit =
src/trendlines/__init__.py
src/trendlines/__about__.py
src/trendlines/_logging.py
src/trendlines/default_config.py
24 changes: 18 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@
from pathlib import Path
from setuptools import setup, find_packages


# Read the `__about__.py` file. This is how `cryptography` does it. Seems
# like a decent way, but I don't really like the `exec()`. /shrug.
about = {}
about_file = Path.cwd() / "src" / "trendlines" / "__about__.py"
with open(str(about_file)) as openf:
exec(openf.read(), about)

long_descr = Path("./README.md").read_text()

requires = [
Expand All @@ -10,17 +18,21 @@
]

setup(
name="trendlines",
version="0.3.0",
description="Lightweight time-series recording.",
name=about["__package_name__"],
version=about['__version__'],

description=about['__description__'],
long_description=long_descr,
long_description_content_type="text/markdown",
url="https://github.com/dougthor42/trendlines",
author="Douglas Thor",
author_email="doug.thor@gmail.com",
url=about['__project_url__'],

author=about['__author__'],
author_email=about['__email__'],

package_dir={'': 'src'},
packages=find_packages(where='src'),
include_package_data=False,

python_requires=">=3.5",
install_requires=requires,
)
14 changes: 14 additions & 0 deletions src/trendlines/__about__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# -*- coding: utf-8 -*-
__author__ = "Douglas Thor"
__email__ = "doug.thor@gmail.com"
__license__ = "GNU General Public License v3 (GPLv3)"
__created__ = "2018-12-19"

__version__ = "0.4.0"
__released__ = "2019-02-26"

__project_name__ = "Trendlines"
__package_name__ = "trendlines"

__project_url__ = "https://github.com/dougthor42/trendlines"
__description__ = "Lightweight time-series recording."