Skip to content

Commit

Permalink
Prepare 0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
barseghyanartur committed Nov 17, 2019
1 parent 23128e6 commit 7b2749c
Show file tree
Hide file tree
Showing 9 changed files with 114 additions and 75 deletions.
27 changes: 27 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
dist: xenial

language: python

matrix:
fast_finish: true
include:
- env: TOX_ENV=py36
python: 3.6
- env: TOX_ENV=py36
python: 3.6
- env: TOX_ENV=py37
python: 3.7
- env: TOX_ENV=py38
python: 3.8
- env: TOX_ENV=pypy
python: pypy
install: pip install -r requirements/testing.txt

before_script:
- sleep 10

script: tox -e $TOX_ENV

after_success:
- pip install coveralls
- coveralls
22 changes: 15 additions & 7 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,27 @@ are used for versioning (schema follows below):
0.3.4 to 0.4).
- All backwards incompatible changes are mentioned in this document.

0.3
0.1
---
2019-11-17
2019-11-18

.. note::

Release dedicated to my mother, who turned 70 yesterday.

- Status changed to beta.
- Minor fixes.
- Add `matyan-create-config` command.
- Add initial tests.

0.2
---
0.0.2
-----
2019-11-17

0.1
---
- Minor fixes.

0.0.1
-----
2019-11-17

- Initial release.
- Initial alpha release.
22 changes: 15 additions & 7 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,27 @@ are used for versioning (schema follows below):
0.3.4 to 0.4).
- All backwards incompatible changes are mentioned in this document.

0.3
0.1
---
2019-11-17
2019-11-18

.. note::

Release dedicated to my mother, who turned 70 yesterday.

- Status changed to beta.
- Minor fixes.
- Add `matyan-create-config` command.
- Add initial tests.

0.2
---
0.0.2
-----
2019-11-17

0.1
---
- Minor fixes.

0.0.1
-----
2019-11-17

- Initial release.
- Initial alpha release.
5 changes: 1 addition & 4 deletions requirements/base.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
-r code_style.txt
-r debug.txt
-r test.txt

GitPython>=3.0.0
1 change: 1 addition & 0 deletions requirements/testing.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
-r base.txt
-r code_style.txt
-r test.txt
9 changes: 5 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
except:
readme = ''

version = '0.0.2'
version = '0.1'

setup(
name='matyan',
Expand All @@ -22,13 +22,13 @@
"Environment :: Web Environment",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Development Status :: 3 - Alpha",
"Development Status :: 4 - Beta",
"Topic :: Internet",
"License :: OSI Approved :: GNU General Public License v2 (GPLv2)",
"License :: OSI Approved :: GNU Lesser General Public License v2 or "
"later (LGPLv2+)",
],
keywords='Changelog, Git, feature branches, gitflow, JIRA, agile, python',
keywords='Changelog, logbook, Git, feature branches, gitflow, JIRA, agile',
author='Artur Barseghyan',
author_email='artur.barseghyan@gmail.com',
url='https://github.com/barseghyanartur/matyan',
Expand All @@ -39,10 +39,11 @@
# Standard
'json-changelog = matyan.utils:json_changelog_cli',
'generate-changelog = matyan.utils:generate_changelog_cli',
# Specific
'matyan-create-config = matyan.utils:create_config_file_cli',
# Backups
'matyan-json-changelog = matyan.utils:json_changelog_cli',
'matyan-generate-changelog = matyan.utils:generate_changelog_cli',
'matyan-create-config = matyan.utils:create_config_file_cli',
]
},
include_package_data=True,
Expand Down
1 change: 0 additions & 1 deletion src/matyan/tests/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import logging
import socket

__title__ = 'matyan.tests.base'
__author__ = 'Artur Barseghyan'
__copyright__ = '2019 Artur Barseghyan'
__license__ = 'GPL-2.0-only OR LGPL-2.0-or-later'
Expand Down
3 changes: 1 addition & 2 deletions src/matyan/tests/test_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@
from ..helpers import project_dir
from .base import log_info, internet_available_only, is_internet_available

__title__ = 'matyan.tests.test_commands'
__author__ = 'Artur Barseghyan'
__copyright__ = '2013-2019 Artur Barseghyan'
__copyright__ = '2019 Artur Barseghyan'
__license__ = 'GPL 2.0/LGPL 2.1'
__all__ = ('TestCommands',)

Expand Down
99 changes: 49 additions & 50 deletions src/matyan/tests/test_core.py
Original file line number Diff line number Diff line change
@@ -1,50 +1,49 @@
# -*- coding: utf-8 -*-

import copy
import logging
import os
import unittest

from ..utils import (
create_config_file,
generate_changelog_cli,
generate_empty_tree,
get_branch_type,
get_logs,
json_changelog_cli,
prepare_changelog,
prepare_releases_changelog,
validate_between,
)

from .base import internet_available_only, log_info

__title__ = 'matyan.tests.test_core'
__author__ = 'Artur Barseghyan'
__copyright__ = '2019 Artur Barseghyan'
__license__ = 'GPL-2.0-only OR LGPL-2.0-or-later'
__all__ = ('TestCore',)

LOGGER = logging.getLogger(__name__)


class TestCore(unittest.TestCase):
"""Core matyan functionality tests."""

def setUp(self):
"""Set up."""
# TODO

def tearDown(self):
"""Tear down."""
# TODO

@internet_available_only
@log_info
def test_01_generate_changelog_command(self):
"""Test generate changelog."""
# TODO


if __name__ == '__main__':
unittest.main()
# # -*- coding: utf-8 -*-
#
# import copy
# import logging
# import os
# import unittest
#
# from ..utils import (
# create_config_file,
# generate_changelog_cli,
# generate_empty_tree,
# get_branch_type,
# get_logs,
# json_changelog_cli,
# prepare_changelog,
# prepare_releases_changelog,
# validate_between,
# )
#
# from .base import internet_available_only, log_info
#
# __author__ = 'Artur Barseghyan'
# __copyright__ = '2019 Artur Barseghyan'
# __license__ = 'GPL-2.0-only OR LGPL-2.0-or-later'
# __all__ = ('TestCore',)
#
# LOGGER = logging.getLogger(__name__)
#
#
# class TestCore(unittest.TestCase):
# """Core matyan functionality tests."""
#
# def setUp(self):
# """Set up."""
# # TODO
#
# def tearDown(self):
# """Tear down."""
# # TODO
#
# @internet_available_only
# @log_info
# def test_01_generate_changelog_command(self):
# """Test generate changelog."""
# # TODO
#
#
# if __name__ == '__main__':
# unittest.main()

0 comments on commit 7b2749c

Please sign in to comment.