-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
55 lines (45 loc) · 1.33 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
"""
Package to convert arbitrary python objects into DTOs ready for serialization and validation.
"""
__version__ = "0.0.7"
from setuptools import setup, find_packages, Command
try:
from mkdocs.main import main as mkdocs_main
except ImportError:
def mkdocs_main(cmd, args, options):
raise NotImplementedError("mkdocs modele must be installed to run this command.")
CLASSIFIERS = """
Development Status :: 3 - Alpha
Intended Audience :: Developers
License :: Public Domain
Programming Language :: Python
Topic :: Internet :: WWW/HTTP :: Dynamic Content
Topic :: Internet :: WWW/HTTP :: Dynamic Content :: CGI Tools/Libraries
Topic :: Software Development
""".strip().split("\n")
class DocsCommand(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
mkdocs_main("build", (), {"clean": True})
setup(
name="r2dto_rdf",
author="The Magnificant Nick",
author_email="[email protected]",
url="https://github.com/nickswebsite/r2dto_rdf",
version=__version__,
description=__doc__,
keywords="dto serializer serialize REST marshal JSON",
packages=["r2dto_rdf"],
cmdclass={
"docs": DocsCommand,
},
classifiers=CLASSIFIERS,
install_requires=(
"rdflib",
"r2dto>=0.0.2",
)
)