setup.py 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. #!/usr/bin/env python
  2. # -*- coding: latin-1 -*-
  3. import codecs
  4. import os
  5. from setuptools import setup, find_packages
  6. from pylode import __version__
  7. def open_local(paths, mode='r', encoding='utf8'):
  8. path = os.path.join(
  9. os.path.abspath(os.path.dirname(__file__)),
  10. *paths
  11. )
  12. return codecs.open(path, mode, encoding)
  13. with open_local(['README.rst'], encoding='utf-8') as readme:
  14. long_description = readme.read()
  15. with open_local(['requirements.txt']) as req:
  16. install_requires = req.read().split("\n")
  17. setup(
  18. name='pyLODE',
  19. packages=find_packages(),
  20. package_dir={'pylode': 'pylode', 'img': 'img'},
  21. package_data={
  22. 'pylode': ['templates/*.html', 'templates/*/*.html', 'templates/*.md', 'templates/*/*.md', 'style/*.css'],
  23. 'img': ['pyLODE-250.png']
  24. },
  25. version=__version__,
  26. use_scm_version={'write_to': 'pylode/_version.py'},
  27. description='An OWL ontology documentation tool using Python and templating, based on LODE.',
  28. author='Nicholas J. Car',
  29. author_email='nicholas.car@surroundaustralia.com',
  30. url='https://github.com/rdflib/pyLODE',
  31. download_url='https://github.com/rdflib/pyLODE/archive/v{:s}.tar.gz'.format(__version__),
  32. license='LICENSE',
  33. keywords=['Semantic Web', 'OWL', 'ontology', 'template', 'Jinja2', 'documentation'],
  34. long_description=long_description,
  35. entry_points={
  36. 'console_scripts': [
  37. 'pylode = pylode.cli:main',
  38. ]
  39. },
  40. classifiers=[
  41. 'Development Status :: 4 - Beta',
  42. 'Topic :: Utilities',
  43. 'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
  44. 'Intended Audience :: Developers',
  45. 'Natural Language :: English',
  46. 'Programming Language :: Python :: 3',
  47. 'Programming Language :: Python :: 3 :: Only',
  48. 'Programming Language :: Python :: 3.6',
  49. 'Programming Language :: Python :: 3.7',
  50. 'Programming Language :: Python :: 3.8',
  51. 'Programming Language :: Python :: 3.9',
  52. 'Programming Language :: Python :: Implementation :: CPython',
  53. 'Programming Language :: Python :: Implementation :: PyPy',
  54. 'Topic :: Software Development :: Libraries :: Python Modules',
  55. ],
  56. project_urls={
  57. 'Bug Reports': 'https://github.com/rdflib/pyLODE/issues',
  58. 'Source': 'https://github.com/rdflib/pyLODE/',
  59. },
  60. install_requires=install_requires,
  61. long_description_content_type="text/x-rst"
  62. )