Skip to content

Commit

Permalink
Add gitchart module, fix setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
flashcode committed Nov 24, 2021
1 parent 294e353 commit 711f032
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 6 deletions.
4 changes: 4 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Gitchart ChangeLog

## Version 2.0.1 (under dev)

- Add `gitchart` module.

## Version 2.0.0 (2021-11-24)

- Drop Python 2 support, Python 3.6 is now required.
Expand Down
23 changes: 23 additions & 0 deletions gitchart/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/usr/bin/env python3
#
# Copyright (C) 2013-2021 Sébastien Helleu <[email protected]>
#
# This file is part of Gitchart.
#
# Gitchart 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.
#
# Gitchart 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 Gitchart. If not, see <https://www.gnu.org/licenses/>.
#

"""Generate statistic charts on Git repositories."""

from gitchart.gitchart import * # noqa
9 changes: 7 additions & 2 deletions gitchart.py → gitchart/gitchart.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,12 @@

import pygal

VERSION = '2.0.0'
__version__ = '2.0.1-dev'

__all__ = (
'__version__',
'main',
)

ISSUES_REGEX_DEFAULT = re.compile(
r'(?:close|closes|closed|fix|fixes|fixed|resolve|resolves|resolved)'
Expand Down Expand Up @@ -511,7 +516,7 @@ def main():
parser.add_argument(
'-v', '--version',
action='version',
version=VERSION)
version=__version__)
if len(sys.argv) == 1:
parser.print_help()
sys.exit(1)
Expand Down
11 changes: 7 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
#

from codecs import open
from setuptools import setup
from setuptools import setup, find_packages
from gitchart import __version__ as gitchart_version

DESCRIPTION = 'Generate statistic charts on Git repositories.'

Expand All @@ -28,7 +29,7 @@

setup(
name='gitchart',
version='2.0.0',
version=gitchart_version,
description=DESCRIPTION,
long_description=readme,
long_description_content_type='text/markdown',
Expand All @@ -49,8 +50,10 @@
'Programming Language :: Python :: 3',
'Topic :: Software Development :: Version Control',
],
packages=['.'],
install_requires=['pygal'],
packages=find_packages(),
install_requires=[
'pygal',
],
entry_points={
'console_scripts': ['gitchart=gitchart:main'],
}
Expand Down

0 comments on commit 711f032

Please sign in to comment.