Skip to content

Commit

Permalink
Created the library skeleton.
Browse files Browse the repository at this point in the history
  • Loading branch information
artob committed Jul 15, 2020
1 parent ab2b8d4 commit 9dca6b5
Show file tree
Hide file tree
Showing 13 changed files with 100 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,20 @@

# Pandoc outputs
*.html

# Python object files
__pycache__/
*.py[cod]

# Python distutils
build/

# Python setuptools
dist/
*.egg-info/

# pytest artifacts
.pytest_cache/

# tox artifacts
.tox/
6 changes: 6 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
include AUTHORS
include CHANGES.md
include CREDITS.md
include README.md
include UNLICENSE
include VERSION
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Dogma for Python

[![Project license](https://img.shields.io/badge/license-Public%20Domain-blue.svg)](https://unlicense.org)
[![PyPI package](https://img.shields.io/pypi/v/dogma.py.svg)](https://pypi.org/project/dogma-py/)
Empty file added doc/.gitkeep
Empty file.
Empty file added doc/examples/.gitkeep
Empty file.
Empty file added etc/.gitkeep
Empty file.
Empty file added requirements.txt
Empty file.
4 changes: 4 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[metadata]
license_file=UNLICENSE

[bdist_wheel]
52 changes: 52 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
#!/usr/bin/env python3
# This is free and unencumbered software released into the public domain.

"""Installation script for Dogma."""

from codecs import open
from os import path
from setuptools import setup, find_packages
from shutil import copyfile

def readfile(*filepath):
with open(path.join(*filepath), encoding='utf-8') as f:
return f.read()

PWD = path.abspath(path.dirname(__file__))

VERSION = readfile(PWD, 'VERSION').rstrip()
LONG_DESCRIPTION = readfile(PWD, 'README.md')

setup(
name='dogma.py',
version=VERSION,
description="Dogma for Python",
long_description=LONG_DESCRIPTION,
long_description_content_type='text/markdown',
url='https://github.com/dogmatists/dogma.py',
author='Arto Bendiken',
author_email='arto@bendiken.net',
license='Public Domain',
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Environment :: Console',
'Intended Audience :: Developers',
'Intended Audience :: Information Technology',
'License :: Public Domain',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Topic :: Software Development :: Libraries',
],
keywords='',
project_urls={'Source': 'https://github.com/dogmatists/dogma.py'},
packages=find_packages(where='src'),
package_dir={'': 'src'},
install_requires=[],
python_requires='~=3.6',
extras_require={'test': ['pytest'],},
)
Empty file added src/.gitkeep
Empty file.
9 changes: 9 additions & 0 deletions src/dogma/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# This is free and unencumbered software released into the public domain.

"""Dogma for Python."""

import sys

assert sys.version_info >= (3, 6), "Dogma requires Python 3.6+"

__all__ = []
Empty file added test/.gitkeep
Empty file.
11 changes: 11 additions & 0 deletions test/test_import.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env python3
# This is free and unencumbered software released into the public domain.

"""Test cases for the dogma module."""

from dogma import *

if __name__ == '__main__':
import pytest, sys

sys.exit(pytest.main(__file__))

0 comments on commit 9dca6b5

Please sign in to comment.