Initial commit
This commit is contained in:
parent
747e53d6b0
commit
e7079c2e17
10 changed files with 732 additions and 122 deletions
24
{{cookiecutter.package_name}}/README.md
Normal file
24
{{cookiecutter.package_name}}/README.md
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{{ cookiecutter.package_name }}
|
||||
{{ cookiecutter.package_name|count * "=" }}
|
||||
|
||||
{{ cookiecutter.package_description }}
|
||||
|
||||
Usage
|
||||
-----
|
||||
|
||||
Installation
|
||||
------------
|
||||
|
||||
Requirements
|
||||
^^^^^^^^^^^^
|
||||
|
||||
Compatibility
|
||||
-------------
|
||||
|
||||
Licence
|
||||
-------
|
||||
|
||||
Authors
|
||||
-------
|
||||
|
||||
`{{ cookiecutter.package_name }}` was written by `{{ cookiecutter.author_name }} <{{ cookiecutter.author_email }}>`_.
|
||||
|
|
@ -1,36 +0,0 @@
|
|||
{{ cookiecutter.package_name }}
|
||||
{{ cookiecutter.package_name|count * "=" }}
|
||||
|
||||
{% if cookiecutter.readme_pypi_badge -%}
|
||||
.. image:: https://img.shields.io/pypi/v/{{ cookiecutter.package_name }}.svg
|
||||
:target: https://pypi.python.org/pypi/{{ cookiecutter.package_name }}
|
||||
:alt: Latest PyPI version
|
||||
{%- endif %}
|
||||
|
||||
{% if cookiecutter.readme_travis_badge -%}
|
||||
.. image:: {{ cookiecutter.readme_travis_url }}.png
|
||||
:target: {{ cookiecutter.readme_travis_url }}
|
||||
:alt: Latest Travis CI build status
|
||||
{%- endif %}
|
||||
|
||||
{{ cookiecutter.package_description }}
|
||||
|
||||
Usage
|
||||
-----
|
||||
|
||||
Installation
|
||||
------------
|
||||
|
||||
Requirements
|
||||
^^^^^^^^^^^^
|
||||
|
||||
Compatibility
|
||||
-------------
|
||||
|
||||
Licence
|
||||
-------
|
||||
|
||||
Authors
|
||||
-------
|
||||
|
||||
`{{ cookiecutter.package_name }}` was written by `{{ cookiecutter.author_name }} <{{ cookiecutter.author_email }}>`_.
|
||||
21
{{cookiecutter.package_name}}/setup.cfg
Normal file
21
{{cookiecutter.package_name}}/setup.cfg
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
[metadata]
|
||||
name = {{ cookiecutter.package_name }}
|
||||
version = {{ cookiecutter.package_version }}
|
||||
description = {{ cookiecutter.package_description }}
|
||||
author = {{ cookiecutter.author_name }}
|
||||
author_email = {{ cookiecutter.author_email }}
|
||||
license = GPL-3.0
|
||||
|
||||
[options]
|
||||
packages = find:
|
||||
package_dir =
|
||||
=src
|
||||
python_requires = >=3.6
|
||||
install_requires =
|
||||
|
||||
[options.entry_points]
|
||||
console_scripts =
|
||||
{{cookiecutter.package_name}} = {{cookiecutter.package_name}}.main:main
|
||||
|
||||
[options.packages.find]
|
||||
where = src
|
||||
|
|
@ -1,44 +1,4 @@
|
|||
import io
|
||||
import os
|
||||
import re
|
||||
|
||||
from setuptools import find_packages
|
||||
from setuptools import setup
|
||||
|
||||
|
||||
def read(filename):
|
||||
filename = os.path.join(os.path.dirname(__file__), filename)
|
||||
text_type = type(u"")
|
||||
with io.open(filename, mode="r", encoding='utf-8') as fd:
|
||||
return re.sub(text_type(r':[a-z]+:`~?(.*?)`'), text_type(r'``\1``'), fd.read())
|
||||
|
||||
|
||||
setup(
|
||||
name="{{ cookiecutter.package_name }}",
|
||||
version="{{ cookiecutter.package_version }}",
|
||||
url="{{ cookiecutter.package_url }}",
|
||||
license='MIT',
|
||||
|
||||
author="{{ cookiecutter.author_name }}",
|
||||
author_email="{{ cookiecutter.author_email }}",
|
||||
|
||||
description="{{ cookiecutter.package_description }}",
|
||||
long_description=read("README.rst"),
|
||||
|
||||
packages=find_packages(exclude=('tests',)),
|
||||
|
||||
install_requires=[],
|
||||
|
||||
classifiers=[
|
||||
'Development Status :: 2 - Pre-Alpha',
|
||||
'License :: OSI Approved :: MIT License',
|
||||
'Programming Language :: Python',
|
||||
'Programming Language :: Python :: 2',
|
||||
'Programming Language :: Python :: 2.7',
|
||||
'Programming Language :: Python :: 3',
|
||||
'Programming Language :: Python :: 3.4',
|
||||
'Programming Language :: Python :: 3.5',
|
||||
'Programming Language :: Python :: 3.6',
|
||||
'Programming Language :: Python :: 3.7',
|
||||
],
|
||||
)
|
||||
if __name__ == '__main__':
|
||||
setup()
|
||||
|
|
|
|||
|
|
@ -0,0 +1,12 @@
|
|||
import argparse
|
||||
|
||||
def parse_args():
|
||||
parser = argparse.ArgumentParser(
|
||||
description='{{ cookiecutter.package_description }}')
|
||||
return parser.parse_args()
|
||||
|
||||
def main():
|
||||
args = parse_args()
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
[tox]
|
||||
envlist = py27,py34,py35,py36,py37
|
||||
|
||||
[testenv]
|
||||
commands = py.test {{ cookiecutter.package_name }}
|
||||
deps = pytest
|
||||
Loading…
Add table
Add a link
Reference in a new issue