123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- #!/usr/bin/env python
- # -*- coding: latin-1 -*-
- import codecs
- import os
- from setuptools import setup, find_packages
- from pylode import __version__
- def open_local(paths, mode='r', encoding='utf8'):
- path = os.path.join(
- os.path.abspath(os.path.dirname(__file__)),
- *paths
- )
- return codecs.open(path, mode, encoding)
- with open_local(['README.rst'], encoding='utf-8') as readme:
- long_description = readme.read()
- with open_local(['requirements.txt']) as req:
- install_requires = req.read().split("\n")
- setup(
- name='pyLODE',
- packages=find_packages(),
- package_dir={'pylode': 'pylode', 'img': 'img'},
- package_data={
- 'pylode': ['templates/*.html', 'templates/*/*.html', 'templates/*.md', 'templates/*/*.md', 'style/*.css'],
- 'img': ['pyLODE-250.png']
- },
- version=__version__,
- use_scm_version={'write_to': 'pylode/_version.py'},
- description='An OWL ontology documentation tool using Python and templating, based on LODE.',
- author='Nicholas J. Car',
- author_email='nicholas.car@surroundaustralia.com',
- url='https://github.com/rdflib/pyLODE',
- download_url='https://github.com/rdflib/pyLODE/archive/v{:s}.tar.gz'.format(__version__),
- license='LICENSE',
- keywords=['Semantic Web', 'OWL', 'ontology', 'template', 'Jinja2', 'documentation'],
- long_description=long_description,
- entry_points={
- 'console_scripts': [
- 'pylode = pylode.cli:main',
- ]
- },
- classifiers=[
- 'Development Status :: 4 - Beta',
- 'Topic :: Utilities',
- 'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
- 'Intended Audience :: Developers',
- 'Natural Language :: English',
- 'Programming Language :: Python :: 3',
- 'Programming Language :: Python :: 3 :: Only',
- 'Programming Language :: Python :: 3.6',
- 'Programming Language :: Python :: 3.7',
- 'Programming Language :: Python :: 3.8',
- 'Programming Language :: Python :: 3.9',
- 'Programming Language :: Python :: Implementation :: CPython',
- 'Programming Language :: Python :: Implementation :: PyPy',
- 'Topic :: Software Development :: Libraries :: Python Modules',
- ],
- project_urls={
- 'Bug Reports': 'https://github.com/rdflib/pyLODE/issues',
- 'Source': 'https://github.com/rdflib/pyLODE/',
- },
- install_requires=install_requires,
- long_description_content_type="text/x-rst"
- )
|