diff --git a/.github/workflows/tlr_tests.yml b/.github/workflows/tlr_tests.yml index 0790afd..e076b7a 100644 --- a/.github/workflows/tlr_tests.yml +++ b/.github/workflows/tlr_tests.yml @@ -27,10 +27,10 @@ jobs: # python: 3.x # toxenv: codestyle - - name: Python 3.10 with minimal dependencies + - name: Python 3.11 with minimal dependencies os: ubuntu-latest - python: "3.10" - toxenv: py310-test + python: 3.11 + toxenv: py311-test #- name: Python 3.8 with all optional dependencies and coverage checking # os: ubuntu-latest diff --git a/.gitignore b/.gitignore index 5a9ff36..78f90bb 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,6 @@ +# file generated by setuptools_scm +tessilator/_version.py + # SPECIFIC FILES AND DIRECTORIES contaminants diff --git a/pyproject.toml b/pyproject.toml index a8b5f13..fbb709d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,93 @@ +[project] +name = "tessilator" +authors = [ + {name = "Alex Binks", email = "binks@astro.uni-tuebingen.de"}, + {name = "Moritz Guenther", email = "hgunther@mit.edu"}, +] +maintainers = [ + {name = "Alex Binks", email = "binks@astro.uni-tuebingen.de"}, + {name = "Moritz Guenther", email = "hgunther@mit.edu"}, +] +description = "The one-stop shop for measuring TESS rotation periods" +readme = {file = "README.rst", content-type = "text/x-rst"} +requires-python = ">=3.11.0" +keywords = ["TESS", "lightcurve", "star", "period"] +license = {file = "LICENSE"} +classifiers = [ + "Development Status :: 4 - Beta", + "Intended Audience :: Science/Research", + "License :: OSI Approved :: MIT License", + "Natural Language :: English", + "Operating System :: OS Independent", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Topic :: Scientific/Engineering :: Astronomy" +] +dynamic = ["version"] +dependencies = [ + "astropy", + "numpy", + "astroquery", + "photutils", + "matplotlib", + "numpy>=1.20.0", + "scipy>=1.9.0", + "statsmodels", + "pyinputplus" +] + +[project.optional-dependencies] +test = [ + "pytest-astropy", + "sphinx-astropy" +] +docs = [ + "sphinx", + "sphinx-automodapi", + "numpydoc" +] + +[project.scripts] +run_tess_sectors = "tessilator.scripts.run_tess_sectors:main" +run_tess_cutouts = "tessilator.scripts.run_tess_cutouts:main" + +[project.urls] +"Homepage" = "https://tessilator.readthedocs.io/" +"Source" = "https://github.com/alexbinks/tessilator" +"Issue tracker" = "https://github.com/alexbinks/tessilator/issues" + [build-system] requires = ["setuptools", "wheel", "setuptools_scm"] build-backend = 'setuptools.build_meta' + +[tool.setuptools] +include-package-data = true +license-files = ["LICENSE", "other_licenses/*"] + +[tool.setuptools.packages.find] +include = ["tessilator*"] +namespaces = true + +[tool.setuptools.package-data] +"tessilator" = ["CITATION.cff"] +"tessilator.tests" = ["*_tests/*"] + +[tool.setuptools_scm] +write_to = "tessilator/_version.py" + +[tool.pytest.ini_options] +minversion = "7.0" +testpaths = [ + "tessilator", + "docs", +] +norecursedirs = [ + "docs[\\/]_build", + "docs[\\/]generated" +] +addopts = [ + "--color=yes", + "-v" +] +log_cli_level = "info" \ No newline at end of file diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 6fe34a0..0000000 --- a/setup.cfg +++ /dev/null @@ -1,44 +0,0 @@ -[metadata] -name = tessilator -description = The one-stop shop for measuring TESS rotation periods -long_description = file: README.rst -author = Alex Binks & Moritz Guenther -author_email = abinks@mit.edu -url = https://github.com/alexbinks/tessilator -license = MIT License -copyright = 2024, Alex Binks & Moritz Guenther - - -[options] -zip_safe = False -packages = find: -install_requires = - numpy - astropy - astroquery - photutils - scipy - matplotlib - pyinputplus - statsmodels - -[options.entry_points] -console_scripts = - run_tess_sectors = tessilator.scripts.run_tess_sectors:main - run_tess_cutouts = tessilator.scripts.run_tess_cutouts:main - -[options.extras_require] -docs = - sphinx - sphinx-automodapi - sphinx-astropy - numpydoc -test = - pytest-astropy - sphinx-astropy - -[options.package_data] -tessilator.tests = ABDor_tests/*, AUMic_tests/* - -[tool:pytest] -addopts = -v diff --git a/setup.py b/setup.py deleted file mode 100644 index 460aabe..0000000 --- a/setup.py +++ /dev/null @@ -1,2 +0,0 @@ -from setuptools import setup -setup(use_scm_version=True) diff --git a/tox.ini b/tox.ini index ffa62a1..e107e0f 100644 --- a/tox.ini +++ b/tox.ini @@ -1,8 +1,8 @@ [tox] envlist = - py{39,310,311,312}-test{,-alldeps,-devdeps}{,-cov} - py{39,310}-test-numpy{117,118} - py{39,310}-test-astropy{51,lts} + py{311,312}-test{,-alldeps,-devdeps}{,-cov} + py{311,312}-test-numpy{122,126} + py{311,312}-test-astropy{61} build_docs linkcheck codestyle