-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
59 lines (50 loc) · 1.68 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
56
57
58
59
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
import pip
from setuptools import setup, find_packages
from pip.req import parse_requirements
import atomicpress
if sys.argv[-1] == "publish":
os.system("python setup.py sdist upload")
sys.exit()
packages = find_packages()
# Handle requirements
requires = parse_requirements("requirements/install.txt",
session=pip.download.PipSession())
install_requires = [str(ir.req) for ir in requires]
requires = parse_requirements("requirements/tests.txt",
session=pip.download.PipSession())
tests_require = [str(ir.req) for ir in requires]
# Convert markdown to rst
try:
from pypandoc import convert
long_description = convert("README.md", "rst")
except ImportError:
long_description = open("README.md").read()
setup(
name="atomicpress",
version=atomicpress.__version__,
description=("AtomicPress is a static blog generator for python developers."), # NOQA
long_description=long_description,
author="Martin Sandström",
author_email="martin@marteinn.se",
url="https://github.com/marteinn/atomicpress",
packages=packages,
include_package_data=True,
install_requires=install_requires,
tests_require=tests_require,
license="MIT",
zip_safe=False,
classifiers=(
"Development Status :: 4 - Beta",
'Environment :: Web Environment',
"Intended Audience :: Developers",
"Natural Language :: English",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
'Programming Language :: Python :: 2',
"Programming Language :: Python :: 2.7"
),
)