Skip to content

Instantly share code, notes, and snippets.

@lukassup
Last active May 9, 2017 20:30
Show Gist options
  • Select an option

  • Save lukassup/e1b891bd47e35be9b578b8a34fd5ed33 to your computer and use it in GitHub Desktop.

Select an option

Save lukassup/e1b891bd47e35be9b578b8a34fd5ed33 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Example module."""
def main():
print('Hello, world!')
if __name__ == "__main__":
main()
.
├── example
│   └── __init__.py
├── setup.py
└── tests.py
1 directory, 3 files
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
setup(
author="Lukas Šupienis <lukassup@yahoo.com>",
license="MIT",
url="https://github.com/lukassup/python-example.git",
version="0.1.0",
name="example",
packages=find_packages(exclude=['tests']),
entry_points={
"console_scripts": [
"example-cli = example:main",
],
},
test_suite='tests',
zip_safe=True,
)
# -*- coding: utf-8 -*-
"""Example module tests."""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment