Skip to content

Commit

Permalink
using toml file
Browse files Browse the repository at this point in the history
  • Loading branch information
burnout87 committed Oct 22, 2024
1 parent 051c6be commit cc25010
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 65 deletions.
56 changes: 56 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
[build-system]
requires = ["setuptools>=64",]
build-backend = "setuptools.build_meta"

[project]
name = "oda_api"
dynamic = ["version"]
description = "API plugin for CDCI online data analysis"
authors = [
{name = "Andrea Tramacere", email = "[email protected]"},
{name = "Volodymyr Savchenko", email = "[email protected]"}
]
maintainers = [
{name = "Gabriele Barni", email = "[email protected]"},
{name = "Denys Savchenko", email = "[email protected]"}
]
readme = "README.md"
requires-python = ">=2.7"

dependencies = [
"requests",
"future",
"astropy>=3.2",
"json_tricks",
"matplotlib",
"numpy",
"jsonschema",
"pyjwt",
"astroquery",
"scipy",
"rdflib",
"black"
]

[project.optional-dependencies]
test = [
"pytest-xdist[psutil]",
"astroquery>=0.4.4",
"sentry_sdk"
]
extra-test = [
"pytest-xdist[psutil]",
"astroquery>=0.4.4"
]
gw = [
"gwpy",
"ligo.skymap"
]
ontology = [
"rdflib"
]

[project.scripts]
oda-api = "oda_api.cli:main"

[tool.setuptools_scm]
70 changes: 5 additions & 65 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,72 +1,12 @@
#!/usr/bin/env python

from __future__ import absolute_import, division, print_function

from builtins import (bytes, str, open, super, range,
zip, round, input, int, pow, object, map, zip)

__author__ = 'andrea tramacere'


from distutils.core import setup
import glob
from setuptools import setup
import json

with open('oda_api/pkg_info.json') as fp:
_info = json.load(fp)

__version__ = _info['version']


include_package_data=True

setup(name='oda_api',
version=__version__,
description='API plugin for CDCI online data analysis',
author='Andrea Tramacere, Volodymyr Savchenko',
author_email='[email protected]',
packages=['oda_api'],
package_data={'oda_api': ['config_dir/*']},
include_package_data=True,
install_requires=[
"requests",
"future",
"astropy>=3.2",
"json_tricks",
"matplotlib",
"numpy",
"jsonschema",
"pyjwt",
"astroquery",
"scipy",
"rdflib",
"black"
],
extras_require={
'test': [
"pytest-xdist[psutil]",
"astroquery>=0.4.4",
"sentry_sdk"
],
'extra-test': [
"pytest-xdist[psutil]",
"astroquery>=0.4.4",
],
'gw': [
"gwpy",
"ligo.skymap"
],
'ontology': [
"rdflib"
]
},
entry_points={
"console_scripts": [
"oda-api = oda_api.cli:main"
]
},
python_requires='>=2.7',
)



setup(
version=__version__,
setup_requires=['setuptools'],
)

0 comments on commit cc25010

Please sign in to comment.