diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000000000000000000000000000000000000..461ecdbac931e037c91ccf2978286084d1a57ba5 --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,14 @@ +# MANIFEST.IN commands: https://docs.python.org/3/distutils/commandref.html + +include README.md LICENSE MANIFEST.in + +# graft includes all files under a directory +graft ./mapiris/templates +graft ./mapiris/static + +recursive-exclude * .DS_Store + +# recursive-include dir pattern # recursively include all files following pattern under the directory dir +# recursive-exclude dir pattern # recursively exclude all files following pattern under the directory dir +# prune dir # prune excludes all files under a directory + diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000000000000000000000000000000000000..58a36ef6d9a5344c62d1d1e99c4483ccccbef642 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,36 @@ +[metadata] +name = mapiris +version = 0.1 +description = This package aims at searching and printing IRIS on a map. +author = Fabien Duchateau +author_email = fabien.duchateau@univ-lyon1.fr +url = https://gitlab.liris.cnrs.fr/fduchate/mapiris +download_url = https://gitlab.liris.cnrs.fr/fduchate/mapiris +keywords = visualization search INSEE IRIS +license_file = LICENSE + +[options] +packages = find: +include_package_data = True +zip_safe = False +install_requires = + flask >= 1.0.2 + mongiris >= 0.21 +dependency_links = + git+https://fduchate@gitlab.liris.cnrs.fr/fduchate/mongiris.git#egg=mongiris-0.21 + +#[options.packages.find] +#exclude = +# tests.*, +# data/HiL/* + +[options.package_data] +# package_data is ignored when a MANIFEST.in is provided +. = README.md, +mapiris/static = vizliris/static/** +mapiris/templates = vizliris/templates/* +mapiris/data = vizliris/data/** + +[bdist_wheel] +universal = 1 + diff --git a/setup.py b/setup.py new file mode 100755 index 0000000000000000000000000000000000000000..bc1e0cbbc1fe4e8a970939330a62d6b27bc42db5 --- /dev/null +++ b/setup.py @@ -0,0 +1,20 @@ +#!/usr/bin/env python +from setuptools import setup +import shutil + +# python3 -m setup bdist_wheel sdist +# python3 -m pip install -e ../mapiris/ +# installation: python -m pip install -e ../mapiris/ --process-dependency-links + +def delete_dir(directories): # delete directories (ignore errors such as read-only files) + for directory in directories: + shutil.rmtree(directory, ignore_errors=True) + + +# delete build/config directories because egg-info only updates config files for new versions +delete_dir(['./mapiris.egg-info/', './build/', './dist/']) + +readme = open("README.md").read() + +setup(long_description=readme) +