Skip to content

Commit

Permalink
release
Browse files Browse the repository at this point in the history
  • Loading branch information
aogier committed Feb 25, 2020
1 parent b558109 commit 5b1d156
Show file tree
Hide file tree
Showing 6 changed files with 84 additions and 5 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# CHACHACHA

Chachacha changes changelogs.
5 changes: 5 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
click==7.0
jinja2==2.11.1
keepachangelog==0.2.0
markupsafe==1.1.1
semver==2.9.1
6 changes: 3 additions & 3 deletions scripts/lint
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions scripts/test
Original file line number Diff line number Diff line change
Expand Up @@ -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
58 changes: 58 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -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="[email protected]",
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,
)

0 comments on commit 5b1d156

Please sign in to comment.