-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
86 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", | ||
], | ||
) |