Skip to content

Commit

Permalink
adapt for py3.13, pyproject.yaml (#290)
Browse files Browse the repository at this point in the history
* no setuptools

* using toml file
  • Loading branch information
burnout87 authored Oct 24, 2024
1 parent 8b66977 commit 276bdbd
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 67 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]
72 changes: 5 additions & 67 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,74 +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 setuptools import setup, find_packages
import glob
from setuptools import setup
import json

packs=find_packages()

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=packs,
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 276bdbd

Please sign in to comment.