Skip to content

Commit c9bbcf2

Browse files
committed
Initialize from cookiecutter
1 parent f37cd9c commit c9bbcf2

4 files changed

Lines changed: 90 additions & 0 deletions

File tree

.travis.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
language: python
2+
python:
3+
- '3.6'
4+
5+
# Whitelist of branches to build
6+
branches:
7+
only:
8+
- master
9+
10+
# Avoid email notifications on every build
11+
notifications:
12+
email: false
13+
14+
# Installation command
15+
install: python setup.py install
16+
17+
# Run pytest
18+
script: python -m pytest -v

emacs/__init__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
"""Root package for python-emacs.
2+
3+
Python interface to GNU Emacs.
4+
"""
5+
6+
__author__ = 'Jared Lumpe'
7+
__email__ = 'mjlumpe@gmail.com'
8+
__version__ = '0.1'

setup.cfg

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
[metadata]
2+
name = python-emacs
3+
version = attr: emacs.__version__
4+
description = Python interface to GNU Emacs.
5+
long_description = file: README.md
6+
author = Jared Lumpe
7+
author_email = mjlumpe@gmail.com
8+
url = https://github.com/jlumpe/python-emacs
9+
10+
11+
[options]
12+
include_package_data = true
13+
14+
python_requires = >=3.5
15+
16+
install_requires =
17+
# Dependencies go here
18+
19+
setup_requires =
20+
pytest-runner
21+
22+
test_require =
23+
pytest
24+
25+
26+
# Aliases for setuptools commands
27+
[aliases]
28+
test = pytest
29+
30+
31+
# Pytest settings
32+
[tool:pytest]
33+
34+
# Run tests in tests/, obviously
35+
# Also check docstrings in package
36+
testpaths = tests emacs
37+
38+
# Run doctests on all modules
39+
addopts = --doctest-modules
40+
doctest_optionflags = NORMALIZE_WHITESPACE IGNORE_EXCEPTION_DETAIL
41+
42+
43+
# Flake8 settings
44+
[flake8]
45+
46+
# Ignore these codes:
47+
ignore =
48+
# TABS ARE BETTER
49+
W191,
50+
# indentation contains mixed spaces and tabs - spaces for alignment
51+
E101,
52+
# Blank line at end of file - we require this in .editorconfig
53+
W391
54+
55+
# Exclude these paths:
56+
exclude = docs
57+
58+
# Check style of doctests (not working?)
59+
doctests = True

setup.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
"""Setuptools installation script for python-emacs package."""
2+
3+
from setuptools import setup
4+
5+
setup()

0 commit comments

Comments
 (0)