-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
37 lines (34 loc) · 1.4 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
#!/usr/bin/env python
import os
import sys
from setuptools import setup
# Prepare and send a new release to PyPI
if "release" in sys.argv[-1]:
os.system("python setup.py sdist")
os.system("twine upload dist/amunra_sphinx_theme*")
os.system("rm -rf dist/amunra_sphinx_theme*")
sys.exit()
# Load the __version__ variable without importing the package already
exec(open('amunra_sphinx_theme/version.py').read())
setup(name='amunra_sphinx_theme',
version=__version__,
description="A beautiful, minimalist, and responsive theme for your Sphinx projects.",
long_description=open('README.rst').read(),
url='https://barentsen.github.io/amunra-sphinx-theme/',
author='Geert Barentsen',
author_email='hello@geert.io',
license='BSD',
packages=['amunra_sphinx_theme'],
include_package_data=True,
# See http://www.sphinx-doc.org/en/stable/theming.html#distribute-your-theme-as-a-python-package
entry_points={"sphinx.html_themes": ["amunra_sphinx_theme = amunra_sphinx_theme"]},
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Topic :: Documentation",
"Topic :: Software Development :: Documentation",
],
)