Skip to content

Commit

Permalink
add files to setup package
Browse files Browse the repository at this point in the history
  • Loading branch information
Guts committed Sep 4, 2019
1 parent f67bb0b commit 115152f
Show file tree
Hide file tree
Showing 2 changed files with 86 additions and 0 deletions.
15 changes: 15 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -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
71 changes: 71 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -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",
],
)

0 comments on commit 115152f

Please sign in to comment.