-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
38 lines (34 loc) · 1.04 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
import setuptools
from setuptools import setup, find_packages
import os
import subprocess
# Verifica se o pandoc está instalado
try:
subprocess.check_call(['pandoc', '--version'])
pandoc_installed = True
except (OSError, subprocess.CalledProcessError):
pandoc_installed = False
# Converte o README.md para rst usando pandoc, se estiver instalado
if pandoc_installed:
subprocess.call(['pandoc', 'README.md', '-o', 'README.rst'])
with open('README.rst', 'r') as f:
long_description = f.read()
else:
long_description = open('README.md').read()
# Restante do seu setup.py
setup(
name='querySDSS',
version='2.0',
license='MIT',
author="aCosmicDebbuger",
author_email='[email protected]',
packages=setuptools.find_packages('src'),
package_dir={'': 'src'},
url='https://github.com/aCosmicDebugger/querySDSS',
keywords='example project',
install_requires=[
'astropy', 'astroquery',
],
description='Query for SDSS datarelease 18',
long_description=long_description,
)