Skip to content

Commit

Permalink
Migrate to pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
tammojan committed Jan 26, 2024
1 parent f63678c commit 6c6c1f3
Show file tree
Hide file tree
Showing 15 changed files with 40 additions and 47 deletions.
10 changes: 0 additions & 10 deletions .travis.yml

This file was deleted.

4 changes: 3 additions & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@
import sys
sys.path.insert(0, os.path.abspath('../../lofarantpos/'))
sys.path.insert(0, os.path.abspath('../..'))
from lofarantpos import __version__
import importlib.metadata


project = 'lofarantpos'
copyright = '2022, ASTRON'
author = 'Michiel Brentens, Tammo Jan Dijkema'
__version__ = importlib.metadata.version(project)

release = __version__
version = __version__
Expand Down
1 change: 0 additions & 1 deletion lofarantpos/__init__.py

This file was deleted.

33 changes: 33 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
[project]
name = "lofarantpos"
version = "0.6.0"
description = "Access, query, and manipulate LOFAR antenna positions"
authors = [
{name = "Tammo Jan Dijkema", email = "[email protected]"},
{name = "M.A. Brentjens", email = "[email protected]"},
]
dependencies = [
'numpy',
'matplotlib',
'pathlib',
'tilemapbase'
]
requires-python = ">=3.7"
readme = "README.md"
license = {text = "Apache-2.0"}
classifiers = [
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3",
]

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

[project.urls]
Homepage = "https://github.com/lofar-astron/lofar-antenna-positions"
35 changes: 0 additions & 35 deletions setup.py

This file was deleted.

3 changes: 3 additions & 0 deletions src/lofarantpos/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import importlib.metadata

__version__ = importlib.metadata.version("lofarantpos")
1 change: 1 addition & 0 deletions lofarantpos/db.py → src/lofarantpos/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ def __init__(self, path_to_files=None):
# Install_prefix can end up to be some_path/lib/site_packages,
# append to the search path the install_prefix minus last two directories
search_path = [install_prefix(),
pathlib.PurePath(__file__).parent,
os.sep.join(install_prefix().split(os.sep)[:-2]),
'/usr/local', '/usr']
for attempt in search_path:
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 6c6c1f3

Please sign in to comment.