Skip to content

Commit

Permalink
Merge pull request #20 from hamogu/py11
Browse files Browse the repository at this point in the history
Change minimum Python version to 3.11
  • Loading branch information
alexbinks authored May 22, 2024
2 parents c4d8b0e + 9c8794d commit dc95b16
Show file tree
Hide file tree
Showing 6 changed files with 99 additions and 52 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/tlr_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# file generated by setuptools_scm
tessilator/_version.py

# SPECIFIC FILES AND DIRECTORIES

contaminants
Expand Down
90 changes: 90 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"
44 changes: 0 additions & 44 deletions setup.cfg

This file was deleted.

2 changes: 0 additions & 2 deletions setup.py

This file was deleted.

6 changes: 3 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit dc95b16

Please sign in to comment.