-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adapt for py3.13, pyproject.yaml (#290)
* no setuptools * using toml file
- Loading branch information
Showing
2 changed files
with
61 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'], | ||
) |