-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:astro-transients/tilepy
- Loading branch information
Showing
31 changed files
with
606 additions
and
88 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,28 @@ | ||
name: Deploy to PyPI | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.9" | ||
|
||
- name: Install dependencies | ||
run: | | ||
python --version | ||
pip install -U build | ||
python -m build | ||
- name: Publish package | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.pypi_password }} |
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
This file was deleted.
Oops, something went wrong.
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
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,84 @@ | ||
[build-system] | ||
requires = ["setuptools>=64", "setuptools_scm[toml]>=8"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "tilepy" | ||
description = "Computation of the tiling scheduling of large localization uncertainty region event with multi-wavelength pointing telescopes." | ||
readme = "README.md" | ||
authors = [ | ||
{name = "Monica Seglar-Arroyo, Halim Ashkar, Fabian Schussler, Mathieu de Bony", email = "[email protected]"}, | ||
] | ||
maintainers = [ | ||
{name = "Monica Seglar-Arroyo", email = "[email protected]"}, | ||
{name = "Halim Ashkar", email = "[email protected]"}, | ||
{name = "Fabian Schussler", email = "[email protected]"}, | ||
{name = "Mathieu de Bony", email = "[email protected]"}, | ||
] | ||
license = {file = "LICENSE.rst"} | ||
classifiers = [ | ||
"Intended Audience :: Science/Research", | ||
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.12", | ||
"Topic :: Scientific/Engineering :: Astronomy", | ||
"Development Status :: 5 - Production/Stable", | ||
] | ||
|
||
dynamic = ["version"] | ||
requires-python = ">=3.9" | ||
|
||
dependencies = [ | ||
"astropy", | ||
"scipy <1.14.0", | ||
"healpy", | ||
"ipython", | ||
"matplotlib <3.9.0", | ||
"MOCpy", | ||
"numpy", | ||
"pandas", | ||
"pytz", | ||
"ephem", | ||
"gdpyc", | ||
"tables", | ||
"fastparquet", | ||
"skyfield", | ||
"ligo.skymap >=2.0.0", | ||
] | ||
|
||
[project.optional-dependencies] | ||
tests = [ | ||
"pytest >= 7.0", | ||
"pytest-cov", | ||
"tomli", | ||
] | ||
|
||
dev = [ | ||
"setuptools_scm[toml]", | ||
] | ||
|
||
all = [ | ||
# self-reference with all extras to simplify | ||
"tilepy[tests,docs,dev]", | ||
] | ||
|
||
[project.scripts] | ||
Tiling_Observations = "tilepy.scripts.Tiling_Observations:main" | ||
|
||
[project.urls] | ||
repository = "https://github.com/astro-transients/tilepy" | ||
documentation = "https://github.com/astro-transients/tilepy" | ||
|
||
[tool.setuptools] | ||
include-package-data = false | ||
|
||
[tool.setuptools.packages.find] | ||
where = ["src"] | ||
exclude = [ | ||
"tilepy._dev_version", | ||
] | ||
|
||
[tool.setuptools_scm] | ||
write_to = "src/tilepy/_version.py" |
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,3 @@ | ||
from .version import __version__ | ||
|
||
__all__ = ["__version__"] |
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,9 @@ | ||
# Try to use setuptools_scm to get the current version; this is only used | ||
# in development installations from the git repository. | ||
# see tilepy/version.py for details | ||
try: | ||
from setuptools_scm import get_version | ||
|
||
version = get_version(root="..", relative_to=__file__) | ||
except Exception as e: | ||
raise ImportError(f"setuptools_scm broken or not installed: {e}") |
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
7 changes: 7 additions & 0 deletions
7
tilepy/include/Observatories.py → src/tilepy/include/Observatories.py
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
Oops, something went wrong.