diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..281fbf3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,121 @@ +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[cod] +*$py.class + +# C extensions +*.so + +# Distribution / packaging +.Python +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +wheels/ +*.egg-info/ +.installed.cfg +*.egg +MANIFEST + +# PyInstaller +# Usually these files are written by a python script from a template +# before PyInstaller builds the exe, so as to inject date/other infos into it. +*.manifest +*.spec + +# Installer logs +pip-log.txt +pip-delete-this-directory.txt + +# Unit test / coverage reports +htmlcov/ +.tox/ +.nox/ +.coverage +.coverage.* +.cache +nosetests.xml +coverage.xml +*.cover +.hypothesis/ +.pytest_cache/ + +# Translations +*.mo +*.pot + +# Django stuff: +*.log +local_settings.py +db.sqlite3 + +# Flask stuff: +instance/ +.webassets-cache + +# Scrapy stuff: +.scrapy + +# Sphinx documentation +docs/_build/ + +# PyBuilder +target/ + +# Jupyter Notebook +.ipynb_checkpoints + +# IPython +profile_default/ +ipython_config.py + +# pyenv +.python-version + +# celery beat schedule file +celerybeat-schedule + +# SageMath parsed files +*.sage.py + +# Environments +.env +.venv +env/ +venv/ +ENV/ +env.bak/ +venv.bak/ + +# Spyder project settings +.spyderproject +.spyproject + +# Rope project settings +.ropeproject + +# mkdocs documentation +/site + +# mypy +.mypy_cache/ +.dmypy.json +dmypy.json + +# Pyre type checker +.pyre/ + + +# pycharm +.idea/ + +# vscode +.vscode/ diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..04772d7 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,21 @@ +language: python +python: +- '3.6' +- '3.7-dev' +script: python setup.py test + +jobs: + include: + - stage: pypi release + python: '3.6' + script: echo "release package to pypi" + deploy: + provider: pypi + twine_version: 1.12.1 + user: felipaoo + on: + tags: true + password: + secure: "Nm121tiRKnwk6fjggYWgMNxtUkXzrBUcC3BCvKYa1sojtpXmK+mrAPDHyoAtK/ORLJYZ3ZJj1UnP6XE0iPRiT5WliyP9xEBOcVyKycNdk0WJpB66j7VmJDXn/1rchGefTF2LKK/Lbi8j+lk7b+ZD9APR0bv52xhkHUB7NHJxIL1b02NLOYQX9C4SEhMDOHvK8nLmrmq1OHPD7+A6el3KBmfiL3elSiH0NNVx1q+EDryXgstrHegwXnDjy0oE09u/t7ewYFm8TZu4qPHH+W7PRiD4xT2l62s8/KOBaJSgfgM3aIMIMsTRpt89QiXJ1VJhehaqrwbVz+vGXhSuWFWrUiVIN+PRdRW0sZdR1Rq9OMenhsWriiEQ83HqPSmdmA5a8pposlH80B8J0AzksrNwyV9Lw44vpk9BlwTzD9tSjBRH+fheabufm3WvYRYWs620fEEXi0OX5lhpJ8pCy0cip4TICM6SGu8Koz1VZ4h0Ecc/nQ+g9s5YkZLtw4G9Ic7Si7YS83ea6VgFRaKRNgrZiJIfafdgieup7IvKfYs8ExE8jl34ro4x8UGnC7vSjAMW3y+7ngmw9Yt3ruLlFM+Bq4XhA+BK+lrj/iJQPV7fwaPKtYDI4l2IMSnANS2oLyqKlDMtW7Lvh0GezgMQWN2VA4kWa5H0b1CYcofrfDC8O38=" + server: https://test.pypi.org/legacy/ + distributions: sdist bdist_wheel diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..96f1555 --- /dev/null +++ b/LICENSE @@ -0,0 +1,19 @@ +Copyright (c) 2018 The Python Packaging Authority + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..ad9ff9a --- /dev/null +++ b/README.md @@ -0,0 +1,5 @@ +# Example Package + +This is a simple example package. You can use +[Github-flavored Markdown](https://guides.github.com/features/mastering-markdown/) +to write your content. diff --git a/minpkg/__init__.py b/minpkg/__init__.py new file mode 100644 index 0000000..9ca967f --- /dev/null +++ b/minpkg/__init__.py @@ -0,0 +1 @@ +__version__ = '0.0.1-dev' \ No newline at end of file diff --git a/scripts/make-release.py b/scripts/make-release.py new file mode 100644 index 0000000..d43bce8 --- /dev/null +++ b/scripts/make-release.py @@ -0,0 +1,6 @@ +def main(): + print('hola mundo') + + +if __name__ == '__main__': + main() diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..1f274ba --- /dev/null +++ b/setup.py @@ -0,0 +1,27 @@ +import io +import re + +import setuptools + +with open("README.md", "r") as fh: + long_description = fh.read() + +with io.open('minpkg/__init__.py', 'rt', encoding='utf8') as f: + version = re.search(r'__version__ = \'(.*?)\'', f.read()).group(1) + +setuptools.setup( + name="minpkg", + version=version, + author="Example Author", + author_email="author@example.com", + description="A small example package", + long_description=long_description, + long_description_content_type="text/markdown", + url="https://github.com/pypa/sampleproject", + packages=setuptools.find_packages(), + classifiers=[ + "Programming Language :: Python :: 3", + "License :: OSI Approved :: MIT License", + "Operating System :: OS Independent", + ], +)