-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
59 lines (52 loc) · 2 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
""" nprime package """
from setuptools import setup, find_packages
import nprime
def convert(markdown_path):
"""Convert a Markdown file to a reStructuredText file with the pypandoc"""
try:
import pypandoc
output = pypandoc.convert(markdown_path, 'rst')
# pypandoc.convert(markdown_path, 'rst', outputfile="README.rst") # Create the rst file
except(IOError, ImportError):
output = open(markdown_path).read()
return output
LONG_DESCRIPTION = convert("README.md")
setup(name='nprime',
version=nprime.__version__,
description='Python library for primes algorithms',
long_description=LONG_DESCRIPTION,
author='sylhare',
author_email='[email protected]',
url='https://github.com/Sylhare/nprime',
license='GNU General Public License v3.0',
tests_require=['pytest'],
install_requires=['matplotlib>=2.1'],
keywords=['prime',
'fermat',
'miller rabin',
'math'],
packages=find_packages(),
package_data={
'License': ['LICENSE'],
'Readme': ['README.md'],
},
platforms='any',
zip_safe=True,
test_suite='tests',
classifiers=[
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Environment :: Other Environment",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Intended Audience :: Education",
"License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: Libraries",
"Topic :: Scientific/Engineering :: Mathematics",
"Topic :: Utilities"]
)