diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..322cd20 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,13 @@ +# Changelog +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [0.1.0] - 2020-02-25 + +### Added + +- first version +- tests +- a changelog :D diff --git a/README.md b/README.md new file mode 100644 index 0000000..c901ad3 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# CHACHACHA + +Chachacha changes changelogs. \ No newline at end of file diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..a271862 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,5 @@ +click==7.0 +jinja2==2.11.1 +keepachangelog==0.2.0 +markupsafe==1.1.1 +semver==2.9.1 diff --git a/scripts/lint b/scripts/lint index d940d94..8c36e32 100755 --- a/scripts/lint +++ b/scripts/lint @@ -7,7 +7,7 @@ fi set -x -${PREFIX}autoflake --in-place --recursive chachacha tests -${PREFIX}black chachacha tests -${PREFIX}isort --multi-line=3 --trailing-comma --force-grid-wrap=0 --combine-as --line-width 88 --recursive --apply chachacha tests +${PREFIX}autoflake --in-place --recursive chachacha tests setup.py +${PREFIX}black chachacha tests setup.py +${PREFIX}isort --multi-line=3 --trailing-comma --force-grid-wrap=0 --combine-as --line-width 88 --recursive --apply chachacha tests setup.py #${PREFIX}mypy chachacha --ignore-missing-imports --disallow-untyped-defs diff --git a/scripts/test b/scripts/test index e1c4506..9e91b78 100755 --- a/scripts/test +++ b/scripts/test @@ -12,5 +12,5 @@ set -x PYTHONPATH=. ${PREFIX}pytest --ignore venv -W ignore::DeprecationWarning --cov=chachacha --cov=tests --cov-fail-under=100 --cov-report=term-missing ${@} #${PREFIX}mypy chachacha --ignore-missing-imports --disallow-untyped-defs -${PREFIX}autoflake --recursive chachacha tests -${PREFIX}black chachacha tests --check +${PREFIX}autoflake --recursive chachacha tests setup.py +${PREFIX}black chachacha tests setup.py --check diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..5316212 --- /dev/null +++ b/setup.py @@ -0,0 +1,58 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- + +import os + +import poetry_version +from setuptools import setup + +with open("requirements.txt") as f: + REQUIRES = f.readlines() + + +def get_long_description(): + """ + Return the README. + """ + with open("README.md", encoding="utf8") as f: + return f.read() + + +def get_packages(package): + """ + Return root package and all sub-packages. + """ + return [ + dirpath + for dirpath, dirnames, filenames in os.walk(package) + if os.path.exists(os.path.join(dirpath, "__init__.py")) + ] + + +setup( + name="chachacha", + python_requires=">=3.6", + version=poetry_version.extract(source_file=__file__), + url="https://github.com/aogier/chachacha", + license="BSD", + description="Chachacha changes changelogs.", + long_description=get_long_description(), + long_description_content_type="text/markdown", + author="Alessandro Ogier", + author_email="alessandro.ogier@gmail.com", + packages=get_packages("chachacha"), + install_requires=REQUIRES, + classifiers=[ + "Development Status :: 3 - Alpha", + "Environment :: Web Environment", + "Intended Audience :: Developers", + "License :: OSI Approved :: BSD License", + "Operating System :: OS Independent", + "Topic :: Internet :: WWW/HTTP", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.6", + "Programming Language :: Python :: 3.7", + ], + entry_points={"console_scripts": ["chachacha=chachacha.main:main",]}, + zip_safe=False, +)