Skip to content

Commit

Permalink
Migrate to pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
mkelley committed Mar 8, 2024
1 parent ae27a72 commit e473eec
Show file tree
Hide file tree
Showing 7 changed files with 55 additions and 13 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -105,4 +105,5 @@ venv.bak/

*~
examples/lco.fits
examples/cat.db
examples/cat.db
calviacat/_version.py
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2018-2019 University of Maryland and the calviacat contributors
Copyright (c) 2018-2024 University of Maryland and the calviacat contributors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
5 changes: 5 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
prune build
prune docs/_build
prune docs/api
prune examples
global-exclude *.pyc *.o
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# calviacat v1.3.0
# calviacat v1.3.1
Calibrate star photometry by comparison to a catalog. PanSTARRS 1, ATLAS-RefCat2, SkyMapper, and Gaia catalogs currently implemented. Catalog queries are cached so that subsequent calibrations of the same or similar fields can be more quickly executed.

## Attribution and license
Expand Down
8 changes: 8 additions & 0 deletions calviacat/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Licensed with the MIT License, see LICENSE for details
from importlib.metadata import version as _version, PackageNotFoundError

from .catalog import *
from .panstarrs1 import PanSTARRS1
from .skymapper import SkyMapper
from .refcat2 import RefCat2
from .gaia import Gaia

try:
__version__ = _version(__name__)
except PackageNotFoundError:
pass
37 changes: 37 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
[project]
name = "calviacat"
description = "Calibrate star photometry by comparison to a catalog."
keywords = ["astronomy", "astrophysics", "space", "science"]
readme = "README.md"
authors = [
{ name = "Michael S. P. Kelley", email = "[email protected]" },
{ name = "Tim Lister", email = "[email protected]" }
]
license = { text = "MIT" }
requires-python = ">=3.8"
dependencies = [
"astropy>=4.3",
"numpy",
"requests",
"astroquery>=0.4.5"
]
dynamic = [ "version" ]

[project.urls]
homepage = "https://github.com/mkelley/calviacat"

[build-system]
requires = [
"setuptools>=45",
"setuptools_scm[toml]>=6.2",
"wheel",
]
build-backend = "setuptools.build_meta"

[tool.setuptools_scm]
write_to = "calviacat/_version.py"

[tool.setuptools]
zip-safe = false

[tool.setuptools.packages.find]
11 changes: 1 addition & 10 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,4 @@
#!/usr/bin/env python3
from setuptools import setup

setup(name='calviacat',
version='1.3.0',
description='Calibrate star photometry by comparison to a catalog.',
author='Michael S. P. Kelley',
author_email='[email protected]',
url='https://github.com/mkelley/calviacat',
packages=['calviacat'],
install_requires=['astropy', 'numpy', 'requests', 'astroquery'],
license='MIT'
)
setup()

0 comments on commit e473eec

Please sign in to comment.