diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..f04071c --- /dev/null +++ b/setup.cfg @@ -0,0 +1,15 @@ +[bdist_wheel] +universal = 0 + +[flake8] +ignore = E203 W503 +exclude = .git,__pycache__,docs/source/conf.py,old,build,dist,tests,.venv + +[metadata] +description-file = README.md + +[tool:pytest] +addopts = --junitxml=junit/test-results.xml --cov-config=.coveragerc --cov=isogeotodocx --cov-report=xml --cov-report=html --cov-append tests/ --ignore=tests/_wip/ +minversion = 3.2 +norecursedirs = .* build dev development dist docs CVS fixtures _darcs {arch} *.egg venv _wip +testpaths = tests diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..c4b19a4 --- /dev/null +++ b/setup.py @@ -0,0 +1,71 @@ +# -*- coding: utf-8 -*- +#!/usr/bin/env python3 + +""" + Setup script to package Isogeo PySDK Python module + + see: https://github.com/isogeo/export-docx-py/ +""" + +# ############################################################################ +# ########## Libraries ############# +# ################################## + +# standard library +import pathlib + +from setuptools import find_packages, setup + +# package (to get version) +from isogeotodocx.__about__ import __version__, __summary__ + +# SETUP ###################################################################### + +# The directory containing this file +HERE = pathlib.Path(__file__).parent + +# The text of the README file +README = (HERE / "README.md").read_text() + +# setup metadata +setup( + # meta + name="isogeo-export-docx", + version=__version__, + author="Isogeo", + author_email="support@isogeo.com", + description=__summary__, + long_description=README, + long_description_content_type="text/markdown", + keywords="GIS metadata INSPIRE Isogeo API REST geographical data DOCX Word", + license="LGPL3", + url="https://github.com/isogeo/export-docx-py", + project_urls={ + "Docs": "https://isogeo-export-docx-py.readthedocs.io/", + "Bug Reports": "https://github.com/isogeo/export-docx-py/issues/", + "Source": "https://github.com/isogeo/export-docx-py/", + }, + # dependencies + install_requires=["isogeo-pysdk==3.2.*", "docxtpl==0.6.*"], + extras_require={ + "dev": ["black", "python-dotenv"], + "test": ["codecov", "coverage", "pytest", "pytest-cov"], + }, + python_requires=">=3.6, <4", + # packaging + packages=find_packages( + exclude=["contrib", "docs", "*.tests", "*.tests.*", "tests.*", "tests"] + ), + include_package_data=True, + classifiers=[ + "Intended Audience :: Developers", + "Intended Audience :: Information Technology", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.6", + "Programming Language :: Python :: 3.7", + "Development Status :: 5 - Production/Stable", + "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", + "Operating System :: OS Independent", + "Topic :: Software Development :: Libraries :: Python Modules", + ], +)